Help:Routeboxes
|
The Routebox is a box that sits to the top right hand screen of any specific article about a road. It allows common pieces of information, and an inline map, to be displayed.
The code[edit]
The routebox template can be used on any road, and most variables are optional. See below for reference of what variables do, and extra variables that may be included
{{Routebox | number = | image = | caption = | type = | name = | from = | to = | via = | authority = | county = | miles = | meets = | formernumbers = | nowpartof = | gridref_from = | gridref_to = | outline = }}
Attribute reference table[edit]
Attribute | Optional? | Description | Example | Default |
---|---|---|---|---|
country | Optional | The country the road is in. Essential for non GB roads if grid references are given. | Northern Ireland | Great Britain |
number | Optional | The number of the road | A1 | Uses page title if not given |
image | Optional | The main picture to illustrate the road. Use this if one definitive picture that illustrates the road stands out. Don't use a map here, but use the "map" or "sabremap" tags as described below. The name of the image should be everything after File: or Image: as you normally view it in the gallery. | Boat Road, Newport - Geograph - 435468.jpg | |
caption | Optional | A caption that describes the image used in the above tag | Boat Road, Newport on Tay - almost all of the A954 | The text appears below the image |
type | Optional | The type of road, choose from the following: | primary non primary motorway defunct unbuilt motorway former motorway future motorway historical future primary unbuilt primary future non primary unbuilt non primary euroroute |
non primary |
map | Optional | If the map doesn't exist, should the page be added to the Needs Map category? Only set to no if the chances of having a map for this route are near enough zero. | yes no |
yes |
mapname | Optional | The name of the map, if the file doesn't exist, it isn't displayed, and the page is automatically added to the Needs Map category unless the map parameter is set to no | A440 Old.jpg | <number>.png |
mapcaption | Optional | A caption to go below the map | The old A440 | |
name | Optional | A name for the road if known. | North Wales Expressway | |
from | The start point of the road, must be given | Doncaster | ||
to | The end point of the road, must be given | Penzance | ||
via | Optional | Any major towns or cities on the way. | Edinburgh | |
authority | Optional | Bodies that maintain the road. Separate entries using the {{-}} template (creates a dot). See Place Names for more details. |
Highways England {{-}} Cumbria {{-}} Blackburn with Darwen {{-}} Wolverhampton {{-}} Hammersmith & Fulham | |
county | Optional | Traditional Counties that the road runs through. Separate entries using the {{-}} template (creates a dot). See Place Names for more details. |
Yorkshire {{-}} Middlesex {{-}} Renfrewshire {{-}} Donegal {{-}} Radnorshire | |
miles | Optional | The length of the road in miles. It will automatically be converted to km. | 51 | |
km | Optional | The length of the road in kilometres. It will automatically be converted to miles. For use on roads within the Republic of Ireland. |
82 | |
meets | Optional | A list of other roads met, links should be wikified. If the type of road is "defunct" or "former motorway", the label will display "met" rather than "meets" | A38, A470, M8 | |
metyear | Optional | A date for use with the "Met" label. This parameter will be ignored if the road is listed as still in existence, or if the "meets" parameter is not used | 1922 | |
formernumbers | Optional | Any numbers the route has been known as before | A38 | |
nowpartof | Optional | For defunct roads, what is the route now known as? | A458, A470 | |
gridref_from | Optional | The grid reference of the start and end points of the road. | SO353252 | |
gridref_to | SO352323 | |||
outline | Optional | The route outline, see below for more information | {{Primary|Doncaster - Cardiff}} {{Non Primary| Cardiff - Penzance}} |
|
jctdir1 | Optional | For a junction listing, which direction is the first column? | Westbound | Northbound |
jctdir2 | Optional | For a junction listing, which direction is the second column? | Eastbound | Southbound |
junctions | Optional | A list of junctions, see below for more information | {{Junction|[[Ray Hall|M6 J8]]|[[M6]]|Start of Road}} {{Junction|1|[[A41]]|[[A41]]}} {{Junction|2|[[A4123]]|[[A4123]]}} {{Junction|3|[[A456]]|[[A456]]}} |
Route Outline[edit]
See also: Route Outline Key
Can be used within the outline attribute. For many roads, this will simply be one template, but there are different combinations that can be used for unbuilt and multiplex sections.
Primary section[edit]
<syntaxhighlight lang="text" class="" id="" style="" inline="1">{{Primary| <name1> - <name2> }} </syntaxhighlight>
This shows a standard primary section between the two points.
Non Primary Section[edit]
<syntaxhighlight lang="text" class="" id="" style="" inline="1">{{Non Primary| <name1> - <name2> }} </syntaxhighlight>
This shows a non-primary section between the two points.
Defunct Section[edit]
<syntaxhighlight lang="text" class="" id="" style="" inline="1">{{Defunct| <name1> - <name2> }} </syntaxhighlight>
This shows a section of route which no longer carries this number, or has not been constructed between the two points.
"Standard" Motorway[edit]
<syntaxhighlight lang="text" class="" id="" style="" inline="1">{{Motorway| <name1> - <name2> }} </syntaxhighlight>
This shows a standard motorway section between the two points.
Unbuilt Motorway[edit]
<syntaxhighlight lang="text" class="" id="" style="" inline="1">{{Unbuilt Motorway| <name1> - <name2> }} </syntaxhighlight>
This shows a section of unbuilt motorway between the two points.
Former/Defunct Motorway[edit]
<syntaxhighlight lang="text" class="" id="" style="" inline="1">{{Former Motorway| <name1> - <name2> }} </syntaxhighlight>
This shows a section of former motorway between the two points. A former motorway can be either renumbered or abandoned.
Junction Lists[edit]
Junctions use the following syntax:
Standard Junctions[edit]
<syntaxhighlight lang="text" class="" id="" style="" inline="1">{{Junction| <number> | <roads signed from direction 1> | <roads signed from direction 2> }} </syntaxhighlight>
For multiple signed roads, separate them with commas, and use "Start of road" at either end.
Motorway Services[edit]
<syntaxhighlight lang="text" class="" id="" style="" inline="1">{{Motorway Services| <name if accessible from direction 1> | <name if accessible from direction 2> ]]}} </syntaxhighlight>
Unbuilt Motorway Services[edit]
<syntaxhighlight lang="text" class="" id="" style="" inline="1">{{Unbuilt Motorway Services| <name> }} </syntaxhighlight>
Toll Booths[edit]
<syntaxhighlight lang="text" class="" id="" style="" inline="1">{{Toll| <direction of toll> }} </syntaxhighlight>
Unbuilt Junctions[edit]
<syntaxhighlight lang="text" class="" id="" style="" inline="1">{{Junction Unbuilt|| <direction 1> | <direction 2> }} </syntaxhighlight>
Closed Junctions[edit]
<syntaxhighlight lang="text" class="" id="" style="" inline="1">{{Junction Former|| <direction 1> | <direction 2> }} </syntaxhighlight>
For multiple signed roads, separate them with commas, and use "Start of road" at either end.
An Example[edit]
The below code generates a routebox for use on the A449 page. Note that not all attributes are used.
{{Routebox |type = primary |from = Stafford |to = Newport, Monmouthshire |meets = [[M6]], [[M54]], [[M5]], [[M50]], [[M4]] |miles = |outline = {{Defunct|Newcastle under Lyme - Stafford}} {{Primary|Stafford - Ross on Wye}} {{Primary Multiplex|A40|Ross on Wye - Raglan}} {{Primary|Raglan - Newport}} }}