Wikipedia:WikiProject Trains/Article templates

From Wikipedia, the free encyclopedia

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.


Contents

[edit] General messages

[edit] Talk page messages

What to type What it makes Notes
{{TrainsWikiProject}}
talk
This article is within the scope of WikiProject Trains, an attempt to build a comprehensive and detailed guide to rail transport on Wikipedia. If you would like to participate, you can visit the project page, where you can join the project and/or contribute to the discussion.
See also: WikiProject Trains to do list
NA This page is not an article and does not require a rating on the quality scale. (add assessment comments)
??? This article has not yet received a rating on the importance scale within the Trains WikiProject.
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
{{todo, trains}}
talk


To-do
list

Pending tasks for WikiProject Trains/Article templates:

(purge cache –  edit this list)
  • This is a "to do list" that appears within the {{todo, trains}} template's box.
  • Use the "edit this list" link to access and edit the list
  • The list is stored on a /to do subpage of the talk page where {{todo, trains}} is used.
  • If you add the main article to your watchlist, add the to do list to your watchlist too.
See also Wikipedia:WikiProject Trains/Todo
Adds the article to Category:To do, trains

[edit] Headers

What to type What it makes Notes
{{Year in rail transport}}
talk
2004, 2005, 2006
Years in rail transport
2004 in rail transport
2005 in rail transport
2006 in rail transport

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

{{Future year in rail transport}}
talk
2008, 2009, 2010

Years in rail transport
2008 in rail transport
2009 in rail transport
2010 in rail transport

This article lists events related to rail transport that are currently scheduled to occur in 2009. Please be aware that the actual dates that these events occur on 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

{{Day in rail transport}}
talk
Category:Rail transport timelines

December 31 in rail transport
January 1 in rail transport
January 2 in rail transport

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.

{{future railway station}}
talk
Adds the article to Cat:Future railway stations
{{future public transportation}}
talk
Adds the article to Cat:Future public transportation
{{future australian public transportation}}
talk
Adds the article to Cat:Future public transportation in Australia


{{future canadian public transportation}}
talk
Adds the article to Cat:Future public transportation in Canada
{{future chinese public transportation}}
talk
Adds the article to Cat:Future public transportation in China
{{future public transportation in France}}
talk
Adds the article to Cat:Future public transportation in France
{{future uk public transportation}}
talk
Adds the article to Cat:Future public transportation in the United Kingdom
{{future usa public transportation}}
talk
Adds the article to Cat:Future public transportation in the United States


{{North American named trains}}
talk
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.
{{Contents - AAR reporting marks}}
talk
Note: Marks ending in U are for container owners; marks ending in X are not railroads; marks ending in Z are for trailers without flanged wheels. All other marks are of railroads. This template is used as the table of contents for the list of AAR reporting marks.

[edit] Stubs

What to type What it makes Notes
{{Rail-stub}}
talk
Adds the article to Category:Rail stubs

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

[edit] Article text and infoboxes

Template What it makes Notes
{{Infobox SG rail}}
talk
Dakota, Minnesota & Eastern Railroad
Logo
Reporting marks DME
Locale Iowa, Minnesota, Nebraska, South Dakota and Wyoming
Dates of operation 1986–present
Track gauge ft 8½ in (1435 mm) (standard gauge)
Headquarters Sioux Falls, South Dakota
Parameters:
  • railroad_name - The legal (official) name of the railroad (example shown uses Dakota, Minnesota and Eastern Railroad)
  • logo_filename - The filename of the uploaded image of the most well-known (usually the current) company logo (Dmelogo.JPG); 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
  • marks - The railroad's official AAR reporting marks (DME)
  • locale - Where the railroad has operated or still does operate ([[Iowa]], [[Minnesota]], [[Nebraska]], [[South Dakota]] and [[Wyoming]])
  • start_year - The year the railroad began operations ([[1986]])
  • end_year - The year the railroad ended operations (present)
  • successor_line - The railroad(s) which absorbed this railroad or took over operation from it. Use abandoned if ended without merger; omit if still in operation.
  • old_gauge - An optional addendum to the gauge (blank here)
  • hq_city - The city where the railroad's headquarters are located ([[Sioux Falls, South Dakota]])

Automatically populates the gauge with standard gauge.

{{Infobox rail}}
talk
Chicago and Northwestern Railway
Logo
Reporting marks CNW, CNWS, CNWZ
Locale Illinois, Iowa, Kansas, Michigan, Minnesota, Missouri, Nebraska, North Dakota, South Dakota, Wisconsin, and Wyoming
Dates of operation 18651995
Successor line Union Pacific
Track gauge 4 ftin (1435 mm), some 3 ft (914 mm) gauge branch lines
Headquarters Chicago, Illinois
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 AAR 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) - note that this example can also be handled by {{infobox SG rail}}
  • hq_city - The city where the railroad's headquarters are located ([[Chicago, Illinois]])
{{Infobox Person}}
talk
Leland Stanford

Born March 9, 1824
Watervliet, New York
Died June 21, 1893
Palo Alto, California
Parameters:
  • name - The name of the article subject (example shown uses Leland Stanford)
  • image - The filename of an uploaded image of the subject (Lelandstanfordsmall.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]])
  • birth_place - The subject's birth place ([[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.

{{Infobox Locomotive}}
talk
John Bull
John Bull
The John Bull, c. 1893.
Power type Steam
Builder Robert Stephenson and Company
Build date 1831
Configuration 4-2-0 (although built by Stephenson as an 0-4-0)
UIC classification 1'1A (built as B)
Gauge 1,435 mm (4 ft 8½ in)
Fire grate area 10.07 ft² (0.935 )
Career Camden and Amboy Railroad,
Pennsylvania Railroad (initial preservation)
Number 1
Official name Stevens (after C&A president Robert L. Stevens)
Delivered September 4, 1831
First run September 15, 1831
Disposition Static display in Washington, D.C.
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.

{{Infobox DB station}}
talk
Hannover Hbf
Architectural information
Location Hannover
State Lower Saxony
Country Germany
Ernst-August-Platz 1
30179 Hannover
Operations
DS100 code HH
Station code 2545
Category 1
Platforms in use 12
Annual entry/exit 91.25 million
Deutsche Bahn - Stations in Germany

BW BY BE BR HB HH HE MV NI NW RP SL SN ST SH TH

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.

{{Infobox UK station}}
talk
Crianlarich
A'Chrìon Làraich
Crianlarich Station buildings from the south. (21 April 2006 - Stewart D. Macfarlane)
Location
Place Crianlarich
Local authority Stirling (district)
Operations
Station code CNR
Managed by First ScotRail
Platforms in use 2
Live departures and station information from National Rail
Annual Rail Passenger Usage
2002/03 * 9,812
2004/05 * 10,576
2005/06 * 10,464
History
1894 Opened
1953 Suffix "Upper" added to station name.
After 1965 Suffix "Upper" removed from station name.
National Rail - UK railway stations

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z  

* Annual passenger usage based on sales of tickets in stated financial year(s) which end or originate at Crianlarich from Office of Rail Regulation statistics.
Portal:WikiProject Trains/Article templates
UK Railways Portal
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.

{{Infobox UK disused station}}
talk
Crianlarich Lower
Location
Location Crianlarich
Area Stirling (district)
Operations
Original company Callander and Oban Railway
Pre-grouping Callander and Oban Railway operated by Caledonian Railway
Platforms 2 (latterly 1)
History
1 August 1873 Opened
27 September 1965 Closed
Disused railway stations in the United Kingdom

Closed railway stations in Britain
A B C D-F G H-J K-L M-O P-R S T-V W-Z  

Portal:WikiProject Trains/Article templates
UK Railways Portal
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 {{Infobox UK disused station}}.

{{Infobox Train}}
talk
Kawasaki C151
An unrefurbished Kawasaki Heavy Industries C151 train approaching Jurong East station.
An unrefurbished Kawasaki Heavy Industries C151 train approaching Jurong East station.

Manufacturer Kawasaki Heavy Industries (with Nippon Sharyo, Tokyu Car, and Kinki Sharyo)
Number built 396 cars
Lines served North South Line and East West Line
Specifications
Traction system Chopper control
Voltage 750 V DC 3rd rail
See the template page for full list of parameters.
{{Reporting mark}}
talk
(AAR reporting marks BNSF) This template has exactly one unnamed parameter. It is the reporting mark to display (the example shown uses BNSF).
{{RailGauge}}
talk
4 ft 8½ in (1,435 mm) (for param=ussg) A standardized template for expressing rail gauges

[edit] Common references

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

Template What it makes Notes
{{subst:1922 Locomotive Cyclopedia}}
talk
This article incorporates data from the 1922 Locomotive Cyclopedia of American Practice Adds the article to Category:1922 Locomotive Cyclopedia
{{subst:bioguide}}
talk
This article incorporates facts obtained from the public domain Biographical Directory of the United States Congress.
{{subst:MR diesel cyclopedia}}
talk
Hayden, Bob (Ed.) (1980). Model Railroader Cyclopedia-Volume 2: Diesel Locomotives. Kalmbach Books. ISBN 0-89024-547-9. 
{{subst:Marre-diesel-50}}
talk
Marre, Louis A. (1995). Diesel Locomotives: The First 50 Years. Kalmbach. ISBN 0890242585. 
{{subst:Marre, Pinkepank - Diesel spotters guide}}
talk
Marre, Louis A.; Pinkepank, Jerry A. (1989). The Contemporary Diesel Spotter's Guide. Waukesha, WI: Kalmbach Books. ISBN 0-8902-6088-4. 
{{subst:Pinkepank diesel spotters guide 2}}
talk
Pinkepank, Jerry A. (1973). The Second Diesel Spotter's Guide. Milwaukee, WI: Kalmbach Publishing Co.. ISBN 0-89024-026-4. 
{{subst:White - America's most noteworthy railroaders}}
talk
White, John H., Jr. (Spring 1986). "America's most noteworthy railroaders". Railroad History 154: pp. 9-15. ISSN 0090-7847. OCLC 1785797. 
{{subst:White - American railroad freight car}}
talk
White, John H., Jr. (1993). The American railroad freight car: From the wood-car era to the coming of steel. Baltimore and London: Johns Hopkins University Press. ISBN 0-8018-4404-5. 
{{subst:White - History of the American locomotive}}
talk
White, John H., Jr. (1968). A history of the American locomotive; its development: 1830-1880. New York, NY: Dover Publications. ISBN 0-486-23818-0. 
{{subst:Hilton Interurbans}}
talk
Hilton, George W. & Due, John F. (1960, 2000). The Electric Interurban Railways in America. Stanford, California: Stanford University Press. ISBN 0-8047-4014-3. 
{{subst:Hilton Narrow Gauge}}
talk
Hilton, George W. & Due, John F. (1960, 2000). The Electric Interurban Railways in America. Stanford, California: Stanford University Press. ISBN 0-8047-4014-3. 

[edit] Article footer navigation boxes

[edit] Railroads and equipment leasing/operating companies

Template What it makes Notes
{{North America class I}}
talk
{{US class 2}}
talk
{{Canada class 2}}
talk
{{US class 3}}
talk
{{NERR}}
talk
{{Fitchburg Railroad}}
talk
Fitchburg Railroad branches
BostonFitchburg Watertown – Marlboro – Greenville – Milford
FitchburgGreenfield Vermont and Massachusetts Railroad: Ashburnham – Cheshire – Peterboro – Boston, Barre and Gardner – Turners Falls
west from Greenfield Troy and Greenfield Railroad: Southern VermontTroy and Boston – Bennington
Boston, Hoosac Tunnel and Western Railway: Saratoga Springs/Schuylerville
temporary branches HarvardLexington
{{US railroad lists}}
talk
Replaces the use of {{US links}}
{{Refrigerator Car Lines of the United States}}
talk
{{PKP Group companies}}
talk
{{SKM stops}}
talk

[edit] Historical Scottish railway companies and Scottish railway lines

Template What it makes Notes
{{Historical Scottish railway companies}}
talk


{{Scottish North Eastern Railway}}
talk


{{Monkland Railways}}
talk


{{Scottish railway lines}}
talk

[edit] Equipment

Template What it makes Notes
{{ALCO diesels}}
talk
{{CLC diesels}}
talk
{{EMD diesels}}
talk
Adds the article to Category:EMD locomotives
{{EMD switchers}}
talk
{{EMD GPs}}
talk
{{EMD SDs}}
talk
{{EMD cab and cowl}}
talk
{{EMD misc}}
talk
{{FM diesels}}
talk
{{GE diesels}}
talk
{{German electric locomotives}}
{{German EMUs}}
{{MLW diesels}}
talk
{{SNCF locos}}
talk
Wikimedia Commons has media related to:
{{Whyte types}}
talk
{{Freight cars}}
talk
{{Passenger cars}}
talk
{{SP GS locomotives}}
talk
{{SP cab forward locomotives}}
talk
{{PKP locomotives}}
talk
Wikimedia Commons has media related to:
{{UP historical equipment}}
talk

[edit] People

Template What it makes Notes
{{The Big Four}}
talk
Prints as a one-line high box on most articles
{{start box}} talk

{{succession box}} talk
{{end box}} talk

Preceded by
John G. Downey
Governors of California
18611863
Succeeded by
Frederick Low
Preceded by
Timothy Guy Phelps
Presidents of the Southern Pacific Railroad
18681890
Succeeded by
Collis P. Huntington
These three templates can be used to make up a multiple row list of navigation boxes based on office succession. {{start box}} declares the table, {{succession box}} declares a row of data, and {{end box}} 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 tempaltes 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.

[edit] Equipment manufacturers

Template What it makes Notes
{{ACF preds}}
talk

{{ALCO preds}}
talk

[edit] Category templates

Template What it makes Notes
{{lived}}
talk
[[Category:b births|key]][[Category:d deaths|key]] Three parameters:
  • b - Birth year
  • d - Death year
  • key - Category sort key