Difference between revisions of "Template:Abbr/doc"
From Hgames Wiki
(Initial creation of template documentation) |
(Add link to Wikipedia) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{see wikipedia documentation|Template:Abbr}} | {{see wikipedia documentation|Template:Abbr}} | ||
+ | |||
+ | Hgames Wiki uses two separate templates to generate tooltips. The {{template link|abbr}} template is used to write an abbreviation (including an [[Wikipedia:Acronym|acronym or initialism]]) with its expanded meaning. It is a wrapper for the [[Wikipedia:HTML|HTML]] [[Wikipedia:HTML element#General phrase elements|element]] {{tag|abbr}}. The {{template link|tooltip}} template uses the {{tag|span}} element to provide generic notes. | ||
+ | |||
+ | '''Only use {{template link|abbr}} or {{tag|abbr|o}} to mark up abbreviations (including acronyms and initialisms).''' Using it to generate tooltips elsewhere is a misuse of the underlying HTML and causes [[Wikipedia:Wikipedia:Accessibility|accessibility]] problems. For general–purpose tooltips, use {{template link|tooltip}} instead. |
Latest revision as of 19:58, 4 October 2024
This template's code was copied directly from Wikipedia. For more information, including more details on how to use this template in your articles, please see Wikipedia's Template:Abbr documentation. |
Hgames Wiki uses two separate templates to generate tooltips. The {{abbr}} template is used to write an abbreviation (including an acronym or initialism) with its expanded meaning. It is a wrapper for the HTML element <abbr>...</abbr>
. The {{tooltip}} template uses the <span>...</span>
element to provide generic notes.
Only use {{abbr}} or <abbr>
to mark up abbreviations (including acronyms and initialisms). Using it to generate tooltips elsewhere is a misuse of the underlying HTML and causes accessibility problems. For general–purpose tooltips, use {{tooltip}} instead.