Difference between revisions of "Template:Abbr"
Jump to navigation
Jump to search
old>Phoe nixx (template creation) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 21:16, 21 November 2021
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.