Template:ON former
Wikimedia template / From Wikipedia, the free encyclopedia
Usage
![]() | This template uses Lua: |
This templates adds former Ontario highways to {{Infobox road}} using Parameter browse.
Code
{{Infobox road .... |preious_type = ON |previous_route = ''previous current'' |next_type = ON |next_route = ''next current'' |browse = {{ON former|previous=''previous former''|next=''next former''}} }}
Notes
- Only use
|previous=
when previous former > previous current - Only use
|next=
when next former < next current
Parameters
|previous=
The previous former route|next=
The next former route|width=
The width of the middle column (default :60px)
Example
Primary
Quick Facts Highway 60, Route information ...
Route information | |||||||
---|---|---|---|---|---|---|---|
Maintained by Ministry of Transportation of Ontario | |||||||
Location | |||||||
Country | Canada | ||||||
Province | Ontario | ||||||
Highway system | |||||||
| |||||||
| |||||||
|
Close
{{Infobox road |province = ON |type = Hwy |route = 60 |previous_type = ON |previous_route = 58 |next_type = ON |next_route = 61 |browse = {{ON former|previous=59}} }}
Secondary
Quick Facts Highway 804, Route information ...
Route information | |||||||
---|---|---|---|---|---|---|---|
Maintained by Ministry of Transportation of Ontario | |||||||
Location | |||||||
Country | Canada | ||||||
Province | Ontario | ||||||
Highway system | |||||||
| |||||||
| |||||||
|
Close
{{Infobox road |province = ON |type = Secondary |route = 804 |previous_type = ON |previous_route = 802 |next_type = ON |next_route = 805 |browse = {{ON former|previous=803}} }}
Tertiary
Quick Facts Highway 535, Route information ...
Route information | |||||||
---|---|---|---|---|---|---|---|
Maintained by Ministry of Transportation of Ontario | |||||||
Location | |||||||
Country | Canada | ||||||
Province | Ontario | ||||||
Highway system | |||||||
| |||||||
| |||||||
|
Close
{{Infobox road |province = ON |type = Secondary |route = 535 |previous_type = ON |previous_route = 534 |next_type = ON |next_route = 537 |browse = {{ON former|next=536}} }}
The documentation on top is transcluded from Template:ON former/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.