Difference between revisions of "Template:Abbrl"

From Discworld MUD Wiki
Jump to: navigation, search
(This differs from Template:Abbrlink in that the links go to the short name instead of the expanded name)
 
(If there is a 3rd variable use that as link)
Line 1: Line 1:
[[{{{1}}}|{{abbr|{{{1}}}|{{{2}}}}}]]<noinclude>
+
[[{{#if:{{{3|}}}|{{{3}}}|{{{1|}}}}}|{{abbr|{{{1}}}|{{{2|}}}}}]]<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 16:58, 9 June 2010

[[|{{{1}}}]]

[edit]

Documentation
 

{{abbrl}} is an abbreviation template. It works similarly to the HTML <abbr> or <acronym> tags but also wikilinks to the shown text.

Usage

{{abbrl|abbr|expanded term}}

Example:

{{abbrl|Ankh-Morpork|Ankh-Morpork, Ankh-Morpork, the city so good they called it Ankh-Morpork. }}

Which results in: Ankh-Morpork

That is, like template {{abbr}} but it also creates an article link to the abbreviated name.

See also