Template:Collapsible option: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Gadget850
<tt> → <code>
meta>Mr. Stradivarius
Add "state optional" parameter per edit protected request
Line 5: Line 5:
--><includeonly>{{BASEPAGENAME}}</includeonly><noinclude>''Template name''</noinclude>|state=expanded}}</code> to show this template in its expanded (fully visible) state.
--><includeonly>{{BASEPAGENAME}}</includeonly><noinclude>''Template name''</noinclude>|state=expanded}}</code> to show this template in its expanded (fully visible) state.
*Use <code>{&#123;<!--
*Use <code>{&#123;<!--
--><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.)<noinclude>
--><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.) {{#ifeq:{{{state optional|}}}|true|Alternatively, the <code>state =</code> can be omitted.}}<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 12:25, 1 December 2012

Note to editors on how to manage collapsibility:

  • 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.)