Template talk:Day in rail transport

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconTrains: Timelines Template‑class
WikiProject iconThis template 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 and the Trains Portal.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
Associated projects or task forces:
Taskforce icon
This template is supported by the Timelines task force.

Usage[edit]

This template is intended to be used as the first line of the "MONTH DAY in rail transport" series of articles linked from Category:Anniversaries in rail transport. It uses several parameters as follows:

Field Meaning Default value
pmonth The month name from the previous day's date value of the month parameter
pday The day number from the previous day's date none
month The month name from the current day's date none
day The day number from the current day's date none
nmonth The month name from the next day's date value of the month parameter
nday The day number from the next day's date none
sortkey The category sort key for the current page value of the day parameter

For example, on January 1 in rail transport, the template is used as follows:

{{Day in rail transport |
   pmonth  = December |
   pday    = 31 |
   month   = January |
   day     = 1 |
   nmonth  = January |
   nday    = 2 |
   sortkey = 01 |
 }}

On October 31 in rail transport, the template is used as follows:

{{Day in rail transport |
   pmonth  = October |
   pday    = 30 |
   month   = October |
   day     = 31 |
   nmonth  = November |
   nday    = 1 |
   sortkey = 31 |
 }}

On February 28 in rail transport through March 1 in rail transport, the template is "subst'ed" in and then edited to include a link to February 29 in rail transport in parentheses within the navigation box.

Using the defaults for pmonth, nmonth and sortkey, these two uses could be shortened to the following:

{{Day in rail transport |
   pmonth  = December |
   pday    = 31 |
   month   = January |
   day     = 1 |
   nday    = 2 |
   sortkey = 01 |
 }}

and

{{Day in rail transport |
   pday    = 30 |
   month   = October |
   day     = 31 |
   nmonth  = November |
   nday    = 1 |
 }}

respectively.