Jump to content

Template:ON former/doc

From Wikipedia, the free encyclopedia

This templates adds former Ontario highways to {{Infobox road}} using the browse parameter.

Usage

[edit]
{{Infobox road
....
|previous_type   = ON
|previous_route = previous current
|next_type      = ON
|next_route     = next current
|browse         = {{ON former|previous=previous former|next=next former}}
}}

Parameters

[edit]
  • |previous= The previous former route
  • |next= The next former route

Notes

[edit]
  • Only use |previous= when previous former > previous current
  • Only use |next= when next former < next current

Examples

[edit]

Primary

[edit]
Highway 60 marker
Highway 60
Route information
Maintained by Ministry of Transportation of Ontario
Location
CountryCanada
ProvinceOntario
Highway system
Highway 58 Highway 61
Former provincial highways
←  Highway 59
{{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

[edit]
Highway 502 marker
Highway 502
Route information
Maintained by Ministry of Transportation of Ontario
Location
CountryCanada
ProvinceOntario
Highway system
Queen Elizabeth Way Highway 510
Former provincial highways
←  Highway 501 Highway 503  →
{{Infobox road
|province       = ON
|type           = Secondary
|route          = 502
|previous_type  = ON
|previous_route = QEW
|next_type      = ON
|next_route     = 510
|browse         = {{ON former|previous=501|next=503}}
}}

Tertiary

[edit]
Highway 804 marker
Highway 804
Route information
Maintained by Ministry of Transportation of Ontario
Location
CountryCanada
ProvinceOntario
Highway system
Highway 802 Highway 805
Former provincial highways
←  Highway 803
{{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}}
}}

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:ON former in articles based on its TemplateData.

TemplateData for ON former

Adds former Ontario highways to {{Infobox road}} using the "browse" parameter.

Template parameters

ParameterDescriptionTypeStatus
Nextnext

The next former route. Only use when [previous former] > [previous current].

Stringoptional
Previousprevious

The previous former route. Only use when [previous former] > [previous current].

Stringoptional

See also

[edit]