Difference between revisions of "Template:Canadian banks"

From blackwiki
Jump to navigation Jump to search
imported>Dmehus
m (Comment out non-existent article for SBI Canada Bank. -DM)
imported>Joeyconnick
(allow setting of the initial state of subgroups)
Line 5: Line 5:
 
|state = {{{state<includeonly>|collapsed</includeonly>}}}
 
|state = {{{state<includeonly>|collapsed</includeonly>}}}
 
|group1 = Banks
 
|group1 = Banks
 +
|state1 = {{{state_banks<includeonly>|collapsed</includeonly>}}}
 
|list1 =  
 
|list1 =  
 
{{Navbox|subgroup
 
{{Navbox|subgroup
Line 55: Line 56:
 
}}
 
}}
 
|group2 = Credit unions
 
|group2 = Credit unions
 +
|state2 = {{{state_creditunions<includeonly>|collapsed</includeonly>}}}
 
|list2 = [[Canadian Credit Union Association]]
 
|list2 = [[Canadian Credit Union Association]]
 
{{Navbox|subgroup
 
{{Navbox|subgroup
Line 104: Line 106:
 
}}
 
}}
 
|group3 = Other financial institutions
 
|group3 = Other financial institutions
 +
|state3 = {{{state_other<includeonly>|collapsed</includeonly>}}}
 
|list3 =  
 
|list3 =  
 
{{Navbox|subgroup
 
{{Navbox|subgroup

Revision as of 17:13, 10 April 2020

Initial visibility: currently defaults to autocollapse

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

  • |state=collapsed: {{Canadian banks|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Canadian banks|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Canadian banks|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.