Template:Date/doc


 * Description
 * This template accepts parameters for year, month, and day, and returns a date formatted in TrainStation Wiki's preferred style.
 * This template solves the problems of ambiguous date formatting, inconsistent date formatting, and inconsistent appearance of formatted dates when viewed by unregistered users.
 * For compatibility with previous versions of the template, invalid input will be returned unchanged in most cases.


 * Syntax
 * Preferred format - Named parameters. Other templates calling this template always use this format.
 * All x's represent numbers only.
 * Parameter 'day' may be omitted if unknown.
 * Parameter 'day' may be omitted if unknown.


 * Quick format - Unnamed parameters. Users manually typing a template call may save time by omitting the parameter names.
 * Unnamed parameters must appear in this order: year, month, day.
 * All x's represent numbers only.
 * Third parameter (day) may be omitted if unknown.
 * Third parameter (day) may be omitted if unknown.


 * Sample output
 * The template accepts input with or without leading zeros. Output strips leading zero from day.


 * Preferred format
 * gives:
 * gives:
 * gives:
 * gives:
 * gives:
 * gives:


 * Quick format
 * gives:
 * gives:
 * gives:
 * gives:
 * gives:
 * gives:


 * Invalid input - Output unchanged
 * gives:
 * gives:
 * gives:
 * gives:


 * Invalid input - Output changed
 * gives:
 * gives:
 * gives:
 * gives: