Difference between revisions of "Template:Infobox state highway system"

From blackwiki
Jump to navigation Jump to search
imported>Fredddie
(add this one as well)
imported>Imzadi1979
(removing randomization; it strikes me as a gimmick to avoid normal editorial processes to handle which graphics to display)
Line 1: Line 1:
 
<noinclude>{{pp-semi-template}}</noinclude>{{Infobox
 
<noinclude>{{pp-semi-template}}</noinclude>{{Infobox
 
|above={{{title|}}}
 
|above={{{title|}}}
|image={{#if:{{{links|}}}
+
|image={{{shields|}}}
|{{#switch:{{{stateabbr|}}}{{{type|}}}
 
  |INSR|OHSR|¬Future={{Random route marker|state={{{stateabbr}}}|type={{{type}}}}}
 
  |#default={{{shields|}}}
 
  }}
 
|{{{shields|}}}
 
}}
 
 
|caption={{{caption|}}}
 
|caption={{{caption|}}}
 
|image2= {{#if:{{{map|}}}|[[File:{{{map|}}}|290px|alt={{{map_alt|}}}]]|}}
 
|image2= {{#if:{{{map|}}}|[[File:{{{map|}}}|290px|alt={{{map_alt|}}}]]|}}

Revision as of 02:15, 14 February 2017

Template:Pp-semi-template

[[Category:Infobox templates|Template:Remove first word]]

50px Template documentation[view] [edit] [history] [purge]

Usage

Copy and paste the following code below:

Template:Parameter names example

{{infobox state highway system
|title=
|shields=
|caption=
|map=
|map_alt=
|map_notes=
|maint=
|formed=
|length_mi=
|length_ref=
|interstate=
|us=
|state=
|notes=
|links=
}}

Then fill in the fields as follows:

  • title: This is the (official) title of the system
  • shields: Put the shields the state uses here.
  • caption: This is the shields' description.
  • map: Put a map of the state here.
  • map_notes: This is the map's description.
  • map_alt: This is the map's alt text.
  • maint: This is the agency or agencies that maintain the system.
  • formed: This is the date of the system's formation (Alternate parameter: formed)
  • length_mi: or length_km: This is the length of the system. length_ref is used for the reference for this piece of information, and the template converts the given length into both systems of measurement.
    • length_notes, if defined, appears as a note below the length. This can be used to show former length, or future length, etc.
  • interstate: This is usually "Interstate X (I-X)", but it can also be "Route X", etc.
  • us: This is usually "U.S. Route X (US X)", but it can also be "Route X", etc.
  • state: This is what the state calls its state highways.
  • notes: Additional information about the state highway system.
  • links: Optional. Adds links to state highway system (links=state abbreviation); for Canada, use the provincial abbreviation; for certain US national networks, use I, US, NHS, or BL/BS as appropriate
    • type: Optional. Customizes the links displayed for some states based on roadway type.
    • county: Optional. Customized the links displayed for some states based on county, for county roads.
  • field1–6 Optional. Allows up to six additional types of highways to be added to the list.
  • label1–6 Required only if using field1–6. Adds a label for the field1–6 lines.

See also

es:Plantilla:Ficha de sistema de vías de transporte simple:Template:Infobox state highway system