Template:Abbr

From Stoneshard wiki
Jump to navigation Jump to search

Template-info.png Documentation

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

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.