From Call of Duty Esports Wiki
< Template:Abbr
Revision as of 10:14, 26 October 2014 by Lxrcombe@legacy41975280 (talk | contribs) (Created page with "__NOTOC__ {{tl|abbr}} is an '''abbreviation''' template. == Usage == {{tl|abbr}} takes two unnamed parameters, in order: #The ''short form'', which shows as text on the page...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

{{abbr}} is an abbreviation template.


{{abbr}} takes two unnamed parameters, in order:

  1. The short form, which shows as text on the page
  2. The long form, which the short form is an abbreviation for

There is an option for a third parameter: adding "unicode" (or "u") applies {{unicode}} to the text of parameter 1. This may resolve rendering issues with browsers which do not apply the proper font to the text. Other fonts/languages may be added to the code as needed. If the third parameter is not defined, it will be ignored.

The template also has two named parameters:

  • |class=
  • |id=

which create the corresponding HTML attributes on the abbr element.


With two parameters[edit]

{{abbr|MSLP|Mean Sea Level Pressure}}

appears as MSLP. When hovering over the text, something like Mean Sea Level Pressure appears as a tooltip in many (but not all) browsers.

With three parameters[edit]

{{abbr|pȅći • пе̏ћи|to say|unicode}}

appears as Template:Unicode. Compare pȅći • пе̏ћи without the Unicode formatting.

With named parameters[edit]

{{abbr|UK|United Kingdom|class=country-name|id=foobar}}

appears as UK.