Wiki143:WikiProject Trains/Article templates

From Wikipedia, the free encyclopedia
Revision as of 02:39, 21 February 2023 by imported>SounderBruce (Article text and infoboxes: per WP:DATELINK)
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A number of template messages have been created to standardize and simplify the task of writing and maintaining articles related to WikiProject Trains. This article will present a list of them with any associated parameters and examples from existing articles.


General messages

Talk page messages

What to type What it makes Notes
Template:Tl
talk
Script error: No such module "WikiProject banner". Parameters:
  • class - See Wikipedia:WikiProject Trains/Assessment
  • portaldykdate - The date that the article was used in the "Did you know" section of Portal:Trains
  • portalSAweek - The week and year that the article was used in the "Selected article" section of Portal:Trains
  • portalSIweek - The week and year that the image was used in the "Selected picture" section of Portal:Trains
Template:Tl
talk
Template:Mbox Adds the article to Category:To do, trains

Headers

What to type What it makes Notes
Template:Tl
talk
Script error: No such module "Sidebar".

This article lists events related to rail transport that occurred in 2005.


One parameter:
  • curr - The current year number (example uses 2005)

The previous year, next year and decade numbers are computed based on the value passed as curr. Adds the article to Category:decade in rail transport and to Category:curr

Template:Tl
talk
Years in rail transport
Template:Plainlist
Timeline of railway history

This article lists events related to rail transport that are currently scheduled to occur in 2009. Please be aware that the actual dates on which these events occur may differ substantially from what is shown here.


Two parameters:
  • (unnamed parameter 1) - The category sort key within Category:Future events
  • curr - The current year number (example uses 2009)

Adds the article to Category:Future events, Category:decade in rail transport and to Category:curr

Template:Tl
talk
Category:Rail transport timelines

December 31
January 1
January 2

This article lists anniversary events related to rail transport that occurred on January 1.


Seven parameters:
  • pmonth - The previous date's month (example uses December); default is the value of month
  • pday - The previous date's day number (31)
  • month - The current date's month (January)
  • day - The current date's day number (1)
  • nmonth - The next date's month (uses the default value); default is the value of month
  • nday - The next date's day number (2)
  • sortkey - The category sort key (01); default is the value of day

Adds the article to Category:month in rail transport, which is a subcategory of Category:Anniversaries in rail transport, using sortkey as the category sort key.


Template:Tl
talk
Script error: No such module "Navbox". This template is used as the table of contents for the list of named passenger trains in North America, but it can also be used in the footer of an article about a specific train.
Template:Tl
talk
Template:Contents - AAR reporting marks This template is used as the table of contents for the list of reporting marks.

Stubs

What to type What it makes Notes
Template:Tl
talk
Template:Asbox Adds the article to Category:Rail transport stubs

Note: There are many stub templates for articles related to rail transport. A complete list is at Category:Rail transport stubs. Please use the most appropriate stub template for new articles, deferring to Template:Tl only when a more specific stub template doesn't exist.

Article text and infoboxes

Template What it makes Notes
Template:Tl
talk
Script error: No such module "Infobox".Template:Template otherScript error: No such module "Check for unknown parameters".Script error: No such module "Check for clobbered parameters". Parameters:
  • railroad_name - The legal (official) name of the railroad (example shown uses Chicago and Northwestern Railway)
  • logo_filename - The filename of the uploaded image of the most well-known (usually the current) company logo (Chicago_and_Northwestern_Herald.png); Note: leave blank if no logo has been uploaded. Per Wikipedia policy, if the template is used outside of the main article namespace, do not use a fair use tagged image.
  • logo_size - An optional width for the logo
  • railroad_abbr - The most common abbreviation for the railroad's common name (C&NW)
  • marks - The railroad's official reporting marks (CNW, CNWS, CNWZ)
  • locale - Where the railroad has operated or still does operate ([[Illinois]], [[Iowa]], [[Kansas]], [[Michigan]], [[Minnesota]], [[Missouri]], [[Nebraska]], [[North Dakota]], [[South Dakota]], [[Wisconsin]], and [[Wyoming]])
  • start_year - The year the railroad began operations (1865)
  • end_year - The year the railroad ended operations (1995)
  • successor_line - The railroad(s) which absorbed this railroad or took over operation from it ([[Union Pacific Railroad|Union Pacific]]). Use abandoned if ended without merger; omit if still in operation.
  • gauge - The track gauge(s) used by the railroad (4 [[foot (unit of length)|ft]] 8½ [[inch|in]] (1435 [[millimetre|mm]]), some 3 ft (914 mm) gauge branch lines)
  • hq_city - The city where the railroad's headquarters are located ([[Chicago, Illinois]])
Template:Tl
talk
Script error: No such module "infobox".Script error: No such module "Check for unknown parameters".Template:Main otherScript error: No such module "Check for clobbered parameters".Template:Wikidata image Parameters:
  • name - The name of the article subject (example shown uses Leland Stanford)
  • image - The filename of an uploaded image of the subject (Leland Stanford1.jpg)
  • caption - A caption for the image, usually noting at what age the subject is when the image was created (the example shown does not include a caption, but specifies the parameter as caption=|)
  • birth_date - The subject's birth date (March 9, 1824; see MOS:DATE)
  • birth_place - The subject's birthplace ([[Watervliet, New York]])
  • death_date - The subject's death date (June 21, 1893)
  • death_place - The subject's death place ([[Palo Alto, California]])

There are many more parameters available; see the template documentation for a complete list.

Template:Tl
talk
Script error: No such module "Infobox".Template:Template otherScript error: No such module "Check for unknown parameters". Two required parameters:
  • name - The name of the article subject (example uses John Bull)
  • powertype - The major power type of the locomotive (Steam)

Many more parameters, all listed and described on the talk page.

Template:Tl
talk
Template:Infobox station The template requires two parameters:
  • name - Name of the station
  • ds100 - Two- to five-letter station code
  • local - Town or municipality the station is located in.

For full documentation, see the talk page.

Template:Tl
talk
Template:Infobox station The template requires five parameters:
  • name - Name of the station
  • locale - Immediate locale where the station is located
  • borough - Town or municipality the station is located in
  • manager - Operating TOC who is responsible for the station
  • platforms - Number of platforms in use

For full documentation, see the talk page.

Template:Tl
talk
Template:Infobox station The template requires three parameters:
  • name - Name of the station
  • locale - Immediate locale where the station is located
  • borough - Town or municipality the station is located in

For full documentation, see the talk page. This template has superseded Template:Tl.

Template:Tl
talk
Template:Infobox Train See the template page for full list of parameters.
Template:Tl
talk
(reporting mark BNSF) This template has exactly one unnamed parameter. It is the reporting mark to display (the example shown uses BNSF).
Template:Tl
talk
Template:Track gauge (for param=ussg) A standardized template for expressing railway track gauges

Common references

These should generally be substituted using subst: rather than transcluded.

Template What it makes Notes
Template:Tls
talk
This article incorporates data from the 1922 Locomotive Cyclopedia of American Practice
Template:Tls
talk
Script error: No such module "Template wrapper".
Template:Tls
talk
Script error: No such module "citation/CS1".
Template:Tls
talk
Script error: No such module "citation/CS1".
Template:Tls
talk
Script error: No such module "citation/CS1".
Template:Tls
talk
Script error: No such module "citation/CS1".
Template:Tls
talk
Script error: No such module "Citation/CS1".
Template:Tls
talk
Script error: No such module "citation/CS1".
Template:Tls
talk
Script error: No such module "citation/CS1".
Template:Tls
talk
  1. REDIRECT Template:Hilton-Interurban
Template:Tls
talk
Script error: No such module "citation/CS1".

Article footer navigation boxes

Railroads and equipment leasing/operating companies

Template What it makes Notes
Template:Tl
talk
Template:North America class I
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox". Replaces the use of Template:Tl
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Template:SKM stops

Historical Scottish railway companies and Scottish railway lines

Template What it makes Notes
Template:Tl
talk
Template:Historical Scottish railway companies
Template:Tl
talk
Template:Scottish North Eastern Railway
Template:Tl
talk
Template:Monkland Railways
Template:Tl
talk
Script error: No such module "Navbox".

Equipment

Template What it makes Notes
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox". Adds the article to Category:EMD locomotives
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl Script error: No such module "Navbox".
Template:Tl Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Template:PKP locomotives
Template:Tl
talk
Script error: No such module "Navbox".

People

Template What it makes Notes
Template:Tl
talk
Script error: No such module "Navbox". Prints as a one-line high box on most articles
Template:Tl talk

Template:Tl talk
Template:Tl talk

  1. REDIRECT Template:S-end
Preceded byTemplate:S-bef/checkTemplate:Succession box/check Governors of California
18611863 Template:S-ttl/check
Template:S-aft/check Succeeded by
Preceded byTemplate:S-bef/checkTemplate:Succession box/check Presidents of the Southern Pacific Railroad
18681890 Template:S-ttl/check
Template:S-aft/check Succeeded by
These three templates can be used to make up a multiple row list of navigation boxes based on office succession. Template:Tl declares the table, Template:Tl declares a row of data, and Template:Tl closes the table.

Succession box template takes four parameters:

  • before - The predecessor name (example uses [[John G. Downey]] in the first box, [[Timothy Guy Phelps]] in the second)
  • title - The subject's title ([[List of Governors of California|Governors of California]] and Presidents of the [[Southern Pacific Railroad]])
  • years - The subject's term in that title ([[1861]]–[[1863]] and [[1868]]–[[1890]])
  • after - The successor name ([[Frederick Low]] and [[Collis P. Huntington]])

Note that this set of templates can be used to describe entities as well as people. For example, these templates are used on articles where the railroad was awarded either Short Line Railroad of the Year or Regional Railroad of the Year. See Wisconsin and Southern Railroad for an example.

Equipment manufacturers

Template What it makes Notes
Template:Tl
talk
Script error: No such module "Navbox".
Template:Tl
talk
Script error: No such module "Navbox".

High-speed rail