Template:Abbr: Difference between revisions
(Create 'Abbr' template for abbreviations.) |
(Remove unintended trailing newline.) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><abbr title="{{{longform|{{{ | <includeonly><abbr title="{{{longform|{{{2|}}}}}}">{{{shortform|{{{1|}}}}}}</abbr></includeonly><!-- | ||
<noinclude>{{documentation}}</noinclude> | --><noinclude>{{documentation}}</noinclude> |
Latest revision as of 01:53, 2 December 2024
A template for simplifying the marking of abbreviations and providing their unabbreviated forms as hover text.
Note: Despite behaving similarly to the {{hover text}}
template, the order of the parameters differs due to the two templates having different intended uses. The {{hover text}}
template is intended to be used wherever hover text might be stylistically desired, whereas the {{abbr}}
template is specifically for use with abbreviations.
Examples:
{{abbr|n.|noun}}
→ n.{{abbr|v.|verb}}
→ v.{{abbr|adj.|adjective}}
→ adj.{{abbr|adc.|adverb}}
→ adc.{{abbr|DRC|D'ni Restoration Council}}
→ DRC
Template Data[edit source]
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Abbreviation | 1 shortform | The abbreviation that will be included directly into the page text.
| String | required |
Full Text | 2 longform | The full text of which the abbreviation is a shortened form. The text that shall appear when the abbreviation in the page text is hovered over.
| String | required |
The above documentation is transcluded from Template:Abbr/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |