Template:Collapsible option: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus
<div> to ensure template starts as new section, replaced ellipsis with colon
meta>GermanJoe
fix - whitespace per edit request (see talkpage, 15 Nov)
Line 6: Line 6:
{{#if:{{{state|}}}{{{default|}}}
{{#if:{{{state|}}}{{{default|}}}
  | {{plaincode|'''{{#if:{{{state|}}} |{{{state}}} |{{{default}}}}}'''}} ''has been set as the default state.''
  | {{plaincode|'''{{#if:{{{state|}}} |{{{state}}} |{{{default}}}}}'''}} ''has been set as the default state.''
  | Unless set otherwise (see the{{plaincode|state}}parameter in the template's code), the template's default state is{{plaincode|autocollapse}}.
  | Unless set otherwise (see the {{plaincode|state}} parameter in the template's code), the template's default state is {{plaincode|autocollapse}}.
}}<!--
}}<!--



Revision as of 18:40, 16 November 2014

How to manage this template's initial visibility

To manage this template's visibility when it first appears, add the parameter:

Template:Plaincode ..........  to show the template in its collapsed state, i.e. hidden apart from its titlebar;
Template:Plaincode ............  to show the template in its expanded state, i.e. fully visible;
Template:Plaincode ....  to show the template in its collapsed state but only if there is another template of the same type on the page.

Unless set otherwise (see the Template:Plaincode parameter in the template's code), the template's default state is Template:Plaincode.Template:When on template page