Template:Abbr
Revision as of 14:39, 14 May 2020 by old>Phoe nixx (template creation)
Documentation
[purge]
{{abbr}}
is an abbreviation template.
Usage
{{abbr}}
takes two unnamed parameters, in order:
- The short form, which shows as text on the page
- The long form, which the short form is an abbreviation for
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 named parameters
{{abbr|UK|United Kingdom|class=country-name|id=foobar}}
appears as UK.