Difference between revisions of "Template:Constitution of Canada"

From blackwiki
Jump to navigation Jump to search
(Night, not Knight!)
imported>Paine Ellsworth
(expand sections on this page only + standard font weight in below section)
Line 1: Line 1:
 
{{Navbox with collapsible groups
 
{{Navbox with collapsible groups
 
|name = Constitution of Canada
 
|name = Constitution of Canada
|state = {{{state<includeonly>|collapsed</includeonly>}}}
+
|state = {{{state|expanded}}}
 
|title = [[Constitution of Canada]]
 
|title = [[Constitution of Canada]]
 
|bodyclass = hlist
 
|bodyclass = hlist
  
| selected = {{lc:{{{1|}}}}}
+
| selected = {{lc:{{{selected|{{{1|}}}}}}}}
  
 
| above =
 
| above =
[[List of Canadian constitutional documents|List of constitutional documents]]
+
* [[List of Canadian constitutional documents|List of constitutional documents]]
[[Quasi-constitutionality|Quasi-constitutional law]]
+
* [[Quasi-constitutionality|Quasi-constitutional law]]
  
 
| group1 = [[Constitutional history of Canada|Pre-Confederation constitutional documents]]
 
| group1 = [[Constitutional history of Canada|Pre-Confederation constitutional documents]]
 +
| state1 = <noinclude>expanded</noinclude>
 
| abbr1 = pre-confederation
 
| abbr1 = pre-confederation
 
| list1 =
 
| list1 =
Line 25: Line 26:
  
 
| group2 = [[Canadian Confederation|Confederation]]
 
| group2 = [[Canadian Confederation|Confederation]]
 +
| state2 = <noinclude>expanded</noinclude>
 
| abbr2 = confederation
 
| abbr2 = confederation
 
| list2 =
 
| list2 =
Line 63: Line 65:
  
 
| group3  = Amendments and other constitutional documents 1867–1982
 
| group3  = Amendments and other constitutional documents 1867–1982
 +
| state3 = <noinclude>expanded</noinclude>
 
| abbr3 = amendments
 
| abbr3 = amendments
 
| list3 =
 
| list3 =
Line 73: Line 76:
  
 
| group4 = [[Patriation]]
 
| group4 = [[Patriation]]
 +
| state4 = <noinclude>expanded</noinclude>
 
| abbr4 = patriation
 
| abbr4 = patriation
 
| list4 =
 
| list4 =
Line 141: Line 145:
 
   | group5 = [[Amendments to the Constitution of Canada|Part V – Procedure for amending Constitution of Canada]]
 
   | group5 = [[Amendments to the Constitution of Canada|Part V – Procedure for amending Constitution of Canada]]
 
   |  list5 =
 
   |  list5 =
 
  
 
   | group6 = Part VI – Amendment to the Constitution Act, 1867
 
   | group6 = Part VI – Amendment to the Constitution Act, 1867
 
   |  list6 =
 
   |  list6 =
 
 
  
 
   | group7 = Part VII – General
 
   | group7 = Part VII – General
Line 157: Line 158:
  
 
| group5 = [[Constitutional convention (political custom)|Conventions]]
 
| group5 = [[Constitutional convention (political custom)|Conventions]]
 +
| state5 = <noinclude>expanded</noinclude>
 
| abbr5 = conventions
 
| abbr5 = conventions
 
| list5 =
 
| list5 =
Line 175: Line 177:
  
 
| group6 = [[Constitutional debate in Canada|Constitutional debate since 1982]]
 
| group6 = [[Constitutional debate in Canada|Constitutional debate since 1982]]
 +
| state6 = <noinclude>expanded</noinclude>
 
| abbr6 = debates
 
| abbr6 = debates
 
| list6 =
 
| list6 =
Line 184: Line 187:
  
 
| group7 = [[Canadian constitutional law|Interpretation of the Constitution]]
 
| group7 = [[Canadian constitutional law|Interpretation of the Constitution]]
 +
| state7 = <noinclude>expanded</noinclude>
 
| abbr7 = interpretation
 
| abbr7 = interpretation
 
| list7 =
 
| list7 =
Line 198: Line 202:
  
 
| group8 = Provincial constitutional law
 
| group8 = Provincial constitutional law
 +
| state8 = <noinclude>expanded</noinclude>
 
| abbr8 = provincial
 
| abbr8 = provincial
 
| list8 =
 
| list8 =
Line 205: Line 210:
  
 
|below=  
 
|below=  
* '''{{Icon|Category}} [[:Category:Constitution of Canada|Category]]'''
+
* {{Icon|Category}} [[:Category:Constitution of Canada|Category]]
* '''{{Icon|WikiProject}} [[Wikipedia:WikiProject Canadian law|WikiProject]]'''
+
* {{Icon|WikiProject}} [[Wikipedia:WikiProject Canadian law|WikiProject]]
  
 
}}<noinclude>
 
}}<noinclude>

Revision as of 11:52, 6 August 2018

Initial visibility: currently defaults to autocollapse

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

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

How to manage this template's collapsible groups/sections option
  • This template includes collapsible groups/sections. When it first appears, one of these groups/sections may be set to be visible ("expanded") while the others remain hidden ("collapsed") apart from their titlebars. To achieve this, include the parameter |name where name is one of the following words that identify the groups/sections (omit any speech or quotation marks):
  • pre-confederation, confederation, amendments, patriation, conventions, debates, interpretation, provincial
  • For example: {{Constitution of Canada |conventions}}