Difference between revisions of "Template:Infobox Road"
Jump to navigation
Jump to search
m |
|||
Line 61: | Line 61: | ||
|- | |- | ||
{{#if:{{{mapcode|}}}| | {{#if:{{{mapcode|}}}| | ||
− | {{!}}colspan=2{{!}} | + | {{!}}colspan="2" align="center"{{!}} |
− | |||
{{{mapcode}}}}} | {{{mapcode}}}}} | ||
|}<noinclude> | |}<noinclude> |
Revision as of 12:38, 13 March 2007
This is the basic syntax you need to get a complete routebox on the article page, just place this before any other text and fill in the variables. Note that this is a complete list of every variable that can be used with Infobox road and that many are unnecessary in most cases. Variables that are empty can be omitted.
{{Infobox road |marker_image= |road_name= |name_notes= |type= |route= |alternate_name= |maint= |length_mi= |length_round= |length_ref= |length_notes= |established= |decommissioned= |direction_a= |starting_terminus= |junction= |direction_b= |ending_terminus= |namesake= |map= |mapcode= }}
For the above parameters here's what you should fill in:
- marker_image: shield image to be displayed
- road_name: road name to be displayed; only use this if the road is unnumbered. If it has a number, see alternate_name.
- name_notes: foot notes that will be displayed in small text underneath the highway name
- type: usually the two-letter state abbreviation for state roads; see the state WikiProject for more details
- route: This is the number of the route the article is about
- alternate_name: Use in situations where the entire route has another name (i.e. NY 590 is called the Sea Breeze Expressway for its entire length)
- maint: The agency that maintains the highway
- length_mi: This is the length of the route in miles. If you specify beyond integers (i.e. add a decimal value) you will need to set the following paramater, length_round
- length_round: If your value for length_mi is a whole number, you can omit this. Otherwise it needs to be set to the decimal precision of the length_mi paramater.
- length_ref: To do what a good article writer should, provide your reference for the length of the route using standard <ref> method.
- length_notes: see below
- established: This is the date the route was commissioned or assigned to its current alignment
- decommissioned: date the route was decommissioned
- direction_a: This should be either south or west to keep in accordance with the U.S. Roads parent project, which lists termini and junctions in progression travelling from West to East and South to North.
- starting_terminus: This is where the route begins and is either at the southern terminus or western terminus.
- junction: a list of major junctions.
- direction_b: The opposite of direction_a
- ending_terminus: where the route ends, in accordance with the guidelines set forth with starting_terminus
- namesake: person or thing for which the road is named
- map: image name of a map for the route, width should be 290px; see the Wikipedia's maps task force for maps; Google Maps solution (below) is preferred.
- mapcode: code inserted via the Google maps feature. Click a starting point, then "start path here", then add points along the path, and finally save the path. A good width is 288px.
Length instructions
If neither length_mi nor length_km exists, no length is displayed.
- Otherwise, if length_first is either mi or km, that one appears first. Ensure that this one is defined, or it will show up blank.
- Otherwise, if only one of length_mi or length_km is defined, that one appears first. The other is calculated and rounded to length_round (default 0) places. Be sure to avoid false precision.
- length_ref, if defined, appears after the first length. Use a citation or fact here. Be sure that the first length is the one for which you have a reference.
- length_notes, if defined, appears as a note below the length. This can be used to show former length, or future length, etc.