Difference between revisions of "Template:Routebox"
(5 intermediate revisions by the same user not shown) | |||
Line 31: | Line 31: | ||
Check to see if type is valid | Check to see if type is valid | ||
− | -->{{#switch: {{{type|non primary}}} | primary | non primary | motorway | defunct | unbuilt motorway | former motorway | future motorway | future primary | unbuilt primary | future non primary | unbuilt non primary | historical | roman | tourist | euroroute | e road | ncn | cycle route | eurovelo = | #default = <br/><span style="font-size:8pt"><span style="color:red;">'''Error:'''</span> Invalid type specified</span><includeonly>[[Category:Pages with errors]]</includeonly> }} <!-- | + | -->{{#switch: {{{type|non primary}}} | primary | non primary | motorway | defunct | unbuilt motorway | former motorway | future motorway | future primary | unbuilt primary | future non primary | unbuilt non primary | historical | roman | tourist | euroroute | e road | ncn | cycle route | private | eurovelo = | #default = <br/><span style="font-size:8pt"><span style="color:red;">'''Error:'''</span> Invalid type specified</span><includeonly>[[Category:Pages with errors]]</includeonly> }} <!-- |
--></td></tr><!-- | --></td></tr><!-- | ||
Line 46: | Line 46: | ||
Via | Via | ||
− | -->{{#if: {{{via|}}} | <tr><td align="right">'''Via:'''</td><td align="left">{{{via}}}</td></tr> }}<!-- | + | -->{{#if: {{{via|}}} | <tr><td align="right">'''Via:{{nb1}}'''</td><td align="left">{{{via}}}</td></tr> }}<!-- |
Meets - First checks whether route is defunct, then chooses to display "met" or "meets" in the infobox. Also deals with displaying "metyear" parameter if included and appropriate. | Meets - First checks whether route is defunct, then chooses to display "met" or "meets" in the infobox. Also deals with displaying "metyear" parameter if included and appropriate. | ||
Line 87: | Line 87: | ||
Location | Location | ||
− | -->{{#if: {{{location|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Location'''</td></tr><tr> | + | -->{{#if: {{{location|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Location'''</td></tr><tr><td colspan="2" align="center"> |
{{{location}}} | {{{location}}} | ||
</td></tr>}}<!-- | </td></tr>}}<!-- | ||
Line 146: | Line 146: | ||
-->{{#ifeq: {{{type|}}} | cycle route | [[Category:Cycle Routes]]}}<!-- | -->{{#ifeq: {{{type|}}} | cycle route | [[Category:Cycle Routes]]}}<!-- | ||
-->{{#ifeq: {{{type|}}} | eurovelo | [[Category:EuroVelo]] [[Category:Cycle Routes]]}}<!-- | -->{{#ifeq: {{{type|}}} | eurovelo | [[Category:EuroVelo]] [[Category:Cycle Routes]]}}<!-- | ||
− | |||
− | |||
-->{{#if: {{{county|}}} || [[Category:Articles without county information]] }} <!-- | -->{{#if: {{{county|}}} || [[Category:Articles without county information]] }} <!-- | ||
-->{{#if: {{{authority|}}} || {{#ifeq: {{{former}}} | no | [[Category:Articles without authority information]] }} }} <!-- | -->{{#if: {{{authority|}}} || {{#ifeq: {{{former}}} | no | [[Category:Articles without authority information]] }} }} <!-- |
Latest revision as of 02:42, 9 November 2015
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
Documentation: Routebox
The Routebox is the big template down the right hand side of every single roads page on the Wiki.
Do not edit this template unnecessarily as it is included in about 6,000 pages. This causes issues regarding the Job Queue, after an update it takes 6,000 page views to clear the job queue. If edited twice, that number doubles to 12,000 (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:Routebox Sandbox first (the sandbox template is included in A449 Sandbox)
To use this template, copy the code below, replacing anything within <tags> as appropriate.
{{Routebox | <lots> }}
<lots> - There are literally hundreds of different options available. See the Help:Routeboxes page for details of how to use this template.
Routebox | |
From:- | {{{from}}} |
To:- | {{{to}}} |