Template:Hatnote templates: Difference between revisions
Adding {{tl|On Wikipedia}} |
m 1 revision imported: Re-import every Template/Module from wikipedia |
||
(No difference)
| |||
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 |