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

From blackwiki
Jump to navigation Jump to search
imported>Fredddie
(reverse it)
(sync with main)
Line 1: Line 1:
{{Infobox
+
<noinclude>{{pp-semi-template}}</noinclude>{{Infobox
 
|above={{{title|}}}
 
|above={{{title|}}}
|image={{#if:{{{links|}}}
+
|image={{{shields|}}}
|{{#switch:{{{stateabbr|}}}{{{type|}}}
 
  |MIUS={{{shields|}}}
 
  |#default={{Random route marker|state={{{stateabbr}}}|type={{{type}}}}}
 
  }}
 
|{{{shields|}}}
 
}}
 
 
|caption={{{caption|}}}
 
|caption={{{caption|}}}
|image2= {{#if:{{{map|}}}|[[File:{{{map|}}}|290px|alt={{{map_alt|}}}]]|}}
+
|image2={{#invoke:Infobox road/map|map}}
 
|caption2={{{map_notes|}}}
 
|caption2={{{map_notes|}}}
 
|bodystyle=width:300px; font-size:90%; padding:0
 
|bodystyle=width:300px; font-size:90%; padding:0
Line 15: Line 9:
 
|header1 = {{#if:{{{formed|}}}{{{length_mi|}}}{{{length_km|}}}{{{notes|}}}{{{maint|}}}|System information|}}
 
|header1 = {{#if:{{{formed|}}}{{{length_mi|}}}{{{length_km|}}}{{{notes|}}}{{{maint|}}}|System information|}}
 
|data2= {{#if:{{{maint|}}}|Maintained by {{{maint}}}|}}
 
|data2= {{#if:{{{maint|}}}|Maintained by {{{maint}}}|}}
|label3  = Length:
+
|label3  = Length
 
|data3  = {{#invoke:Infobox road/length|length}}
 
|data3  = {{#invoke:Infobox road/length|length}}
|label4  = Formed:
+
|label4  = Formed
 
|data4  = {{{formed|{{{established|}}}}}}
 
|data4  = {{{formed|{{{established|}}}}}}
|label5  = Notes:
+
|label5  = Notes
 
|data5  = {{{notes|}}}
 
|data5  = {{{notes|}}}
 
|header10 = {{{section0|{{#if:{{{interstate|}}}{{{us|}}}{{{state|}}}{{{field1|}}}|Highway names|}}}}}
 
|header10 = {{{section0|{{#if:{{{interstate|}}}{{{us|}}}{{{state|}}}{{{field1|}}}|Highway names|}}}}}
|label11  = [[Interstate Highway System|Interstate]]s:
+
|label11  = [[Interstate Highway System|Interstate]]s
 
|data11  = {{{interstate|}}}
 
|data11  = {{{interstate|}}}
|label12  = [[United States Numbered Highway System|US&nbsp;Highways]]:
+
|label12  = [[United States Numbered Highway System|US&nbsp;Highways]]
 
|data12  = {{{us|}}}
 
|data12  = {{{us|}}}
|label13  = [[State highway|State]]:
+
|label13  = [[State highway|State]]
 
|data13  = {{{state|}}}
 
|data13  = {{{state|}}}
 
|label14  = {{{label1}}}
 
|label14  = {{{label1}}}

Revision as of 15:21, 13 December 2019

Template:Pp-semi-template

Lua error in Module:Infobox_road/map at line 15: attempt to index field 'wikibase' (a nil value).
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