Help:Crossings

From All About Ayrshire
Jump to: navigation, search
Help Files
Getting Started
Wiki Guides
Formatting
Images
Talk and Organisation
Routeboxes, Infoboxes and other Templates
Editing Guidelines
Now what?

The code[edit]

The new style routebox template can be used on any crossing article, and most variables are optional. See below for reference of what variables do, and extra variables that may be included.

The template can be used beginning with the default {{Crossing or can be substituted for {{Bridge, {{Tunnel or {{Ferry as appropriate.

{{Bridge
 | country            = 
 | region             = 
 | traditional_county = 
 | ceremonial_county  = 
 | authority          = 
 | type               = 
 | name               = 
 | image              = 
 | caption            = 
 | road               = 
 | former_number      = 
 | built              = 
 | location           = 
 | lat                = 
 | lng                = 
}}
{{Tunnel
 | country            = 
 | region             = 
 | traditional_county = 
 | ceremonial_county  = 
 | authority          = 
 | type               = 
 | name               = 
 | image              = 
 | caption            = 
 | road               = 
 | former_number      = 
 | built              = 
 | location           = 
 | lat                = 
 | lng                = 
}}
{{Ferry
 | country            = 
 | region             = 
 | traditional_county = 
 | ceremonial_county  = 
 | authority          = 
 | type               = 
 | name               = 
 | image              = 
 | caption            = 
 | road               = 
 | former_number      = 
 | built              = 
 | location           = 
 | lat                = 
 | lng                = 
}}
{{Crossing
 | country            = 
 | region             = 
 | traditional_county = 
 | ceremonial_county  = 
 | authority          = 
 | type               = 
 | name               = 
 | image              = 
 | caption            = 
 | road               = 
 | former_number      = 
 | built              = 
 | location           = 
 | lat                = 
 | lng                = 
}}


Attribute reference table[edit]

Attribute Optional? Description Example Default
country Required The country the crossing is in. Do not [[Wikilink]] England
Scotland
Wales
Northern Ireland
Republic of Ireland
country2 Optional
region Required
If country is England
The region in which the crossing resides. Do not [[Wikilink]] North West England
North East England
Yorkshire and the Humber
West Midlands
East Midlands
East of England
Greater London
South East England
South West England
region2 Optional
traditional_county Required The traditional county. Do not [[Wikilink]] Staffordshire
traditional_county2 Optional
ceremonial_county Optional The ceremonial county, if different to the traditional one. Do not [[Wikilink]] West Midlands
ceremonial_county2 Optional
authority Required The highways authority which maintains the crossing. Do not [[Wikilink]] Highways Agency
authoirity2 Optional
type Optional The type of road using the crossing, choose from the following: primary
non primary
motorway
defunct
unbuilt motorway
former motorway
future motorway
historical
non primary
name Required A name for the crossing if known. Aust Ferry
image Optional The filename of an image to include Aust_ferry_arp.jpg
location Optional The location of the junction Aust
operator Optional Does the crossing have an operator? Who is it? Severn River Crossing PLC
from Optional Where the crossing is from and to Aust
to Beachley
gridref_from Optional The gridrefs of the start and end points of the crossing ST565898
gridref_to ST548909
road1 / road Optional The road(s) that use the crossing. Do not [[Wikilink]] M1
road2 M6
road3 A14
road4 A427
road5 B5414
former_number1 / former_number Optional Numbers of roads which have previously used the crossing. Do not [[Wikilink]] M1
former_number2 M6
former_number3 A14
former_number4 A427
former_number5 B5414
toll Optional The toll that is levied on the crossing, if any. Only list one basic price, generally for cars £1.90
built Optional The year in which the crossing was built 1924
cost Optional The amount the crossing cost to build £20m
lat Optional The latitude and longitude of the crossing, this automatically generates a map in the infobox. This page can be used to locate this information. 52.4028
lng -1.1769
mapheight Optional The width and height of the map shown in the infobox. It is reccomended that you don't exceed a width of 300 pixels, otherwise it will make the infobox too wide. 400 250
mapwidth 300 250
zoom Optional The zoom level of the map if lat/lng is specified. The higher the number, the greater the zoom. 13 15

An Example[edit]

The below code generates an infobox for use on the Severn Bridge page. Note that not all attributes are used.

{{Bridge
 | name               = Severn Bridge
 | welsh              = Pont Hafren
 | country            = England
 | region             = South West England
 | authority          = Highways Agency
 | traditional_county = Gloucestershire
 | image              = Severn Bridge.jpg
 | caption            = The bridge taken from Aust
 | type               = motorway
 | from               = [[Severn View services|Severn View Services]]
 | to                 = [[Wye Bridge]]
 | gridref_from       = ST565898
 | gridref_to         = ST548909
 | road               = M48
 | former_number      = M4
 | toll               = £5.30 (Cars)
 | built              = 1966
 | lat                = 51.610754
 | lng                = -2.642341
 | zoom               = 13
}}