మూస:Routelist row/doc

వికీపీడియా నుండి
Jump to navigation Jump to search

This template creates a row in a standard U.S. highway list. Use it in conjunction with {{routelist top}} and {{routelist bottom}} to create a table of highway routes.

{{routelist row
|state=
|type=
|route=
|dab=
|length_mi=
|length_km=
|length_ref=
|terminus_a=
|terminus_b=
|beltway=
|local=
|established=
|established_ref=
|circa_established=
|decommissioned=
|decommissioned_ref=
|circa_decommissioned=
|notes=
|noshield=
}}
  • state: the postal abbreviation for the state this route lies in
  • type: the type prefix for the highway (e.g. US, SH, CR). All types that are accepted by {{jct}} for the selected state are accepted by this template.
  • route: the route number of the highway.
  • dab: disambiguation, if needed.
  • length_mi: the length of the highway in miles. Must contain a number value (passing a string will result in an error). Converts the given length to kilometers and fills in the "Length (km)" column.[1]
  • length_km: the length of the highway in kilometers. Must contain a number value (no strings). Converts the given length to miles and fills in the "Length (mi)" column.[1]
  • length_ref: reference for the length value.
  • terminus_a: west or south terminus.
  • terminus_b: north or east terminus.
  • beltway: if present, overrides terminus_a and terminus_b, displaying its argument in a single cell that spans both columns.
  • local: any local names the highway has. Usually restricted to lists of county-level scope (i.e. lists of highways by county, county routes, etc.). Any list which includes this column must call this template with {{routelist row|local|(parameters...) for each instance of the template in order to generate the column, or the local parameter will be ignored.
  • established: date that the highway designation was established. Must be a date value (passing a value that does not validate as a date will result in an error). Only the year will be displayed in the "Formed" column, though exact dates will be used for sortkey purposes. Inserting "proposed" here colors the row yellow and displays "—" in the "Removed" column. If omitted, "—" will be displayed in the "Formed" column.
  • decommissioned: takes either "yes" or the date that the highway designation was removed from service. Only the year will be displayed in the "Removed" column, though exact dates will be used for sortkey purposes. Past dates color the row gray. If omitted, "current" will be displayed in the Removed column (unless established=proposed). Inserting "yes" here colors the row gray and displays "—" in the "Removed" column.
  • established_ref, decommissioned_ref: reference for the established and decommissioned values.
  • circa_established, circa_decommissioned: if "yes", the corresponding column will be marked as an approximate (circa) date.
  • notes: content to be displayed in the "Notes" column. If omitted, no cell will be produced. If passed the value "none", a blank cell will be produced.
  • noshield: set to anything to disable the shield

Template data

[మార్చు]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Routelist row in articles based on its TemplateData.

TemplateData for Routelist row

This template creates a row in a standard U.S. highway list.

మూస పరామితులు

ఈ మూసకు, పరామితుల బ్లాక్ ఫార్మాటింగు కావాలి.

పరామితివివరణరకంస్థితి
Statestate

The postal abbreviation of the state the route is located in

ఉదాహరణ
OK
స్ట్రింగుతప్పనిసరి
Highway typetype

The type of the highway, as defined in the Module:Road data/strings family of modules.

ఉదాహరణ
SH
స్ట్రింగుతప్పనిసరి
Route numberroute

The number of the route

ఉదాహరణ
21
స్ట్రింగుసూచించినవి
Disambiguationdab

Any necessary disambiguation (city, etc.)

ఉదాహరణ
Tulsa
స్ట్రింగుఐచ్చికం
Length (miles)length_mi

The length of the route in miles.

ఉదాహరణ
22.3
సంఖ్యఐచ్చికం
Length (kilometers)length_km

The length of the route in kilometers.

ఉదాహరణ
42.1
సంఖ్యఐచ్చికం
Length referencelength_ref

Reference for the length value.

తెలియనిదిసూచించినవి
Starting terminusterminus_a

The western or southern terminus of the route.

స్ట్రింగుసూచించినవి
Finishing terminusterminus_b

The eastern or northern terminus of the route.

స్ట్రింగుసూచించినవి
Beltwaybeltway

Substitute for terminus arguments.

స్ట్రింగుఐచ్చికం

Usage notes

[మార్చు]
  1. 1.0 1.1 Only one of length_mi and length_km are required; the template will automatically calculate the missing value. If neither value is provided, "—" will be displayed in both columns.