Difference between revisions of "Template:Calgary Transit"

From blackwiki
Jump to navigation Jump to search
imported>Kelapstick
(new page name)
imported>MattBinYYC
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Navbox
+
{{Navbox with collapsible groups
| name      = CTrain navbox
+
| name      = Calgary Transit
| title    = '''[[Calgary Transit]] [[CTrain]] stations'''
+
| title    = [[Calgary Transit]]
| state    = {{{state|autocollapse}}}
+
| state    = {{{state|expanded}}}
 +
| bodyclass = hlist
 +
 
 +
<!-- 1.0 CTrain -->
 +
| list1 =
 +
{{Navbox|child
 +
| title = [[CTrain]] [[List of CTrain stations|lines and stations]]
 
| listclass = hlist
 
| listclass = hlist
 +
| state  = {{{state_ctrain|expanded}}}
 +
| groupstyle = text-align: center;
 +
 +
<!-- 1.1 Red Line-->
 +
| group1 = {{lnl|CTrain|Red}}
 +
| group1style = {{box-shadow border|r|#{{rcr|CTrain|Red}}|5px}};text-align:left
 +
| list1 =
 +
{{navbox|subgroup
 +
 +
<!-- 1.1.1 Northwest-->
 +
| group1 = Northwest
 +
|  list1=
 +
* {{stl|CTrain|Tuscany}}
 +
* {{stl|CTrain|Crowfoot}}
 +
* {{stl|CTrain|Dalhousie}}
 +
* {{stl|CTrain|Brentwood}} {{rcb|CTrain|Orange|lsquare}}
 +
* {{stl|CTrain|University}}
 +
* {{stl|CTrain|Banff Trail}}
 +
* {{stl|CTrain|Lions Park}} {{rcb|CTrain|Orange|lsquare}}
 +
* {{stl|CTrain|SAIT/AUArts/Jubilee}} {{rcb|CTrain|Orange|lsquare}}
 +
* {{stl|CTrain|Sunnyside}}
  
| group1style = vertical-align: middle; {{box-shadow border|r|#{{CTrain color|red}}|5px}}
+
<!-- 1.1.2 Downtown-->
| group1      = [[Red Line (Calgary)|Red Line]]
+
| group2 = Downtown
| list1      = {{Navbox|subgroup
+
| group2style = background-color:#cfe3a6;
    | groupwidth = 9em
+
|  list2=
    | group1      = Northwest
+
* {{stl|CTrain|8 Street}} {{rcb|CTrain|Blue|lsquare}} {{rcb|CTrain|Yellow|lsquare}}
    | list1      =
+
* {{stl|CTrain|7 Street}} {{rcb|CTrain|Blue|lsquare}} {{rcb|CTrain|Yellow|lsquare}}
* [[Tuscany station|Tuscany]]
+
* {{stl|CTrain|6 Street}} {{rcb|CTrain|Blue|lsquare}} {{rcb|CTrain|Yellow|lsquare}}
* [[Crowfoot station|Crowfoot]]
+
* {{stl|CTrain|4 Street}} {{rcb|CTrain|Blue|lsquare}} {{rcb|CTrain|Yellow|lsquare}}
* [[Dalhousie station (Calgary)|Dalhousie]]
+
* {{stl|CTrain|3 Street}} {{rcb|CTrain|Blue|lsquare}} {{rcb|CTrain|Yellow|lsquare}}
* [[Brentwood station (Calgary)|Brentwood]]
+
* {{stl|CTrain|1 Street}} {{rcb|CTrain|Blue|lsquare}} {{rcb|CTrain|Yellow|lsquare}} {{rcb|CTrain|Purple|lsquare}}
* [[University station (Calgary)|University]]
+
* {{stl|CTrain|Centre Street}} {{rcb|CTrain|Blue|lsquare}} {{rcb|CTrain|Purple|lsquare}}
* [[Banff Trail station|Banff Trail]]
+
* {{stl|CTrain|City Hall}} {{rcb|CTrain|Blue|lsquare}} {{rcb|CTrain|Purple|lsquare}}
* [[Lions Park station|Lions Park]]
 
* [[Jubilee station (Calgary)|SAIT/ACAD/Jubilee]]
 
* [[Sunnyside station (Calgary)|Sunnyside]]
 
  
    | group2      = Downtown
+
<!-- 1.1.3 South-->
    | group2style = background-color:#{{CTrain color|Fare Free Zone}};
+
| group3 = South
    | list2      =
+
| list3=
* [[8 Street Southwest station|8th St. SW]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* {{stl|CTrain|Victoria Park/Stampede}}
* [[7 Street Southwest station|7th St. SW]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* {{stl|CTrain|Erlton/Stampede}}
* [[6 Street Southwest station|6th St. SW]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* {{stl|CTrain|39 Avenue}}
* [[4 Street Southwest station|4th St. SW]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* {{stl|CTrain|Chinook}}
* [[3 Street Southwest station|3rd St. SW]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* {{stl|CTrain|Heritage}} {{rcb|CTrain|Teal|lsquare}}
* [[1 Street Southwest station|1st St. SW]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* {{stl|CTrain|Southland}}
* [[Centre Street station (Calgary)|Centre St.]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* {{stl|CTrain|Anderson}}
* [[City Hall station (Calgary)|City Hall]] <span style="color:#{{CTrain color|Route 202}};">■</span>
+
* {{stl|CTrain|Canyon Meadows}}
 +
* {{stl|CTrain|Fish Creek–Lacombe}}
 +
* {{stl|CTrain|Shawnessy}}
 +
* {{stl|CTrain|Somerset–Bridlewood}}
 +
}}
  
    | group3      = South
+
<!-- 1.2 Blue Line-->
    | list3      =  
+
| group2 = {{lnl|CTrain|Blue}}
* [[Victoria Park/Stampede station|Victoria Park/Stampede]]
+
| group2style = {{box-shadow border|r|#{{rcr|CTrain|Blue}}|5px}};text-align:left
* [[Erlton/Stampede station|Erlton/Stampede]]
+
| list2 =
* [[39 Avenue station (Calgary)|39th Avenue]]
+
{{navbox|subgroup
* [[Chinook station|Chinook]]
 
* [[Heritage station (Calgary)|Heritage]]
 
* [[Southland station (Calgary)|Southland]]
 
* [[Anderson station (Calgary)|Anderson]]
 
* [[Canyon Meadows station|Canyon Meadows]]
 
* [[Fish Creek–Lacombe station|Fish Creek – Lacombe]]
 
* [[Shawnessy station|Shawnessy]]
 
* [[Somerset–Bridlewood station |Somerset – Bridlewood]]
 
    }}
 
  
| group2style = vertical-align: middle; {{box-shadow border|r|#{{CTrain color|blue}}|5px}}
+
<!-- 1.2.1 West-->
| group2      = [[Blue Line (Calgary)|Blue Line]]
+
| group1 = West
| list2      = {{Navbox|subgroup
+
| list1=
    | groupwidth = 9em
+
* {{stl|CTrain|69 Street}}
    | group1     = West
+
* {{stl|CTrain|Sirocco}}
    | list1       =
+
* {{stl|CTrain|45 Street}}
* [[69 Street Southwest station|69th St. SW]]
+
* {{stl|CTrain|Westbrook}} {{rcb|CTrain|Teal|lsquare}}
* [[Sirocco station|Sirocco]]
+
* {{stl|CTrain|Shaganappi Point}}
* [[45 Street Southwest station|45th St. SW]]
+
* {{stl|CTrain|Sunalta}}
* [[Westbrook station (Calgary)|Westbrook]]
 
* [[Shaganappi Point station|Shaganappi Point]]
 
* [[Sunalta station|Sunalta]]
 
  
    | group2     = Downtown  
+
<!-- 1.2.2 Downtown-->
    | group2style = background-color:#{{CTrain color|Fare Free Zone}};
+
| group2 = Downtown
    | list2       =
+
| group2style = background-color:#cfe3a6;
* [[Downtown West–Kerby station|Downtown West – Kerby]]
+
| list2=
* [[8 Street Southwest station|8th St. SW]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* {{stl|CTrain|Downtown West–Kerby}}
* [[7 Street Southwest station|7th St. SW]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* {{stl|CTrain|8 Street}} {{rcb|CTrain|Red|lsquare}} {{rcb|CTrain|Yellow|lsquare}}
* [[6 Street Southwest station|6th St. SW]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* {{stl|CTrain|7 Street}} {{rcb|CTrain|Red|lsquare}} {{rcb|CTrain|Yellow|lsquare}}
* [[4 Street Southwest station|4th St. SW]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* {{stl|CTrain|6 Street}} {{rcb|CTrain|Red|lsquare}} {{rcb|CTrain|Yellow|lsquare}}
* [[3 Street Southwest station|3rd St. SW]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* {{stl|CTrain|4 Street}} {{rcb|CTrain|Red|lsquare}} {{rcb|CTrain|Yellow|lsquare}}
* [[1 Street Southwest station|1st St. SW]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* {{stl|CTrain|3 Street}} {{rcb|CTrain|Red|lsquare}} {{rcb|CTrain|Yellow|lsquare}}
* [[Centre Street station (Calgary)|Centre St.]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* {{stl|CTrain|1 Street}} {{rcb|CTrain|Red|lsquare}} {{rcb|CTrain|Yellow|lsquare}} {{rcb|CTrain|Purple|lsquare}}
* [[City Hall station (Calgary)|City Hall]] <span style="color:#{{CTrain color|Route 201}};">■</span>
+
* {{stl|CTrain|Centre Street}} {{rcb|CTrain|Red|lsquare}} {{rcb|CTrain|Purple|lsquare}}
 +
* {{stl|CTrain|City Hall}} {{rcb|CTrain|Red|lsquare}} {{rcb|CTrain|Purple|lsquare}}
  
    | group3     = Northeast
+
<!-- 1.2.3 Northeast-->
    | list3       =
+
| group3 = Northeast
* [[Bridgeland/Memorial station|Bridgeland/Memorial]]
+
| list3=
* [[Zoo station (Calgary)|Zoo]]
+
* {{stl|CTrain|Bridgeland/Memorial}}
* [[Barlow/Max Bell station|Barlow/Max Bell]]
+
* {{stl|CTrain|Zoo}}
* [[Franklin station (Calgary)|Franklin]]
+
* {{stl|CTrain|Barlow/Max Bell}}
* [[Marlborough station|Marlborough]]
+
* {{stl|CTrain|Franklin}}
* [[Rundle station|Rundle]]
+
* {{stl|CTrain|Marlborough}}
* [[Whitehorn station|Whitehorn]]
+
* {{stl|CTrain|Rundle}} {{rcb|CTrain|Orange|lsquare}}
* [[McKnight–Westwinds station|McKnight – Westwinds]]
+
* {{stl|CTrain|Whitehorn}}
* [[Martindale station|Martindale]]
+
* {{stl|CTrain|McKnight–Westwinds}}
* [[Saddletowne station|Saddletowne]]
+
* {{stl|CTrain|Martindale}}
    }}
+
* {{stl|CTrain|Saddletowne}} {{rcb|CTrain|Orange|lsquare}}
 +
}}
  
| group3      = Former stations
+
<!-- 1.3 Green Line-->
| list3       =  
+
| group3 = ''{{lnl|CTrain|Green}}''
* [[10 Street Southwest station|10th St. SW]]
+
| group3style = {{box-shadow border|r|#{{rcr|CTrain|Green}}|5px}};text-align:left
* [[3 Street Southeast station|3rd St. SE]]
+
| list3 =
 +
* ''{{stl|CTrain|16 Avenue}}'' {{rcb|CTrain|Orange|lsquare}}
 +
* ''{{stl|CTrain|9 Avenue}}''
 +
* ''{{stl|CTrain|2 Avenue}}''
 +
* ''{{stl|CTrain|7 Avenue}}'' {{rcb|CTrain|Red|lsquare}} {{rcb|CTrain|Blue|lsquare}}
 +
* ''{{stl|CTrain|Centre Street S}}''
 +
* ''{{stl|CTrain|4 Street SE}}''
 +
* ''{{stl|CTrain|Ramsay/Inglewood}}''
 +
* ''{{stl|CTrain|26 Avenue}}''
 +
* ''{{stl|CTrain|Highfield}}''
 +
* ''{{stl|CTrain|Lynnwood/Millican}}''
 +
* ''{{stl|CTrain|Ogden}}''
 +
* ''{{stl|CTrain|South Hill}}''
 +
* ''{{stl|CTrain|Quarry Park}}''
 +
* ''{{stl|CTrain|Douglas Glen}}'' {{rcb|CTrain|Teal|lsquare}}
 +
* ''{{stl|CTrain|Shepard}}''
 +
 
 +
<!-- 1.4 Former stations-->
 +
| group4     = Former stations
 +
| list4       =  
 +
* {{stl|CTrain|10 Street}}
 +
* [[3 Street Southeast station|3 Street SE]]
 
* [[Olympic Plaza (CTrain)|Olympic Plaza]]
 
* [[Olympic Plaza (CTrain)|Olympic Plaza]]
 +
}}
 +
 +
<!-- 2.0 Bus routes -->
 +
| list3 = {{Navbox|child
 +
| title = [[List of Calgary Transit bus routes|Bus routes]]
 +
| listclass = hlist
 +
| state = {{{state_transitway|collapsed}}}
 +
| groupstyle = text-align: center;
 +
 +
<!-- 2.1 MAX -->
 +
| group1 = [[MAX (Calgary)|MAX]]
 +
| list1 =
 +
* [[MAX Orange]] {{rcb|CTrain|Red|lsquare}} {{rcb|CTrain|Blue|lsquare}}
 +
* [[MAX Yellow]] {{rcb|CTrain|Red|lsquare}} {{rcb|CTrain|Blue|lsquare}} {{rcb|CTrain|Teal|lsquare}} {{rcb|CTrain|Purple|lsquare}}
 +
* [[MAX Teal]] {{rcb|CTrain|Red|lsquare}} {{rcb|CTrain|Blue|lsquare}} {{rcb|CTrain|Yellow|lsquare}}
 +
* [[MAX Purple]] {{rcb|CTrain|Red|lsquare}} {{rcb|CTrain|Blue|lsquare}} {{rcb|CTrain|Yellow|lsquare}}
 +
}}
  
| below = '''Legend:''' ■ - connection &#124;  ''under construction'' &#124;  Downtown stations form the 7th Avenue Free Fare Zone
+
| below =
 +
*''Italics'' indicate a future line or station
 +
* {{rcb|CTrain|Red|lsquare}} {{rcb|CTrain|Blue|lsquare}} {{rcb|CTrain|Green|lsquare}} {{rcb|CTrain|Orange|lsquare}} {{rcb|CTrain|Yellow|lsquare}} {{rcb|CTrain|Teal|lsquare}} {{rcb|CTrain|Purple|lsquare}} indicate connections
 +
*Downtown stations form the 7th Avenue Free Fare Zone
 
}}<noinclude>
 
}}<noinclude>
 
{{collapsible option}}
 
{{collapsible option}}

Latest revision as of 05:37, 7 September 2020

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.