Difference between revisions of "Template:Abbr/doc"

From Emulation General Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ The template {{tl|Abbr}} is used to write an abbreviation with its meaning. It is a wrapper for the HTML element <code><nowiki><abbr>...‎</abbr></nowiki></co...")
 
(No difference)

Latest revision as of 08:09, 21 March 2024


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

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

{{abbr|WMF|Wikimedia Foundation}}

WMF

Linking must be done a particular way[edit]

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