Template:Collapsible option: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Nyttend Per request at talk page; content copied from Template:Collapsible option/sandbox |
meta>Redrose64 |
||
Line 14: | Line 14: | ||
--><noinclude>''Template name''</noinclude> <!-- | --><noinclude>''Template name''</noinclude> <!-- | ||
-->|{{#ifeq:{{{statename|}}}|optional | |state=}}autocollapse}}</code> <!-- | -->|{{#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. | -->to show this template in its collapsed (hidden) state '''''only if''''' there is another template of the same type on the page. | ||
* {{#if:{{{state|{{{default|}}}}}} | |||
| '''{{{state|{{{default}}}}}}''' has been set as | |||
| Unless set otherwise (see ''state'' parameter within the template's code), autocollapse is | |||
}} the default state.<noinclude> | |||
{{documentation}} | {{documentation}} | ||
<!-- Add categories, interwiki links etc on the bottom of /doc page, not here --> | <!-- Add categories, interwiki links etc on the bottom of /doc page, not here --> | ||
</noinclude> | </noinclude> |
Revision as of 19:45, 12 February 2013
- 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. - Unless set otherwise (see state parameter within the template's code), autocollapse is the default state.