Difference between revisions of "Template:Cadets Canada"

From blackwiki
Jump to navigation Jump to search
imported>TonyTheTiger
(adding {{collapsible option}} and/or {{{collapse_state}}})
imported>WOSlinker
(tidy style for better HTML5 compatibility)
Line 1: Line 1:
 
{{navbox
 
{{navbox
 
|name  = Cadets Canada
 
|name  = Cadets Canada
|title = <span style="vertical-align:1px;">[[Image:Maple_Leaf_(from_roundel).png|20x20px]]</span>  '''<font color=#00006E>[[Canadian Cadet Organizations]]</font>'''
+
|title = <span style="vertical-align:1px;">[[Image:Maple_Leaf_(from_roundel).png|20x20px]]</span>  '''[[Canadian Cadet Organizations|<span style="color:#00006E;">Canadian Cadet Organizations</span>]]'''
 
|state = {{{state|autocollapse}}}
 
|state = {{{state|autocollapse}}}
 
|listclass = hlist
 
|listclass = hlist

Revision as of 18:32, 8 May 2015

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Cadets Canada|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Cadets Canada|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Cadets Canada|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.