Template:Crossing

From All About Ayrshire
Revision as of 05:06, 7 October 2015 by Admin (talk | contribs) (Created page with "<noinclude>{{High use}}<div style="border: 2px solid black; background-color:wheat; margin:4px;padding:4px;"> '''<big>Documentation: {{BASEPAGENAME}}</big>''' The Infobox is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Documentation: Crossing

The Infobox is the big template down the right hand side of every single page on the Wiki, other than those that relate to a road. This template calls the main {{Infobox}}, and passes parameters to it that are relevant to crossings, including bridges, tunnels, ferries and causeways . It also places the page within the All Crossings category, and if the "type" parameter is set to "ferry", it will add the page to the Ferries category

Do not edit this template unnecessarily as it is included in every crossing page. This causes issues regarding the Job Queue, after an update it takes hundreds of page views to clear the job queue. If edited twice, that number doubles (etc..) Smaller updates to other templates then need to wait for the job queue to clear before they take full effect, which can cause problems for other editors.

Test all edits on Template:Crossing sandbox first.

To use this template, copy the code below, replacing anything within <tags> as appropriate. Note that these are only the most common tags, others are also available.

{{Crossing
| name = <name>
| welsh = <welsh>
| irish = <irish>
| gaelic = <gaelic>
| from = <from>
| to = <to>
| county = <county>
| image = <image>
| caption = <caption>
| lat = <lat>
| lon = <lon>
| zoom = <zoom>
| layer = <layer>
| static = <static>
| number = <number>
| type = <type>
| operator = <operator>
| authority = <authority>
| toll = <toll>
| open = <open>
| offical_open = <official_open>
| closed = <closed>
| cost = <cost>
| rel1 = <rel1>
| rel2 = <rel2>
| rel3 = <rel3>
| rel4 = <rel4>
| rel5 = <rel5>
}}

<name> - The primary English name of the crossing. For crossings in Wales where the Welsh name is primarily used, put it here.
<welsh> - The Welsh name of the crossing, if different.
<irish> - The Irish name of the crossing, if different.
<gaelic> - The Gaelic name of the crossing, if different.
<from> - Location of one side of the crossing.
<to> - Location of the opposite side of the crossing.
<county> - The Historic (or Traditional) County that the crossing is located within.
<image> - A suitable picture for diplaying to illustrate the crossing.
<caption> - The caption for the above image, if needed.
<lat> - The latitude of the crossing. Needed to display a map.
<lon> - The longitude of the crossing. Needed to display a map.
<zoom> - The zoom level of a displayed map.
<static> - Forces a map to display in static mode, so removes the ability to scroll or zoom. Must be equal to true if desired.
<layer> - The Maps layer displayed in this Infobox. Defaults to OpenStreetMap if not used.
<type> - The type of the road that uses the crossing. Should be set to "primary", "non primary", "defunct" or "ferry", depending on the type of crossing.
<open> - The opening date of the crossing.
<official_open> - The official opening date of the crossing, usually marked by a ceremony. Only use if different from open.
<closed> - The closure date of the crossing, if relevant. Should be used with a type of "defunct"
<number> - The road number(s) that use a crossing.
<operator> - The operator of the crossing, if not a Highway or Road Authority.
<authority> - The Highway or Road Authority managing the crossing, if a local or national authority.
<toll> - The toll or price of crossing, if appropriate.
<cost> - The cost of building the crossing.