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>BrownHairedGirl
 
(One intermediate revision by one other user not shown)
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
Line 15: Line 15:
 
* [[Army Cadet League of Canada|Army Cadet League]]
 
* [[Army Cadet League of Canada|Army Cadet League]]
 
* [[Air Cadet League of Canada|Air Cadet League]]
 
* [[Air Cadet League of Canada|Air Cadet League]]
|below        = '''[[Portal:Canadian Armed Forces|Canadian Forces portal]]'''
+
|below        = {{portal-inline|Canada|size=tiny}} &bull; {{portal-inline|War|size=tiny}}
 
}}<noinclude>
 
}}<noinclude>
 
{{collapsible option}}
 
{{collapsible option}}
 
[[Category:Canada military templates]]
 
[[Category:Canada military templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 03:18, 27 August 2019

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.