Difference between revisions of "Template:Abbrlink"
From Discworld MUD Wiki
(create) |
m (Added a link to general templates category) |
||
Line 1: | Line 1: | ||
− | [[{{{2}}}|{{abbr|{{{1}}}|{{{2}}}}}]]< | + | <includeonly>[[{{{2}}}|{{abbr|{{{1}}}|{{{2}}}}}]]</includeonly> |
− | {{Documentation}} | + | <noinclude>[[Category:Templates]]{{Documentation}}</noinclude> |
− | </noinclude> | + |
Revision as of 08:18, 7 August 2010
[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.