Template:Interprovincial highway
Appearance
This template uses Lua: |
{{Interprovincial highway}} is used to show the succession of the component highways of a interprovincial highways, such as the Trans-Canada Highway. It should be placed below all article content but above the categories.
Usage
[edit]Basic
[edit]{{Interprovincial highway
| curr =
| curr_type =
| curr_province =
| name =
| prev =
| prev_type =
| prev_province =
| next =
| next_type =
| next_province =
}}
Single highway
[edit]{{Interprovincial highway
| curr =
| curr_type =
| curr_province =
| name =
| prev =
| prev_type =
| prev_province =
| prev2 =
| prev2_type =
| prev2_province =
| ...
| next =
| next_type =
| next_province =
| next2 =
| next2_type =
| next2_province =
| ...
}}
Multiple highways
[edit]{{Interprovincial highway
| curr =
| curr_type =
| curr_province =
| name =
| prev =
| prev_type =
| prev_province =
| prev2 =
| prev2_type =
| prev2_province =
| ...
| next =
| next_type =
| next_province =
| next2 =
| next2_type =
| next2_province =
| ...
| hwy2_name =
| hwy2_prev =
| hwy2_prev_type =
| hwy2_prev_province =
| hwy2_prev2 =
| hwy2_prev2_type =
| hwy2_prev2_province =
| ...
| hwy2_next =
| hwy2_next_type =
| hwy2_next_province =
| hwy2_next2 =
| hwy2_next2_type =
| hwy2_next2_province =
| ...
}}
Parameters
[edit]All parameters can be repeated with the prefixes hwy2_
, hwy3_
, ... to list interprovincial highways.
Interprovincial highway
[edit]|name=
- The name of the interprovincial highway. See #Supported highways for a list of supported types. New types can be added at Module:Interprovincial highway/data.
Previous route(s)
[edit]|prev=
- The previous route that forms a part of the interprovincial highway. Terminus is shown if none is given.|prev_type=
- The type of the previous route. See Template:Jct/doc#Intersecting routes for supported types.|prev_province=
- The province of the previous route.|prev<i>=
- Additional previous routes where <i> is a number starting from 2.|prev<i>_type=
- The type of the additional route defined by|prev<i>=
.|prev<i>_type=
- The province of the additional route defined by|prev<i>=
.
Current route
[edit]|curr=
- The current route that forms a part of the interprovincial highway.|curr_type=
- The type of the current route. See Template:Jct/doc#Intersecting routes for supported types.|curr_province=
- The province of the current route.
Next route(s)
[edit]|next=
- The next route that forms a part of the interprovincial highway. Terminus is shown if none is given.|next_type=
- The type of the next route. See Template:Jct/doc#Intersecting routes for supported types.|next_province=
- The province of the next route.|next<i>=
- Additional next routes where <i> is a number starting from 2.|next<i>_type=
- The type of the additional route defined by|next<i>=
.|next<i>_type=
- The province of the additional route defined by|next<i>=
.
Examples
[edit]{{Interprovincial highway
| name = TCH
| curr = 417
| curr_type = Hwy
| curr_province = ON
| prev = 17
| prev_type = Hwy
| prev_province = ON
| prev2 = 7
| prev2_type = Hwy
| prev2_province = ON
| next = 40
| next_type = A
| next_province = QC
}}
{{Interprovincial highway
| curr = 16
| curr_type = Hwy
| curr_province = BC
| name = Yellowhead
| next = 16
| next_type = Hwy
| next_province = AB
| hwy2_name = TCH
| hwy2_next = 16
| hwy2_next_type = Hwy
| hwy2_next_province = AB
}}
Supported highways
[edit]Value | Title |
---|---|
Yellowhead | Yellowhead Highway |
2 | Interprovincial Highway 2 |
TCH | Trans-Canada Highway |
See also
[edit]- Template:State detail page browse - Similar template used for Interstate highways