Template:Abbr/doc: Difference between revisions
Fix lint errors. |
m 1 revision imported: Initial Setup |
(No difference)
| |
Latest revision as of 09:44, 12 April 2026
| This is a documentation subpage for Template:Abbr. It contains usage information, categories and other content that is not part of the original Template page. |
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- 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.
2- 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.
Example
{{abbr|Wikimedia Foundation|WMF}} → 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 | [[meta:Wikimedia Foundation|{{abbr|Wikimedia Foundation|WMF}}]]
|
WMF |
| Less compatible | {{abbr|Wikimedia Foundation|[[meta:Wikimedia Foundation|WMF]]}}
|
WMF |
Template data
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Abbr
Define an abbreviation or acronym, by creating a tooltip that is displayed on mouse-over.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Meaning | 1 | Shows as tooltip.
| String | suggested |
| Abbreviation | 2 | Shows as regular text on the page.
| Content | suggested |
See also
- {{Clarify}}, which produces the inline superscript like this: [clarification needed]