<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tiffa.net/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AAbbr%2Fdoc</id>
	<title>Template:Abbr/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tiffa.net/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AAbbr%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.tiffa.net/w/index.php?title=Template:Abbr/doc&amp;action=history"/>
	<updated>2026-04-18T02:07:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.tiffa.net/w/index.php?title=Template:Abbr/doc&amp;diff=823&amp;oldid=prev</id>
		<title>imported&gt;Fire at 05:53, 18 December 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.tiffa.net/w/index.php?title=Template:Abbr/doc&amp;diff=823&amp;oldid=prev"/>
		<updated>2022-12-18T05:53:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}} __NOTOC__&lt;br /&gt;
&amp;lt;!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). --&amp;gt;&lt;br /&gt;
{{hatnote|For inline cleanup templates requesting definitions or explanations, see {{tl|Definition}} and {{tl|Explain}}.}}&lt;br /&gt;
{{COinS safe|n}}&lt;br /&gt;
{{二次利用}}&lt;br /&gt;
&lt;br /&gt;
The template&amp;amp;nbsp;{{tl|Abbr}} is used to write an abbreviation (including an acronym or initialism) with its meaning. It is a wrapper for the [[Wikipedia:HTML|HTML]] [[:en:HTML element#General phrase elements|element]] {{tag|abbr}}, to create a [[Wikipedia:tooltip|tooltip]] indicating the meaning of the term.  The {{tl|Tooltip}} variant is the same, except it uses the {{tag|span}} element, and is for providing mouse-over notes about non-abbreviations.&lt;br /&gt;
&lt;br /&gt;
{{strong|Please note: Do not use {{tnull|abbr}} or {{tag|abbr|o}} to mark up material other than abbreviations (including acronyms). Using it to generate tooltips elsewhere is a misuse of the underlying HTML and causes [[WP:Accessibility|accessibility]] problems.  For general-purpose tooltips, use {{tlx|tooltip}} instead.}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
The template&amp;amp;nbsp;{{tlx|abbr}} and its {{tlx|tooltip}} variant take two unnamed parameters, in order:&lt;br /&gt;
;{{para|1}} or first unnamed parameter: the term to be explained; shows as text, and may use wikimarkup, such as a link to an article about what it refers to.&lt;br /&gt;
;{{para|2}} or second unnamed parameter: the expansion or definition or other note about the term; shows as the popup when you hover over the term. {{strong|No wikimarkup}} can be used in this parameter.&lt;br /&gt;
Use explicitly numbered parameters if a parameter&amp;#039;s content contains the equals ({{kbd|{{=}}}}) character:&lt;br /&gt;
* Complex example: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Mass–energy equivalence|{{&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;abbr&amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;|{{math|&amp;#039;&amp;#039;E&amp;#039;&amp;#039; {{=}} &amp;#039;&amp;#039;mc&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;}}|&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;2=&amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;Energy = mass times the speed of light squared}}]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Produces: [[Mass–energy equivalence|{{abbr|{{math|&amp;#039;&amp;#039;E&amp;#039;&amp;#039; {{=}} &amp;#039;&amp;#039;mc&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;}}|2=Energy = mass times the speed of light squared}}]]&lt;br /&gt;
&lt;br /&gt;
Named parameters (usually not needed) and the input they take:&lt;br /&gt;
;{{para|class}}: One or more CSS classes (space-separated if more than one)&lt;br /&gt;
;{{para|id}}: An HTML &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; (i.e., a &amp;lt;code&amp;gt;#{{var|ID name here}}&amp;lt;/code&amp;gt; link anchor); this must be unique on the entire page.&lt;br /&gt;
;{{para|style}}: Arbitrary inline CSS to apply to the displayed text of the term (has no effect on the tooltip text). For any input that needs to be quotation-marked (e.g. because it contains a space character), use straight single-quotes only, e.g. {{para|style|font-family: &amp;#039;Times New Roman&amp;#039;, serif;}}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
{{markup&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{abbr|MSLP|Mean Sea Level Pressure}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|{{abbr|MSLP|Mean Sea Level Pressure}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
When hovering over the text &amp;quot;{{abbr|MSLP|Mean Sea Level Pressure}}&amp;quot;, something like {{titlehint|Mean Sea Level Pressure}} will appear as a tooltip in most browsers. Popular [[screen reader]]s, used by visually impaired readers, give the meaning in a different way.&lt;br /&gt;
&lt;br /&gt;
{{markup&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{abbr|UK|United Kingdom|class=country-name|id=foobar}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|{{abbr|UK|United Kingdom|class=country-name|id=foobar}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{markup&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;[[WP:COI|{{tooltip|conflict of interest|in the specific sense employed in Wikipedia policy}}]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|[[WP:COI|{{tooltip|conflict of interest|in the specific sense employed in Wikipedia policy}}]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Linking must be done a particular way ==&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Compatibility&lt;br /&gt;
!Markup&lt;br /&gt;
!Renders as&lt;br /&gt;
|-&lt;br /&gt;
!{{yes|Compatible}}&lt;br /&gt;
|{{code|&amp;lt;nowiki&amp;gt;[[Knockout#Technical knockout|{{abbr|TKO|technical knockout}}]]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
|[[Knockout#Technical knockout|{{abbr|TKO|technical knockout}}]]&lt;br /&gt;
|-&lt;br /&gt;
!{{no|Less compatible}}&lt;br /&gt;
|{{code|&amp;lt;nowiki&amp;gt;{{abbr|[[Knockout#Technical knockout|TKO]]|technical knockout}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
|{{abbr|[[Knockout#Technical knockout|TKO]]|technical knockout}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Do not link, or use any other wikimarkup or HTML markup, in the &amp;lt;kbd&amp;gt;&amp;lt;var&amp;gt;meaning&amp;lt;/var&amp;gt;&amp;lt;/kbd&amp;gt; (popup) – only plain text.&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
The mouse-over popup for the &amp;lt;kbd&amp;gt;&amp;lt;var&amp;gt;meaning&amp;lt;/var&amp;gt;&amp;lt;/kbd&amp;gt; text is created by a &amp;lt;code&amp;gt;title=&amp;lt;/code&amp;gt; attribute inside an {{tag|abbr|o}} HTML element&amp;#039;s opening tag, so it cannot itself contain any HTML (or markup that resolves to HTML when rendered). This includes simple things like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;#039;&amp;#039;italics&amp;#039;&amp;#039;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Accessibility and HTML validity concerns ==&lt;br /&gt;
&lt;br /&gt;
This template is intended {{em|only}} for use with abbreviations (including acronyms and initialisms).&lt;br /&gt;
&lt;br /&gt;
The [[Web Content Accessibility Guidelines]] contain guidelines for using the {{tag|abbr|o}} element generated by this template; see section [http://www.w3.org/TR/WCAG20-TECHS/H28.html H28: Providing definitions for abbreviations by using the abbr and acronym elements].&lt;br /&gt;
&lt;br /&gt;
Furthermore, the HTML specifications (both those of the [[Wikipedia:W3C|W3C]] and [[WHATWG]]) strictly define the {{tag|abbr|o}} element as reserved for markup of abbreviations.  Abusing it for mouse-over tooltips breaks our [[:en:Semantic HTML|semantic markup]] and makes our content {{em|invalid HTML}} (technically, &amp;quot;not [[Well-formed document|well-formed]]&amp;quot;; it will pass an basic [[:en:Validator|automated validator]] test because such a tool can&amp;#039;t tell that the logical application of the data to the structure isn&amp;#039;t correct, only that tags are nested properly, etc.).&lt;br /&gt;
&lt;br /&gt;
== Redirects ==&lt;br /&gt;
&lt;br /&gt;
The following template names will [[Wikipedia:Redirect|redirect]] to {{tl|Abbr}}:&lt;br /&gt;
* {{tl|Abbrv}}&lt;br /&gt;
* {{tl|Define}}&lt;br /&gt;
&lt;br /&gt;
{{tl|Tooltip}} is a separate template sharing the same documentation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Template data ==&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;TemplateData&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
        &amp;quot;description&amp;quot;: &amp;quot;This template defines an abbreviation or acronym, by creating a tooltip that is displayed on mouse-over.&amp;quot;,&lt;br /&gt;
        &amp;quot;params&amp;quot;: {&lt;br /&gt;
                &amp;quot;1&amp;quot;: {&lt;br /&gt;
                        &amp;quot;label&amp;quot;: &amp;quot;Term&amp;quot;,&lt;br /&gt;
                        &amp;quot;description&amp;quot;: &amp;quot;Shows as text&amp;quot;,&lt;br /&gt;
                        &amp;quot;type&amp;quot;: &amp;quot;string/line&amp;quot;,&lt;br /&gt;
                        &amp;quot;required&amp;quot;: true&lt;br /&gt;
                },&lt;br /&gt;
                &amp;quot;2&amp;quot;: {&lt;br /&gt;
                        &amp;quot;label&amp;quot;: &amp;quot;Meaning&amp;quot;,&lt;br /&gt;
                        &amp;quot;description&amp;quot;: &amp;quot;Shows as a mouse-over tooltip&amp;quot;,&lt;br /&gt;
                        &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
                        &amp;quot;required&amp;quot;: true&lt;br /&gt;
                },&lt;br /&gt;
                &amp;quot;style&amp;quot;: {&lt;br /&gt;
                        &amp;quot;label&amp;quot;: &amp;quot;CSS&amp;quot;,&lt;br /&gt;
                        &amp;quot;description&amp;quot;: &amp;quot;applies the specified CSS directives to the content of parameter 1&amp;quot;,&lt;br /&gt;
                        &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
                        &amp;quot;required&amp;quot;: false&lt;br /&gt;
                },&lt;br /&gt;
                &amp;quot;class&amp;quot;: {&lt;br /&gt;
                        &amp;quot;label&amp;quot;: &amp;quot;Class&amp;quot;,&lt;br /&gt;
                        &amp;quot;description&amp;quot;: &amp;quot;Adds a one or more CSS classes&amp;quot;,&lt;br /&gt;
                        &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
                        &amp;quot;required&amp;quot;: false&lt;br /&gt;
                },&lt;br /&gt;
                &amp;quot;id&amp;quot;: {&lt;br /&gt;
                        &amp;quot;label&amp;quot;: &amp;quot;ID&amp;quot;,&lt;br /&gt;
                        &amp;quot;description&amp;quot;: &amp;quot;Adds an HTML id (must be unique in the page)&amp;quot;,&lt;br /&gt;
                        &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
                        &amp;quot;required&amp;quot;: false&lt;br /&gt;
                }&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/TemplateData&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Abbrlink}}, a variant of this template that includes automatic wikilinking of the term (abbreviation).&lt;br /&gt;
* {{tl|Hover title}}, same as {{tl|Tooltip}} except with parameters 1 and 2 reversed, and some parameters to control linking&lt;br /&gt;
* {{tl|R-phrase}}, which generates the code number for an [[List of R-phrases|R-phrase]] (a &amp;quot;risk phrase&amp;quot;, e.g. &amp;quot;Explosive when dry&amp;quot;). The R-phrase itself is included in a tooltip, and the code links to [[List of R-phrases]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --&amp;gt;&lt;br /&gt;
[[Category:ウィキペディアのテンプレート]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Fire</name></author>
	</entry>
</feed>