| This template does not display in the mobile view of Wikipedia; it is desktop only. See Template:Navbox visibility for a brief explanation. |
Uncollapsed template
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
Uncollapsing a single subsection
Add |state=uncollapsed|name to show (uncollapse) any of the subsections, by default.
Abbreviated section names are topics, advocates, movement, and media.
{{Animal rights|state=uncollapsed|topics}}{{Animal rights|state=uncollapsed|advocates}}{{Animal rights|state=uncollapsed|movement}}{{Animal rights|state=uncollapsed|media}}
For example, {{Animal rights|state=uncollapsed|topics}} will produce:
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
Uncollapsing multiple subsections
To show multiple, or all of, the subsections at once, use staten, e.g.:
{{Animal rights|state=uncollapsed|state1=collapsed|state2=collapsed|state3=uncollapsed|state4=uncollapsed}}
Parameter state controls the entire template; state1 controls the topics section; state2 controls the advocates section; state3 controls the movement section; state4 controls the media section. These can be set to uncollapsed or collapsed. The above example will produce this:
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
Uncollapsing a single subsection while the template is collapsed
Add |name to show (uncollapse) any of the subsections when the template is uncollapsed.
For example, {{Animal rights|topics}} will produce:
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
This is a navigational template created using {{navbox}}. It can be transcluded on pages by placing {{Animal rights}} below the standard article appendices and above categories.
Initial visibility
This template's initial visibility currently defaults to
- REDIRECT Template:Parameter value
This page is a redirect. The following categories are used to track and monitor this redirect:
|
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">{{Animal rights|state=collapsed}}</syntaxhighlight> will show the template collapsed, i.e. hidden apart from its title bar.
- <syntaxhighlight lang="wikitext" inline="1">{{Animal rights|state=expanded}}</syntaxhighlight> will show the template expanded, i.e. 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 |
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Subpages of this template.