Difference between revisions of "Template:CA-Ministers of Transport"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(use listclass = hlist in navbox as per WP:HLIST)
imported>ArmosNights
 
(8 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Navbox  
+
{{Navbox Canada
|name = CA-Ministers of Transport
+
| name     = CA-Ministers of Transport
|state = <includeonly>{{{state|collapsed}}}</includeonly>
+
| title     = [[Minister of Transport (Canada)|Ministers of Transport]]
|titlestyle = color:black; background-color:white;
+
| leaf      = yes
|title = <span style="vertical-align:1px;">[[Image:Maple_Leaf_(from_roundel).png|20x20px]]</span>  '''<font color=#00006E>[[Minister of Transport (Canada)|Ministers of Transport]]</font>'''
+
| state    = {{{state<includeonly>|collapsed</includeonly>}}}
|listclass = hlist
+
| listclass = hlist
|style = width:100%;
 
|groupstyle = padding:0.35em 1.0em; line-height:1.1em;background:white;color:black;border: 1px solid #CC0000;
 
|list1style = padding:0.35em 0; line-height:1.5em;background:white;color:black;border-top: 1px solid #CC0000;
 
|liststyle = padding:0.35em 0; line-height:1.5em;background:white;color:black;
 
|belowstyle = background:#DCDCDC;color:black;
 
  
|group1 = <font color=black>[[Minister of Railways and Canals (Canada)|Ministers of Railways and Canals]]</font> (1879-1936)
+
| group1 = [[Minister of Railways and Canals (Canada)|Ministers of Railways and Canals]] (1879–1936)<sup>1</sup>
|list1  =
+
| list1  =
 
* [[Charles Tupper|Tupper]]
 
* [[Charles Tupper|Tupper]]
 
* [[John Henry Pope|Pope]]
 
* [[John Henry Pope|Pope]]
Line 37: Line 32:
 
* [[Robert James Manion|Manion]]
 
* [[Robert James Manion|Manion]]
 
* [[C. D. Howe|Howe]]
 
* [[C. D. Howe|Howe]]
|group2 = <font color=black>[[Minister of Transport (Canada)|Ministers of Transport]]</font> (1936-2006)
+
 
|list2 =
+
| group2 = Ministers of Marine (1930–36)<sup>1</sup>
 +
| list2  =
 +
* [[Arthur Cardin|Cardin]]
 +
* [[Alfred Duranleau|Duranleau]]
 +
* [[Lucien Henri Gendron|Gendron]]
 +
* [[C. D. Howe|Howe]]
 +
 
 +
| group3 = [[Minister of Transport (Canada)|Ministers of Transport]] (1936–2006)
 +
| list3 =
 
* [[C. D. Howe|Howe]]
 
* [[C. D. Howe|Howe]]
 
* [[Arthur Cardin|Cardin]]
 
* [[Arthur Cardin|Cardin]]
Line 60: Line 63:
 
* [[John Crosbie|Crosbie]]
 
* [[John Crosbie|Crosbie]]
 
* [[Benoît Bouchard|Bouchard]]
 
* [[Benoît Bouchard|Bouchard]]
* [[Doug Lewis|Lewis]]
+
* [[Doug Lewis (politician)|Lewis]]
 
* [[Jean Corbeil|Corbeil]]
 
* [[Jean Corbeil|Corbeil]]
 
* [[Doug Young (politician)|Young]]
 
* [[Doug Young (politician)|Young]]
Line 67: Line 70:
 
* [[Tony Valeri|Valeri]]
 
* [[Tony Valeri|Valeri]]
 
* [[Jean Lapierre|Lapierre]]
 
* [[Jean Lapierre|Lapierre]]
|group3 = Ministers of Transport, Infrastructure and Communities (2006-)
+
| group4 = Ministers of Transport, Infrastructure and Communities (2006–15)
|list3 =
+
| list4 =
 
* [[Lawrence Cannon|Cannon]]
 
* [[Lawrence Cannon|Cannon]]
 
* [[John Baird (Canadian politician)|Baird]]
 
* [[John Baird (Canadian politician)|Baird]]
 
* [[Chuck Strahl|Strahl]]
 
* [[Chuck Strahl|Strahl]]
 
* [[Denis Lebel|Lebel]]
 
* [[Denis Lebel|Lebel]]
 +
| group5 = [[Minister of Transport (Canada)|Ministers of Transport]] (2015–present)
 +
| list5  =
 +
* [[Lisa Raitt|Raitt]]
 +
* [[Marc Garneau|Garneau]]
 +
| below = <sup>1</sup>The offices of Minister of Marine and Minister of Railways and Canals were abolished and the office of Minister of Transport was created in 1936<br>
 
}}<noinclude>
 
}}<noinclude>
[[Category:Canadian ministers navigational boxes]]
+
{{collapsible option}}
 +
[[Category:Canadian ministers navigational boxes|Ministers of Transport]]
 
</noinclude>
 
</noinclude>

Latest revision as of 17:24, 8 November 2019

Template:Navbox Canada Initial visibility: currently defaults to autocollapse

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

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