Difference between revisions of "Template:HK routes"
Jump to navigation
Jump to search
Template documentation
imported>CapitalR |
|||
| (55 intermediate revisions by 14 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{Navbox | + | <includeonly>{{Navbox |
|name = HK routes | |name = HK routes | ||
| − | |title = [[Hong Kong Strategic Route and Exit Number System| | + | |title = [[Hong Kong Strategic Route and Exit Number System]] |
| − | | | + | |state = {{{state|expanded}}} |
| − | }}[[Category:Routes in Hong Kong]] | + | |listclass = hlist |
| − | [[Category:Hong Kong | + | |
| − | [[ | + | |aboveclass = hlist |
| − | </noinclude> | + | |abovestyle = {{#ifeq:{{{1|}}}|routes;|background:transparent;}} |
| + | |above = {{#ifeq:{{#invoke:String|find|{{{1|}}}|routes;}}|0|| | ||
| + | * [[Route 1 (Hong Kong)|Route 1]] | ||
| + | * [[Route 2 (Hong Kong)|Route 2]] | ||
| + | * [[Route 3 (Hong Kong)|Route 3]] | ||
| + | * [[Route 4 (Hong Kong)|Route 4]] | ||
| + | * [[Route 5 (Hong Kong)|Route 5]] | ||
| + | * ''[[Route 6 (Hong Kong)|Route 6]] (proposed)'' | ||
| + | * [[Route 7 (Hong Kong)|Route 7]] | ||
| + | * [[Route 8 (Hong Kong)|Route 8]] | ||
| + | * [[Route 9 (Hong Kong)|Route 9]] | ||
| + | * [[Route 10 (Hong Kong)|Route 10]] | ||
| + | }} | ||
| + | |||
| + | |group1 = [[Route 1 (Hong Kong)|Route 1]] | ||
| + | |group1style = {{box-shadow border|r|#8B2F86|5px}} | ||
| + | |list1 = {{#ifeq:{{#invoke:String|find|{{{1|}}}|r1;}}|0|| | ||
| + | * [[Aberdeen Praya Road]] | ||
| + | * [[Wong Chuk Hang Road]] | ||
| + | * [[Aberdeen Tunnel]] | ||
| + | *[[Wong Nai Chung Gap Flyover]] | ||
| + | * [[Canal Road, Hong Kong#Canal Road Flyover|Canal Road Flyover]] | ||
| + | * [[Cross-Harbour Tunnel]] | ||
| + | * {{ill|Hong Chong Road|zh|康莊道}} | ||
| + | * [[Princess Margaret Road]] | ||
| + | * [[Waterloo Road, Hong Kong|Waterloo Road]] | ||
| + | * {{ill|Lion Rock Tunnel Road|zh|獅子山隧道公路}} | ||
| + | ** [[Lion Rock Tunnel]] | ||
| + | * [[Sha Tin Road]] | ||
| + | }} | ||
| + | |||
| + | |group2 = [[Route 2 (Hong Kong)|Route 2]] | ||
| + | |group2style = {{box-shadow border|r|#00A6EC|5px}} | ||
| + | |list2 = {{#ifeq:{{#invoke:String|find|{{{1|}}}|r2;}}|0|| | ||
| + | * [[Eastern Harbour Crossing]] | ||
| + | * [[Lei Yue Mun Road]] | ||
| + | * [[Kwun Tong Bypass]] | ||
| + | * [[Tate's Cairn Tunnel]] | ||
| + | * [[Tate's Cairn Highway]] | ||
| + | }} | ||
| + | |||
| + | |group3 = [[Route 3 (Hong Kong)|Route 3]] | ||
| + | |group3style = {{box-shadow border|r|#2FB435|5px}} | ||
| + | |list3 = {{#ifeq:{{#invoke:String|find|{{{1|}}}|r3;}}|0|| | ||
| + | * [[Western Harbour Crossing]] | ||
| + | * [[West Kowloon Highway]] | ||
| + | * [[Tsing Kwai Highway]] | ||
| + | ** [[Cheung Tsing Bridge]] | ||
| + | * [[Cheung Tsing Highway]] | ||
| + | ** [[Cheung Tsing Tunnel]] | ||
| + | * [[Tsing Long Highway]] | ||
| + | ** [[Ting Kau Bridge]] | ||
| + | ** [[Tai Lam Tunnel]] | ||
| + | }} | ||
| + | |||
| + | |group4 = [[Route 4 (Hong Kong)|Route 4]] | ||
| + | |group4style = {{box-shadow border|r|#B58B25|5px}} | ||
| + | |list4 = {{#ifeq:{{#invoke:String|find|{{{1|}}}|r4;}}|0|| | ||
| + | {{Navbox|child|evenodd = swap | ||
| + | |list1 = | ||
| + | * [[Island Eastern Corridor]] | ||
| + | * [[Central–Wan Chai Bypass]] | ||
| + | * {{ill|Rumsey Street Flyover|zh|林士街天橋}} | ||
| + | * [[Connaught Road|Connaught Road West Flyover]] | ||
| + | |group2 = until 2019|list2 = | ||
| + | * [[Island Eastern Corridor]] | ||
| + | * [[Victoria Park Road]] | ||
| + | * [[Gloucester Road, Hong Kong|Gloucester Road]] | ||
| + | * [[Harcourt Road]] | ||
| + | * [[Connaught Road|Connaught Road Central]] | ||
| + | * [[Connaught Road|Rumsey Street Flyover]] | ||
| + | * [[Connaught Road|Connaught Road West Flyover]] | ||
| + | }} | ||
| + | }} | ||
| + | |||
| + | |group6 = [[Route 5 (Hong Kong)|Route 5]] | ||
| + | |group6style = {{box-shadow border|r|#E28D0E|5px}} | ||
| + | |list6 = {{#ifeq:{{#invoke:String|find|{{{1|}}}|r5;}}|0|| | ||
| + | * [[Kai Fuk Road]] | ||
| + | * [[Kai Tak Tunnel]] | ||
| + | * [[East Kowloon Corridor]] | ||
| + | * [[Chatham Road|Chatham Road North]] | ||
| + | * [[West Kowloon Corridor]] | ||
| + | ** [[Gascoigne Road|Gascoigne Road Flyover]] | ||
| + | ** [[Ferry Street, Hong Kong|Ferry Street Flyover]] | ||
| + | ** [[Tong Mi Road|Tong Mi Road Flyover]] | ||
| + | ** [[Tai Kok Tsui Road|Tai Kok Tsui Road Flyover]] | ||
| + | * [[Lai Chi Kok Road]] | ||
| + | * [[Kwai Chung Road]] | ||
| + | * [[Tsuen Wan Road]] | ||
| + | }} | ||
| + | |||
| + | |group7 = ''[[Route 6 (Hong Kong)|Route 6]]'' | ||
| + | |group7style = {{box-shadow border|r|#888888|5px}} | ||
| + | |list7 = {{#ifeq:{{#invoke:String|find|{{{1|}}}|r6;}}|0|| | ||
| + | {{Navbox|child|group1 = Future|list1 = | ||
| + | * ''[[Central Kowloon Route]]'' | ||
| + | * ''{{ill|Trunk Road T2|zh|東南九龍T2主幹道}}'' | ||
| + | * ''{{ill|Tseung Kwan O–Lam Tin Tunnel|zh|將軍澳-藍田隧道}}'' | ||
| + | }} | ||
| + | }} | ||
| + | |||
| + | |group8 = [[Route 7 (Hong Kong)|Route 7]] | ||
| + | |group8style = {{box-shadow border|r|#F08AAF|5px}} | ||
| + | |list8 = {{#ifeq:{{#invoke:String|find|{{{1|}}}|r7;}}|0|| | ||
| + | * {{ill|Wan Po Road|zh|環保大道}} | ||
| + | * {{ill|Tseung Kwan O Tunnel Road|zh|將軍澳隧道公路}} | ||
| + | * [[Tseung Kwan O Tunnel]] | ||
| + | * {{ill|Tseung Kwan O Road|zh|將軍澳道}} | ||
| + | * [[Kwun Tong Road]] | ||
| + | * [[Lung Cheung Road]] | ||
| + | * {{ill|Ching Cheung Road|zh|呈祥道}} | ||
| + | }} | ||
| + | |||
| + | |group9 = [[Route 8 (Hong Kong)|Route 8]] | ||
| + | |group9style = {{box-shadow border|r|#30377F|5px}} | ||
| + | |list9 = {{#ifeq:{{#invoke:String|find|{{{1|}}}|r8;}}|0|| | ||
| + | * [[Tsing Sha Highway]] | ||
| + | ** [[Tai Wai Tunnel]] | ||
| + | ** [[Eagle's Nest Tunnel and Sha Tin Heights Tunnel|Sha Tin Heights Tunnel]] | ||
| + | ** [[Eagle's Nest Tunnel and Sha Tin Heights Tunnel|Eagle's Nest Tunnel]] | ||
| + | ** [[Stonecutters Bridge]] | ||
| + | ** [[Nam Wan Tunnel]] | ||
| + | * [[Lantau Link]] | ||
| + | ** [[Tsing Ma Bridge]] | ||
| + | ** [[Ma Wan Viaduct]] | ||
| + | ** [[Kap Shui Mun Bridge]] | ||
| + | * [[North Lantau Highway]] | ||
| + | }} | ||
| + | |||
| + | |group10 = [[Route 9 (Hong Kong)|Route 9]] | ||
| + | |group10style = {{box-shadow border|r|#CF0421|5px}} | ||
| + | |list10 = {{#ifeq:{{#invoke:String|find|{{{1|}}}|r9;}}|0|| | ||
| + | * [[Shing Mun Tunnels]] | ||
| + | * {{ill|Shing Mun Tunnel Road|zh|城門隧道公路}} | ||
| + | * [[Tai Po Road|Tai Po Road – Sha Tin]] | ||
| + | * [[Tolo Highway]] | ||
| + | * [[Fanling Highway]] | ||
| + | * [[San Tin Highway]] | ||
| + | * [[Yuen Long Highway]] | ||
| + | * [[Tuen Mun Road]] | ||
| + | * [[Cheung Pei Shan Road]] | ||
| + | }} | ||
| + | |||
| + | |group11 = [[Route 10 (Hong Kong)|Route 10]] | ||
| + | |group11style = {{box-shadow border|r|#1A663A|5px}} | ||
| + | |list11 = {{#ifeq:{{#invoke:String|find|{{{1|}}}|r10;}}|0|| | ||
| + | * [[Hong Kong–Shenzhen Western Corridor]] | ||
| + | * [[Kong Sham Western Highway]] | ||
| + | }} | ||
| + | }}</includeonly><noinclude> | ||
| + | {{documentation|content= | ||
| + | {{HK routes|routes; r1; r2; r3; r4; r5; r6; r7; r8; r9; r10;}} | ||
| + | == Usage == | ||
| + | '''How to manage the visibility of template's sections'''<br /> | ||
| + | {{tlc|HK routes|section; section; ... section;}} | ||
| + | : Here, <code>section</code> is either <code>routes</code>, <code>r1</code>, <code>r2</code>, <code>r3</code>, ..., or <code>r10</code>. Note, the trailing semicolon is important. The example presented above shows all available sections. | ||
| + | |||
| + | {{collapsible option|state=expanded}} | ||
| + | [[Category:Routes in Hong Kong]] | ||
| + | [[Category:Hong Kong transport templates|Routes]] | ||
| + | [[Category:Routes in Hong Kong|μ]] | ||
| + | }}</noinclude> | ||
Latest revision as of 03:48, 20 September 2020
Usage
How to manage the visibility of template's sections
{{HK routes|section; section; ... section;}}
- Here,
sectionis eitherroutes,r1,r2,r3, ..., orr10. Note, the trailing semicolon is important. The example presented above shows all available sections.
Initial visibility: currently defaults to autocollapse
To set this template's initial visibility, the |state= parameter may be used:
|state=collapsed:{{HK routes|state=collapsed}}to show the template collapsed, i.e., hidden apart from its title bar|state=expanded:{{HK routes|state=expanded}}to show the template expanded, i.e., fully visible|state=autocollapse:{{HK routes|state=autocollapse}}
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.
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |