Template:Abbr

From Emulation General Wiki
Revision as of 03:51, 3 March 2022 by Childishbeat (talk | contribs) (Added Abbr template from Wikipedia)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Abbr/doc to edit this documentation. (How does this work?)


The template {{Abbr}} is used to write an abbreviation with its meaning. It is a wrapper for the HTML element <abbr>...‎</abbr>, the element used by most web browsers to create a tooltip indicating the meaning of an abbreviation or acronym.

Please note: Do not use {{abbr}} or <abbr> to mark up material other than abbreviations or acronyms. Using it to generate tooltips elsewhere is a misuse of the underlying HTML and causes accessibility problems

Usage

The template takes two unnamed parameters.

1
abbreviation – the abbreviation, acronym, or initialism to be explained; shows as text, and may use wikimarkup, such as a link to an article about what it refers to.
2
meaning – the expansion or definition of the abbreviated term; shows as the popup when you hover over the abbreviation. No wikimarkup can be used in this parameter.

Example

{{abbr|WMF|Wikimedia Foundation}}
WMF

Linking must be done a particular way

To wiki-link the abbreviation being marked up by this template, wrap the template in the link, not vice-versa, or the meaning will not appear in some browsers, including Chrome.

Compatibility Markup Renders as
Compatible [[mediawikiwiki:Wikimedia Foundation|{{abbr|WMF|Wikimedia Foundation}}]] WMF
Less compatible {{abbr|Wikimedia Foundation|[[mediawikiwiki:WMF|Wikimedia Foundation]]}} Wikimedia Foundation