Template:Collapsible option: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Mr. Stradivarius Add "state optional" parameter per edit protected request |
meta>Nyttend Per request at talk page; content copied from Template:Collapsible option/sandbox |
||
Line 1: | Line 1: | ||
; {{larger|How to manage this template's visibility}} | |||
*Use <code>{{<!-- | * Use <code>{{<!-- | ||
--><includeonly>{{BASEPAGENAME}}</includeonly><noinclude>''Template name''</noinclude>|state=collapsed}}</code> to show this template in its collapsed (hidden) state. | --><includeonly>{{BASEPAGENAME}}</includeonly><!-- | ||
*Use <code>{{<!-- | --><noinclude>''Template name''</noinclude> <!-- | ||
--><includeonly>{{BASEPAGENAME}}</includeonly><noinclude>''Template name''</noinclude>|state=expanded}}</code> to show this template in its expanded (fully visible) state. | -->|{{#ifeq:{{{statename|}}}|optional | |state=}}collapsed}}</code> <!-- | ||
*Use <code>{{<!-- | -->to show this template in its collapsed (hidden) state. | ||
--><includeonly>{{BASEPAGENAME}}</includeonly><noinclude>''Template name''</noinclude>|state=autocollapse}}</code> to show this template in its collapsed (hidden) state '''only if''' there is another template of the same type on the page. ({{{state|This}}} is usually the default.) | * Use <code>{{<!-- | ||
--><includeonly>{{BASEPAGENAME}}</includeonly><!-- | |||
--><noinclude>''Template name''</noinclude> <!-- | |||
-->|{{#ifeq:{{{statename|}}}|optional | |state=}}expanded}}</code> <!-- | |||
-->to show this template in its expanded (fully visible) state. | |||
* Use <code>{{<!-- | |||
--><includeonly>{{BASEPAGENAME}}</includeonly><!-- | |||
--><noinclude>''Template name''</noinclude> <!-- | |||
-->|{{#ifeq:{{{statename|}}}|optional | |state=}}autocollapse}}</code> <!-- | |||
-->to show this template in its collapsed (hidden) state '''only if''' there is another template of the same type on the page. <!-- | |||
-->({{{state|This}}} is usually the default, i.e. doesn't usually need specifying.)<noinclude> | |||
{{documentation}} | {{documentation}} | ||
<!-- | <!-- Add categories, interwiki links etc on the bottom of /doc page, not here --> | ||
</noinclude> | </noinclude> |
Revision as of 01:57, 12 December 2012
- Use
{{Template name |state=collapsed}}
to show this template in its collapsed (hidden) state. - Use
{{Template name |state=expanded}}
to show this template in its expanded (fully visible) state. - Use
{{Template name |state=autocollapse}}
to show this template in its collapsed (hidden) state only if there is another template of the same type on the page. (This is usually the default, i.e. doesn't usually need specifying.)