Difference between revisions of "Template:Animal rights/doc"
From blackwiki
Jump to navigation
Jump to search
blackwiki>Throughthemind |
blackwiki>Throughthemind (Rename expanded to uncollapsed) |
||
| Line 19: | Line 19: | ||
To show multiple, or all of, the subsections at once, use state<sub>{{var|n}}</sub>, e.g.: | To show multiple, or all of, the subsections at once, use state<sub>{{var|n}}</sub>, e.g.: | ||
| − | * {{tnull|Animal rights|state{{=}}uncollapsed|state1{{=}}collapsed|state2{{=}}collapsed|state3{{=}} | + | * {{tnull|Animal rights|state{{=}}uncollapsed|state1{{=}}collapsed|state2{{=}}collapsed|state3{{=}}uncollapsed|state4{{=}}uncollapsed}} |
| − | Parameter <code>state</code> controls the entire template; <code>state1</code> controls the topics section; <code>state2</code> controls the advocates section; <code>state3</code> controls the movement section; <code>state4</code> controls the media section. These can be set to <code> | + | Parameter <code>state</code> controls the entire template; <code>state1</code> controls the topics section; <code>state2</code> controls the advocates section; <code>state3</code> controls the movement section; <code>state4</code> controls the media section. These can be set to <code>uncollapsed</code> or <code>collapsed</code>. The above example will produce this: |
| − | {{Animal rights|state=uncollapsed|state1=collapsed|state2=collapsed|state3= | + | {{Animal rights|state=uncollapsed|state1=collapsed|state2=collapsed|state3=uncollapsed|state4=uncollapsed}} |
===Uncollapsing a single subsection while the template is collapsed=== | ===Uncollapsing a single subsection while the template is collapsed=== | ||
Revision as of 20:45, 12 July 2020
| This is a documentation subpage for Template:Animal rights. It contains usage information, categories and other content that is not part of the original template page. |
Contents
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:
| |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| |||||||||||||||||||||||||