<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/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://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AAbbr%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Abbr/doc&amp;action=history"/>
	<updated>2026-05-10T22:18:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Abbr/doc&amp;diff=24684&amp;oldid=prev</id>
		<title>Richardpruen: 1 revision imported: Templates and CSS files</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Abbr/doc&amp;diff=24684&amp;oldid=prev"/>
		<updated>2022-12-04T17:13:52Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: Templates and CSS files&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:13, 4 December 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key uk_vapewiki:diff:1.41:old-24683:rev-24684 --&gt;
&lt;/table&gt;</summary>
		<author><name>Richardpruen</name></author>
	</entry>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Abbr/doc&amp;diff=24683&amp;oldid=prev</id>
		<title>wikipedia&gt;ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ: Add bot use warning</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Abbr/doc&amp;diff=24683&amp;oldid=prev"/>
		<updated>2022-12-03T14:53:00Z</updated>

		<summary type="html">&lt;p&gt;Add bot use warning&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;
{{High-use| 452316 }}&lt;br /&gt;
{{Bot use warning|bots=[[User:AAlertBot]]}}&lt;br /&gt;
{{#ifeq:{{ROOTPAGENAME}}|Tooltip|{{Uses TemplateStyles|Template:Tooltip/styles.css}}}}&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 [[HTML]] [[HTML element#General phrase elements|element]] {{tag|abbr}}, to create a [[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;
Note that readers on mobile devices typically do not have a mouse to hover with, and so generally cannot see tooltip contents. Mobile users may access tooltips via a tap by modifying the settings for [[mw:Reference Tooltips|Reference Tooltips]], but this is not so useful on linked text, because the same tap that brings up the tooltip also follows the hyperlink to the destination page. As of 2021, approximately the same number of English Wikipedia page views occur on mobile vs. desktop web browsers.[https://stats.wikimedia.org/#/en.wikipedia.org/reading/total-page-views/normal|bar|2-year|access~desktop*mobile-app*mobile-web|monthly]&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;
{{Tl|Abbr}} 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 [[W3C]] and [[WHATWG]]) strictly define the {{tag|abbr|o}} element as reserved for markup of abbreviations.  Abusing it for mouse-over tooltips breaks our [[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 a basic [[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;
==Maintenance categories==&lt;br /&gt;
*{{clc|Pages using tooltip with unknown parameters}}&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|dfn}}&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:Abbreviation templates| ]]&lt;br /&gt;
[[Category:Wikipedia XHTML tag-replacing templates]]&lt;br /&gt;
[[Category:Semantic markup templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ</name></author>
	</entry>
</feed>