<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://twentyonewiki.info/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://twentyonewiki.info/index.php?action=history&amp;feed=atom&amp;title=Template%3AAbbr%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://twentyonewiki.info/index.php?title=Template:Abbr/doc&amp;action=history"/>
	<updated>2026-06-14T07:55:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://twentyonewiki.info/index.php?title=Template:Abbr/doc&amp;diff=3566&amp;oldid=prev</id>
		<title>Buburka Rinderbuy: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://twentyonewiki.info/index.php?title=Template:Abbr/doc&amp;diff=3566&amp;oldid=prev"/>
		<updated>2024-02-10T14:56:03Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:56, 10 February 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Buburka Rinderbuy</name></author>
	</entry>
	<entry>
		<id>https://twentyonewiki.info/index.php?title=Template:Abbr/doc&amp;diff=3565&amp;oldid=prev</id>
		<title>Template:Tooltip&gt;Rjjiii: /* Template data */ hmmm</title>
		<link rel="alternate" type="text/html" href="https://twentyonewiki.info/index.php?title=Template:Abbr/doc&amp;diff=3565&amp;oldid=prev"/>
		<updated>2024-01-15T16:42:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Template data: &lt;/span&gt; hmmm&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}} &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;
{{Cascade-protected template}}&lt;br /&gt;
{{COinS safe|n}}&lt;br /&gt;
{{High-use}}&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;
Wikipedia uses two separate templates to generate tooltips. The {{tl|abbr}} template is used to write an abbreviation (including an acronym or initialism) with its expanded meaning. It is a wrapper for the [[HTML]] [[HTML element#General phrase elements|element]] {{tag|abbr}}.  The {{tl|tooltip}} template uses the {{tag|span}} element to provide generic notes.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Only use {{tnull|abbr}} or {{tag|abbr|o}} to mark up abbreviations (including acronyms and initialisms).&amp;#039;&amp;#039;&amp;#039; 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;
Readers on mobile devices typically do not have a mouse to hover with, and so generally cannot see tooltip contents. As of 2023, more English Wikipedia page views occur on mobile than on desktop 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;
{{tlc|{{BASEPAGENAME}}|text to display inline in the article|pop-up tip}}&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
Two unnamed (positional) parameters (required) and three named parameters (optional):&lt;br /&gt;
&lt;br /&gt;
* {{para|1}} – the term to be explained; displays as text. [[Wiki markup]] is allowed but works more consistently when wrapping the template, see below for linking examples.&lt;br /&gt;
* {{para|2}} – the tooltip/pop-up (&amp;#039;&amp;#039;&amp;#039;no wiki or html markup allowed&amp;#039;&amp;#039;&amp;#039;). The popup is created by an HTML &amp;lt;code&amp;gt;title=&amp;lt;/code&amp;gt; attribute, so it cannot contain 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;
* {{para|class}}  – one or more CSS classes (space-separated if more than one)&lt;br /&gt;
* {{para|id}}  – an HTML id must be unique on the entire page.&lt;br /&gt;
* {{para|style}}  –  CSS to apply to the displayed text (no effect on tooltip/popup). Any style values with embedded blanks must be single-quoted, 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|LSD|Louisiana School for the Deaf}}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|{{abbr|LSD|Louisiana School for the Deaf}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
When hovering over the text &amp;quot;{{abbr|LSD|Louisiana School for the Deaf}}&amp;quot;, something like &amp;lt;span class=&amp;quot;titlehint&amp;quot; style=&amp;quot;border: 1px solid black; background-color: #FFFFE0; margin-right: 2px; padding: 1px 2px; font-size: smaller; box-shadow: 2px 2px 3px #A0A0A0;&amp;quot;&amp;gt;Louisiana School for the Deaf&amp;lt;/span&amp;gt; will appear as a tooltip in desktop browsers. Mobile devices may display a dotted line or other visual indicator of abbreviation, but &amp;#039;&amp;#039;will not&amp;#039;&amp;#039; provide the tooltip. No screen readers for the visually impaired will read the expansion by default; some provide an optional setting to read the expansion aloud.&lt;br /&gt;
&lt;br /&gt;
=== Abbr examples ===&lt;br /&gt;
{{markup&lt;br /&gt;
| title=Accessible when used in addition to inline expansion&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;High school students staying overnight on the Louisiana School for the Deaf (LSD) campus can phone their parents using an American Sign Language (ASL) interpreter. Although fluent in {{abbr|ASL|American Sign Language}}, most students at {{abbr|LSD|Louisiana School for the Deaf}} prefer texting their parents directly.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|High school students staying overnight on the Louisiana School for the Deaf (LSD) campus can phone their parents using an American Sign Language (ASL) interpreter. Although fluent in {{abbr|ASL|American Sign Language}}, most students at {{abbr|LSD|Louisiana School for the Deaf}} prefer texting their parents directly.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
In the above example, each abbreviation is first expanded in the body text within parentheses. The template provides an &amp;#039;&amp;#039;additional&amp;#039;&amp;#039; way for some users to access the meaning later in the text. See [[MOS:ABBR]] for more information.&lt;br /&gt;
&lt;br /&gt;
{{markup&lt;br /&gt;
| title=Less accessible when used in place of inline expansion&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;High school students staying overnight on the {{abbr|LSD|Louisiana School for the Deaf}} campus can phone their parents using an {{abbr|ASL|American Sign Language}} interpreter. Although fluent in {{abbr|ASL|American Sign Language}}, most students at {{abbr|LSD|Louisiana School for the Deaf}} prefer texting their parents directly.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|High school students staying overnight on the {{abbr|LSD|Louisiana School for the Deaf}} campus can phone their parents using an {{abbr|ASL|American Sign Language}} interpreter. Although fluent in {{abbr|ASL|American Sign Language}}, most students at {{abbr|LSD|Louisiana School for the Deaf}} prefer texting their parents directly.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
In the above example, all abbreviations are expanded via the template. This is discouraged because it is the &amp;#039;&amp;#039;only&amp;#039;&amp;#039; way for users to access the meaning. Users reading on a mobile device, reading a printout, or listening to a screen reader will likely not have access to the full meaning.&lt;br /&gt;
&lt;br /&gt;
{{markup&lt;br /&gt;
| title=Least accessible when &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;misused&amp;lt;/span&amp;gt; to create tooltip notes&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;High school students staying overnight on the {{abbr|LSD|Louisiana School for the Deaf}} campus can phone their parents using an {{abbr|ASL|American Sign Language}} {{abbr|interpreter|Although fluent in ASL, most students at LSD prefer texting their parents directly.}}.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|High school students staying overnight on the {{abbr|LSD|Louisiana School for the Deaf}} campus can phone their parents using an {{abbr|ASL|American Sign Language}} {{abbr|interpreter|Although fluent in ASL, most students at LSD prefer texting their parents directly.}}.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
In the above example, all abbreviations are expanded via the template, and an entire sentence is embedded via the template. It is the &amp;#039;&amp;#039;only&amp;#039;&amp;#039; way for users to access the meaning. A user reading on a mobile device, reading a printout, or listening to a screen reader will likely not have access to the full meaning of the abbreviation and will have no clear indication that the embedded footnote exists.&lt;br /&gt;
&lt;br /&gt;
===Tooltip example===&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;
Tooltips should not be used within the body text of an article if possible (see [[MOS:NOTOOLTIPS]]). Generic tooltip notes are not a substitute for [[Help:Footnotes|footnotes]] and are intended to be used for navigational and other secondary features where space is limited. See [[Template:Glossary link]] or [[Template:Cite book/doc]] for practical examples.&lt;br /&gt;
&lt;br /&gt;
== Linking ==&lt;br /&gt;
{{Notice|Preferably use {{tl|Abbrlink}} instead.}}&lt;br /&gt;
To wiki-link the abbreviation being marked up by this template, wrap the template in the link, or the tooltip will not appear in some browsers. &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;
== Accessibility and validity ==&lt;br /&gt;
&lt;br /&gt;
The {{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]. 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}} (it will falsely 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).&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}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
This documentation is shared by Template:abbr and Template:tooltip. TemplateData for both is below.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
{{#switch: {{PAGENAME}} &lt;br /&gt;
| Abbr = &amp;lt;TemplateData&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
        &amp;quot;description&amp;quot;: &amp;quot;An abbreviation or acronym with a tooltip 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; do not use markup&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;
| Tooltip = &amp;lt;TemplateData&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
        &amp;quot;description&amp;quot;: &amp;quot;Generic tooltip 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;Tooltip&amp;quot;,&lt;br /&gt;
                        &amp;quot;description&amp;quot;: &amp;quot;Shows as a mouse-over tooltip; do not use markup&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;
&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>Template:Tooltip&gt;Rjjiii</name></author>
	</entry>
</feed>