Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





Template:Navbox documentation





Template  

Talk  



Language  

Watch  

View source  



This is an old revision of this page, as edited by Sdkb (talk | contribs)at06:20, 31 July 2023 (Add a notice to make this hopefully a bit less confusing.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff)  Previous revision | Latest revision (diff) | Newer revision  (diff)
 


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 (anavbox, 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:

TemplateData

A navigational box that can be placed at the bottom of articles.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Statestate

The initial visibility of the navbox

Suggested values
collapsed expanded autocollapse
Unknownsuggested

Explanation

This is a wrapper for {{Collapsible option}} to provide a semblance of documentation for navbox templates. The {{Collapsible option}} template can be suppressed with |stateless=yes.


{{Collapsible option}} is a utility template provides a standardised message for transclusionontemplate documentaion pages for templates whose collapsibility may be managed by the parameter |state=.

It can be used on either the template page itself (wrapped within <noinclude>...</noinclude> tags), but it is almost always better to place it in the template's {{documentation subpage}}.

Indicating optional use of state name

The |state= parameter used to manage collapsible templates need not always be named explicitly, i.e. {{Template name|state}} can be the same as {{Template name|state=state}}, if the template is coded that way. To indicate this in the {{Collapsible option}} message, add the parameter |statename=optional. This modifies the message so that it reads (if it were used for itself):

This template's initial visibility currently defaults to autocollapse, meaning that if there is another collapsible item on the page (anavbox, 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:

This possibility is enabled by including:

If, however, the template includes collapsible sections within itself (e.g. {{Navbox with collapsible groups}}), then enabling this possibility may introduce ambiguity as regards what is to be collapsed or expanded. In those instances, therefore, the requirement to use |state= should be retained.

Changing the default state

To change the default state {{Collapsible option}} uses, add the parameter |default=collapsedor|default=expanded accordingly. To restore the default, remove any |default= previously included.

The |default=collapsed option must not be used in main article content in mainspace, e.g. to hide tables of information, or to cram extraneous details into infoboxes. (For more information, see Wikipedia:Manual of Style § Scrolling lists and collapsible content.) This option is permissible in navboxes, which are not part of the article content per se.

Slashes and the nobase parameter

If the template name given to {{Collapsible option}} includes a forward-slash (virgule) character – / – then the parameter |nobase= (set to on, true, etc.) will need to be added so that the name is displayed correctly (i.e., so that {{PAGENAME}} rather than the default {{BASEPAGENAME}} is used to display it).

See also

TemplateData

This is a wrapper for {{Collapsible option}} to provide a semblance of documentation for navbox templates.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Top content2

Hatnotes, Usage, etc. (above {{collapsible option}} but below {{Template display|nomobile}})

Contentoptional
Content3

TemplateData, See also, etc. (below {{collapsible option}})

Contentoptional
Statestate 1

Set to either: (1) expand, (2) collapse, or (3) autocollapse

Default
autocollapse
Example
collapse
Booleansuggested
Templatetemplate

To call the template anything other than {{PAGENAME}} within the documentation

Auto value
{{PAGENAME}}
Stringoptional
Statelessstateless

Hides the {{Collapsible option}} transclusion for when the navbox doesn't support a state.

Example
yes
Auto value
yes
Unknownoptional

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Navbox_documentation&oldid=1168008829"
 



View edit history of this page.  


Languages

 


العربية

Dansk
فارسی
ि
Bahasa Indonesia
Македонски


Bahasa Melayu



Simple English
Slovenščina
Tagalog

Тоҷикӣ
Türkçe
Tiếng Vit

 

Wikipedia


This page was last edited on 31 July 2023, at 06:20 (UTC).

This version of the page has been revised. Besides normal editing, the reason for revision may have been that this version contains factual inaccuracies, vandalism, or material not compatible with the Creative Commons Attribution-ShareAlike License.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Terms of Use

Desktop