Difference between revisions of "Template:HK routes"

From blackwiki
Jump to navigation Jump to search
imported>Jc86035
m (en dash)
 
(4 intermediate revisions by 3 users not shown)
Line 26: Line 26:
 
* [[Wong Chuk Hang Road]]
 
* [[Wong Chuk Hang Road]]
 
* [[Aberdeen Tunnel]]
 
* [[Aberdeen Tunnel]]
 +
*[[Wong Nai Chung Gap Flyover]]
 
* [[Canal Road, Hong Kong#Canal Road Flyover|Canal Road Flyover]]
 
* [[Canal Road, Hong Kong#Canal Road Flyover|Canal Road Flyover]]
 
* [[Cross-Harbour Tunnel]]
 
* [[Cross-Harbour Tunnel]]
* [[Hong Chong Road]]
+
* {{ill|Hong Chong Road|zh|康莊道}}
 
* [[Princess Margaret Road]]
 
* [[Princess Margaret Road]]
 
* [[Waterloo Road, Hong Kong|Waterloo Road]]
 
* [[Waterloo Road, Hong Kong|Waterloo Road]]
* [[Lion Rock Tunnel]]
+
* {{ill|Lion Rock Tunnel Road|zh|獅子山隧道公路}}
* [[Lion Rock Tunnel Road]]
+
** [[Lion Rock Tunnel]]
 
* [[Sha Tin Road]]
 
* [[Sha Tin Road]]
** Dragon Bridge
 
 
}}
 
}}
  
Line 66: Line 66:
 
{{Navbox|child|evenodd = swap
 
{{Navbox|child|evenodd = swap
 
|list1 =
 
|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]]
 
* [[Island Eastern Corridor]]
 
* [[Victoria Park Road]]
 
* [[Victoria Park Road]]
Line 71: Line 76:
 
* [[Harcourt Road]]
 
* [[Harcourt Road]]
 
* [[Connaught Road|Connaught Road Central]]
 
* [[Connaught Road|Connaught Road Central]]
* [[Connaught Road|Connaught Road West]]
+
* [[Connaught Road|Rumsey Street Flyover]]
|group2 = Future|list2 =
+
* [[Connaught Road|Connaught Road West Flyover]]
* [[Island Eastern Corridor]]
 
* ''[[Central–Wan Chai Bypass]]''
 
* [[Connaught Road|Connaught Road West]]
 
 
}}
 
}}
 
}}
 
}}
Line 101: Line 103:
 
{{Navbox|child|group1 = Future|list1 =
 
{{Navbox|child|group1 = Future|list1 =
 
* ''[[Central Kowloon Route]]''
 
* ''[[Central Kowloon Route]]''
* ''[[Trunk Road T2]]''
+
* ''{{ill|Trunk Road T2|zh|東南九龍T2主幹道}}''
* ''[[Tseung Kwan O–Lam Tin Tunnel]]''
+
* ''{{ill|Tseung Kwan O–Lam Tin Tunnel|zh|將軍澳-藍田隧道}}''
 
}}
 
}}
 
}}
 
}}
Line 109: Line 111:
 
|group8style = {{box-shadow border|r|#F08AAF|5px}}
 
|group8style = {{box-shadow border|r|#F08AAF|5px}}
 
|list8 = {{#ifeq:{{#invoke:String|find|{{{1|}}}|r7;}}|0||
 
|list8 = {{#ifeq:{{#invoke:String|find|{{{1|}}}|r7;}}|0||
* [[Tseung Kwan O Tunnel Road]]
+
* {{ill|Wan Po Road|zh|環保大道}}
 +
* {{ill|Tseung Kwan O Tunnel Road|zh|將軍澳隧道公路}}
 
* [[Tseung Kwan O Tunnel]]
 
* [[Tseung Kwan O Tunnel]]
* [[Tseung Kwan O Road]]
+
* {{ill|Tseung Kwan O Road|zh|將軍澳道}}
 
* [[Kwun Tong Road]]
 
* [[Kwun Tong Road]]
 
* [[Lung Cheung Road]]
 
* [[Lung Cheung Road]]
* [[Ching Cheung Road]]
+
* {{ill|Ching Cheung Road|zh|呈祥道}}
 
}}
 
}}
  
Line 137: Line 140:
 
|list10 = {{#ifeq:{{#invoke:String|find|{{{1|}}}|r9;}}|0||
 
|list10 = {{#ifeq:{{#invoke:String|find|{{{1|}}}|r9;}}|0||
 
* [[Shing Mun Tunnels]]
 
* [[Shing Mun Tunnels]]
* [[Shing Mun Tunnel Road]]
+
* {{ill|Shing Mun Tunnel Road|zh|城門隧道公路}}
 
* [[Tai Po Road|Tai Po Road – Sha Tin]]
 
* [[Tai Po Road|Tai Po Road – Sha Tin]]
 
* [[Tolo Highway]]
 
* [[Tolo Highway]]
Line 158: Line 161:
 
== Usage ==
 
== Usage ==
 
'''How to manage the visibility of template's sections'''<br />
 
'''How to manage the visibility of template's sections'''<br />
{{tld|HK routes|section; section; ... section;}}
+
{{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.
 
: 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.
  

Latest revision as of 03:48, 20 September 2020

Template documentation

Usage

How to manage the visibility of template's sections
{{HK routes|section; section; ... section;}}

Here, section is either routes, r1, r2, r3, ..., or r10. 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}}
    • 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.