Template:Navbox documentation: Difference between revisions
m 1 revision imported |
>MJL add <code></code> |
||
Line 1: | Line 1: | ||
<div style="border: 2px dashed #666666;"><div style="margin: 3em;"><onlyinclude>{{documentation | <div style="border: 2px dashed #666666;"><div style="margin: 3em;"><onlyinclude>{{documentation | ||
| content = | | content = | ||
{{{hatnotes|}}} | |||
{{Template display|nomobile}} | {{Template display|nomobile}} | ||
{{{2|}}} | {{{intro|{{{2|}}}}}} | ||
This is a [[Wikipedia:Navigation template|navigational template]] created using {{tl|navbox}}. It can be [[Help:Transclusion|transcluded]] on pages by placing <nowiki>{{</nowiki>{{{template|{{PAGENAME}}}}}<nowiki>}}</nowiki> below the [[Wikipedia:Manual of Style/Layout#Standard appendices and footers|standard article appendices]]. | This is a [[Wikipedia:Navigation template|navigational template]] created using {{tl|navbox}}. It can be [[Help:Transclusion|transcluded]] on pages by placing <code><nowiki>{{</nowiki>{{{template|{{PAGENAME}}}}}<nowiki>}}</nowiki></code> below the [[Wikipedia:Manual of Style/Layout#Standard appendices and footers|standard article appendices]]. | ||
{{#if:{{{stateless|}}}|| | {{#if:{{{stateless|}}}|| | ||
==Initial visibility== | ==Initial visibility== | ||
{{Collapsible option|parameter_name={{{parameter_name|state}}}|default={{{1|{{{state|autocollapse}}}}}}}} | {{Collapsible option|parameter_name={{{parameter_name|state}}}|default={{{1|{{{state|autocollapse}}}}}}}} | ||
{{Navbox visibility}} | |||
==TemplateData== | ==TemplateData== | ||
Line 32: | Line 35: | ||
{{{3|}}} | {{{3|}}} | ||
}}</onlyinclude></div></div> | }}</onlyinclude></div></div><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories to the /doc subpage --> | <!-- Add categories to the /doc subpage --> | ||
</noinclude> |
Revision as of 12:01, 13 December 2023
This template does not display in the mobile view of Wikipedia; it is desktop only. Read the documentation for an explanation. |
This is a navigational template created using {{navbox}}. It can be transcluded on pages by placing {{Navbox documentation}}
below the standard article appendices.
Initial visibility
This template's initial visibility currently defaults to autocollapse
, meaning that 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; if not, it is fully visible.
To change this template's initial visibility, the |state=
parameter may be used:
{{Navbox documentation|state=collapsed}}
will show the template collapsed, i.e. hidden apart from its title bar.{{Navbox documentation|state=expanded}}
will show the template expanded, i.e. fully visible.
Templates using the classes class=navbox
({{navbox}}) or class=nomobile
({{sidebar}}) are not displayed on the mobile web site of English Wikipedia. Mobile page views account for approximately 66% of all page views (90-day average as of January 2024[update]).
TemplateData
A navigational box that can be placed at the bottom of articles.
Parameter | Description | Type | Status | |
---|---|---|---|---|
State | state | The initial visibility of the navbox
| String | suggested |
Template transclusions
Transclusion maintenance |
---|
Check completeness of transclusions |