Template:Collapsible option: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Malyctenar
simplify pointlessly tangled code, return stating the default as well as allowing to change it - this is used on templates whose default state IS different
meta>Paige p3
Rm from uncat templates
Line 8: Line 8:
--><includeonly>{{PAGENAME}}</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 the default.)<noinclude>
--><includeonly>{{PAGENAME}}</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 the default.)<noinclude>


{{documentation}}
{{User talk:Paige p3}}


<!-- 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 10:43, 16 June 2008

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 the default.)

User talk:Paige p3