Template:TxDOT/doc

From the AARoads Wiki: Read about the road before you go
Jump to navigation Jump to search

This template is used for citing the various Highway Designation Files published by the Texas Department of Transportation. It uses {{cite web}} as a base template, so it falls into the Citation Style 1 (CS1) family of templates, but it can be set to emulate CS2 for compatibility with articles that use {{citation}}, which is CS2.

To use this template, insert the following code into the article:

{{TxDOT | type | number |access-date=}}

To use this for the various business routes, Interstates 35E and 35W, or Interstates 69E, 69C and 69W:

{{TxDOT | type | number | X |access-date=}}

For the type, in the first parameter substitute:

  • IH for Interstate Highways
  • US for US Highways
  • UA for US Highway Alternates
  • SH for State Highways
  • SS for State Highway Spurs
  • SL for State Highway Loops
  • FM for Farm to Market Roads
  • FS for Farm to Market Spurs
  • RM for Ranch to Market Roads
  • UR for Urban Roads
  • PR for Park Roads
  • RR for Ranch Roads
  • RE for Recreational Roads
  • BI for Business Interstate Highways
  • BU for Business US Highways
  • BS for Business State Highways
  • BF for Business Farm to Market Roads
  • PA for Principal Arterial State System Roads

For the route, the second parameter use just the numerical portion of the highway number.

For a suffixed Interstate, like Interstate 35W, or a business route, use the letter suffixed in the third parameter.

Other parameters:

  • access-date or accessdate: the date you accessed the Highway Definition File.
  • link: set to "no" to leave the publisher unlinked when repeating the template for a second or third usage on the same article.
  • mode: set to "cs2" to emulate the Citation Style 2 templates.
  • ref: for Harvard-style referencing, if necessary.

<templatedata> { "params": { "1": { "required": true, "label": "Type of route", "type": "string/line", "description": "The type of route being referenced. For example, IH = Interstate Highway." }, "2": { "required": true, "label": "Route number", "type": "number", "description": "The number of the route being referenced." }, "3": { "required": false, "label": "Suffix", "type": "string/line", "description": "A route suffix, if required. Use for suffixed interstates and business routes." }, "link": { "required": false, "label": "Link", "default": "yes", "description": "Set to \"no\" to leave the publisher unlinked when repeating the template for a second or third usage on the same article." }, "accessdate": { "required": false, "label": "Accessdate", "description": "The date the Highway Designation File was accessed." }, "mode": { "required": false, "label": "Mode", "type": "string/line", "description": "set to \"cs2\" to emulate the Citation Style 2 templates." }, "ref": { "required": false, "label": "Ref", "description": "For Harvard-style referencing, if necessary." } }, "description": "This template generates references to the Texas Department of Transportation's Highway Designation Files." } </templatedata>