Call of Duty Esports Wiki
[checked revision][checked revision]
(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...")
 
m (Aligning page content across wikis)
 
Line 37: Line 37:
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
</includeonly>
 
</includeonly>
  +
  +
Adapted from [http://wiki.teamliquid.net/starcraft2/Template:Abbr Liquipedia].

Latest revision as of 03:26, 20 March 2018

{{abbr}} is an abbreviation template.

Usage[]

{{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.

Examples[]

With two parameters[]

{{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[]

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

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

With named parameters[]

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

appears as UK.


Adapted from Liquipedia.