Template talk:Day in rail transport
From Wikipedia, the free encyclopedia
[edit] Usage
This template is intended to be used as the first line of the "MONTH DAY in rail transport" series of articles linked from Cat: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.