Difference between revisions of "Template:Calgary Transit"

From blackwiki
Jump to navigation Jump to search
imported>Kelapstick
(new page name)
imported>Blaixx
(Migrate away from s-line templates)
Line 5: Line 5:
 
| listclass = hlist
 
| listclass = hlist
  
| group1style = vertical-align: middle; {{box-shadow border|r|#{{CTrain color|red}}|5px}}
+
| group1style = vertical-align: middle; {{box-shadow border|r|#{{rcr|CTrain|Red}}|5px}}
| group1      = [[Red Line (Calgary)|Red Line]]
+
| group1      = {{lnl|CTrain|Red}}
 
| list1      = {{Navbox|subgroup
 
| list1      = {{Navbox|subgroup
 
     | groupwidth = 9em
 
     | groupwidth = 9em
Line 22: Line 22:
  
 
     | group2      = Downtown
 
     | group2      = Downtown
     | group2style = background-color:#{{CTrain color|Fare Free Zone}};
+
     | group2style = background-color:#cfe3a6;
 
     | list2      =  
 
     | list2      =  
* [[8 Street Southwest station|8th St. SW]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* [[8 Street Southwest station|8th St. SW]] <span style="color:#{{rcr|CTrain|Blue}};">■</span>
* [[7 Street Southwest station|7th St. SW]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* [[7 Street Southwest station|7th St. SW]] <span style="color:#{{rcr|CTrain|Blue}};">■</span>
* [[6 Street Southwest station|6th St. SW]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* [[6 Street Southwest station|6th St. SW]] <span style="color:#{{rcr|CTrain|Blue}};">■</span>
* [[4 Street Southwest station|4th St. SW]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* [[4 Street Southwest station|4th St. SW]] <span style="color:#{{rcr|CTrain|Blue}};">■</span>
* [[3 Street Southwest station|3rd St. SW]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* [[3 Street Southwest station|3rd St. SW]] <span style="color:#{{rcr|CTrain|Blue}};">■</span>
* [[1 Street Southwest station|1st St. SW]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* [[1 Street Southwest station|1st St. SW]] <span style="color:#{{rcr|CTrain|Blue}};">■</span>
* [[Centre Street station (Calgary)|Centre St.]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* [[Centre Street station (Calgary)|Centre St.]] <span style="color:#{{rcr|CTrain|Blue}};">■</span>
* [[City Hall station (Calgary)|City Hall]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* [[City Hall station (Calgary)|City Hall]] <span style="color:#{{rcr|CTrain|Blue}};">■</span>
  
 
     | group3      = South
 
     | group3      = South
Line 48: Line 48:
 
     }}
 
     }}
  
| group2style = vertical-align: middle; {{box-shadow border|r|#{{CTrain color|blue}}|5px}}
+
| group2style = vertical-align: middle; {{box-shadow border|r|#{{rcr|CTrain|Blue}}|5px}}
| group2      = [[Blue Line (Calgary)|Blue Line]]
+
| group2      = {{lnl|CTrain|Blue}}
 
| list2      = {{Navbox|subgroup
 
| list2      = {{Navbox|subgroup
 
     | groupwidth = 9em
 
     | groupwidth = 9em
Line 62: Line 62:
  
 
     | group2      = Downtown  
 
     | group2      = Downtown  
     | group2style = background-color:#{{CTrain color|Fare Free Zone}};
+
     | group2style = background-color:#cfe3a6;
 
     | list2      =
 
     | list2      =
 
* [[Downtown West–Kerby station|Downtown West – Kerby]]
 
* [[Downtown West–Kerby station|Downtown West – Kerby]]
* [[8 Street Southwest station|8th St. SW]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* [[8 Street Southwest station|8th St. SW]] <span style="color:#{{rcr|CTrain|Red}};">■</span>
* [[7 Street Southwest station|7th St. SW]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* [[7 Street Southwest station|7th St. SW]] <span style="color:#{{rcr|CTrain|Red}};">■</span>
* [[6 Street Southwest station|6th St. SW]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* [[6 Street Southwest station|6th St. SW]] <span style="color:#{{rcr|CTrain|Red}};">■</span>
* [[4 Street Southwest station|4th St. SW]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* [[4 Street Southwest station|4th St. SW]] <span style="color:#{{rcr|CTrain|Red}};">■</span>
* [[3 Street Southwest station|3rd St. SW]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* [[3 Street Southwest station|3rd St. SW]] <span style="color:#{{rcr|CTrain|Red}};">■</span>
* [[1 Street Southwest station|1st St. SW]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* [[1 Street Southwest station|1st St. SW]] <span style="color:#{{rcr|CTrain|Red}};">■</span>
* [[Centre Street station (Calgary)|Centre St.]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* [[Centre Street station (Calgary)|Centre St.]] <span style="color:#{{rcr|CTrain|Red}};">■</span>
* [[City Hall station (Calgary)|City Hall]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* [[City Hall station (Calgary)|City Hall]] <span style="color:#{{rcr|CTrain|Red}};">■</span>
  
 
     | group3      = Northeast
 
     | group3      = Northeast
Line 94: Line 94:
 
* [[Olympic Plaza (CTrain)|Olympic Plaza]]
 
* [[Olympic Plaza (CTrain)|Olympic Plaza]]
  
| below = '''Legend:''' ■ - connection &#124; ''under construction'' &#124;  Downtown stations form the 7th Avenue Free Fare Zone
+
| below = '''Legend:''' ■ - connection &#124; Downtown stations form the 7th Avenue Free Fare Zone
 
}}<noinclude>
 
}}<noinclude>
 
{{collapsible option}}
 
{{collapsible option}}

Revision as of 14:51, 6 July 2019

Initial visibility: currently defaults to autocollapse

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

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