Template:Hatnote templates: Difference between revisions
No edit summary |
m 1 revision imported: Re-import every Template/Module from wikipedia |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Navbox | {{Navbox | ||
| name = Hatnote templates | | name = Hatnote templates | ||
| state = {{{state| | | state = {{{state|expanded}}} | ||
| bodyclass = hlist | | bodyclass = hlist | ||
| belowclass = hlist | | belowclass = hlist | ||
| Line 23: | Line 23: | ||
*{{tl|For-multi}} (for multiple uses) | *{{tl|For-multi}} (for multiple uses) | ||
*{{tl|About}} | *{{tl|About}} | ||
* | {{navbox|subgroup| | ||
| group1 = Variations | |||
| list1 = *{{tl|Other uses}} | |||
*{{tl|Other uses of}} | *{{tl|Other uses of}} | ||
*{{tl|Redirect-distinguish-for}} | *{{tl|Redirect-distinguish-for}} | ||
*{{tl|About-distinguish}} | *{{tl|About-distinguish}} | ||
*{{tl|About-distinguish-text}} | *{{tl|About-distinguish-text}} | ||
}} | |||
| group3 = Other topics | | group3 = Other topics | ||
| list3 = | | list3 = | ||
| Line 77: | Line 79: | ||
*{{tl|Broader}} | *{{tl|Broader}} | ||
*{{tl|For introduction}} | *{{tl|For introduction}} | ||
*{{tl|On Wikipedia}} | |||
*{{tl|See Wiktionary}} | *{{tl|See Wiktionary}} | ||
*{{tl|Transcluding article}} | *{{tl|Transcluding article}} | ||
| Line 83: | Line 86: | ||
| group8 = Subject specific | | group8 = Subject specific | ||
| list8 = | | list8 = | ||
* {{tl|About year}} | *{{tl|About year}} | ||
* {{tl|Highway detail hatnote}} | *{{tl|Highway detail hatnote}} | ||
* {{tl|For LMST}} | *{{tl|For LMST}} | ||
* {{tl|WikiIPA}} | *{{tl|WikiIPA}} | ||
| below = | | below = | ||
| Line 95: | Line 98: | ||
*[[Template:Category hatnote templates|hatnote templates for category pages]] | *[[Template:Category hatnote templates|hatnote templates for category pages]] | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{Navbox documentation|expanded|hatnotes= | ||
</noinclude> | {{See also|Wikipedia:Hatnote#Hatnote templates}} | ||
}} | |||
{{Sandbox other|| | |||
<!-- Add categories below this line, and interwikis at Wikidata --> | |||
[[Category:Hatnote templates| ]] | |||
[[Category:Documentation see also templates]] | |||
}}</noinclude> | |||
Latest revision as of 01:07, 3 August 2026
| File:Handheld devices no.svg | This template does not display in the mobile view of Wikipedia; it is desktop only. See Template:Navbox visibility for a brief explanation. |
This is a navigational template created using {{navbox}}. It can be transcluded on pages by placing {{Hatnote templates}} below the standard article appendices and above categories.
Initial visibility
This template's initial visibility currently defaults to expanded, meaning that it is fully visible.
To change this template's initial visibility, the <syntaxhighlight lang="wikitext" inline style="display: none;" />|state= parameter may be used:
- <syntaxhighlight lang="wikitext" inline="1">{{Hatnote templates|state=collapsed}}</syntaxhighlight> will show the template collapsed, i.e. hidden apart from its title bar.
- <syntaxhighlight lang="wikitext" inline="1">{{Hatnote templates|state=autocollapse}}</syntaxhighlight> will show the template autocollapsed, i.e. if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar, but if not, it is fully visible.
Templates using the classes class=navbox ({{navbox}}) or class=nomobile ({{sidebar}}) are not displayed in article space on the mobile web site of English Wikipedia. Mobile page views accounted for 60% to 70% of all page views from 2020 through 2025. Briefly, these templates are not included in articles because 1) they are not well designed for mobile, and 2) they significantly increase page sizes—bad for mobile downloads—in a way that is not useful for the mobile use case. You can review/watch phab:T124168 for further discussion.
TemplateData
<templatedata> { "params": { "state": { "label": "State", "description": "The initial visibility of the navbox", "suggestedvalues": [ "collapsed", "expanded", "autocollapse" ], "suggested": true, "type": "string" } }, "description": "A navigational box that can be placed at the bottom of articles." } </templatedata>
Template transclusions
| Transclusion maintenance |
|---|
| Check completeness of transclusions |