Template:Interprovincial highway/sandbox
![]() | __EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Interprovincial highway (diff). See also the companion subpage for test cases. |
![]() | 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
Basic
<syntaxhighlight lang="wikitext" style="overflow:auto">
</syntaxhighlight>
Single highway
<syntaxhighlight lang="wikitext" style="overflow:auto">
</syntaxhighlight>
Multiple highways
<syntaxhighlight lang="wikitext" style="overflow:auto">
</syntaxhighlight>
Parameters
All parameters can be repeated with the prefixes hwy2_
, hwy3_
, ... to list interprovincial highways.
Interprovincial highway
|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)
|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
|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)
|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
<syntaxhighlight lang="wikitext">{{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 }}</syntaxhighlight>
<syntaxhighlight lang="wikitext">{{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 }}</syntaxhighlight>
Supported highways
Value | Title |
---|---|
Yellowhead | ![]() |
2 | Interprovincial Highway 2 |
TCH | ![]() |
See also
- Template:State detail page browse - Similar template used for Interstate highways