Difference between revisions of "Template:Abbrlink"
From Discworld MUD Wiki
m (Added a link to general templates category) |
(no new line) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>[[{{{2}}}|{{abbr|{{{1}}}|{{{2}}}}}]]</includeonly> | + | <includeonly>[[{{{2}}}|{{abbr|{{{1}}}|{{{2}}}}}]]</includeonly><noinclude>[[Category:Templates]]{{Documentation}}</noinclude> |
− | <noinclude>[[Category:Templates]]{{Documentation}}</noinclude> | + |
Latest revision as of 16:11, 22 December 2011
[edit]
Documentation{{abbrlink}} is an abbreviation template. It works similarly to the HTML <abbr> or <acronym> tags but also wikilinks to the tooltip contents.
Usage
{{abbrlink|abbr|expanded term}}
Example:
{{abbrlink|AM|Ankh-Morpork}}
Which results in: AM Ankh-Morpork
That is, like template {{abbr}} but it also creates an article link to the expanded term.
See also
- Template:Abbr - shows the expanded name as a tooltip when hovering over it.
- Template:Abbrl - like Abbr but also wikilinks to the abbreviated name.