Template:Start date/testcases
Jump to navigation
Jump to search
Template:Template test cases notice
Syntax
- {{Start date/sandbox|year|month|day}}
- {{Start date/sandbox|year|month|day|HH|MM|SS|TimeZone}} (MM and SS are optional; TimeZone may be a numerical value, or "Z" for UTC; see examples)
- Examples
- {{Start date/sandbox|1993}} returns "1993 "
- {{Start date/sandbox|1993|02}} returns "February 1993 "
- {{Start date/sandbox|1993|02|24}} returns "February 24, 1993 "
- {{Start date/sandbox|1993|02|24|08|30}} returns "08:30, February 24, 1993 "
- {{Start date/sandbox|1993|02|24|08|||+01:00}} returns "February 24, 1993 (+01:00) "
- {{Start date/sandbox|1993|02|24|08|||-07:00}} returns "February 24, 1993 (-07:00)
- {{Start date/sandbox|1993|02|24|08|30|23}} returns "08:30:23, February 24, 1993 "
"
- {{Start date/sandbox|1993|02|24|08|30|23|Z}} returns "08:30:23, February 24, 1993 (UTC) "
- {{Start date/sandbox|1993|02|24|08|30|23|+01:00}} returns "08:30:23, February 24, 1993 (+01:00) "
- {{Start date/sandbox|1993|02|24|08|30|23|-07:00}} returns "08:30:23, February 24, 1993 (-07:00) "
An optional parameter, df
, can be set to "y" or "yes" (or indeed any value) to display the day before the month. This is primarily used in articles about events in parts of the world where the day precedes the month in a date.
- Examples
- {{Start date/sandbox|1993|02|24|df=y}} returns "24 February 1993 "
- {{Start date/sandbox|1993|02|24|08|30|df=yes}} returns "08:30, 24 February 1993 "
Note: The template will appear broken when the parameters are left blank (as seen hereinbefore).
With embedded spaces
{{Start date |2014 |4 |27}}
→ April 27, 2014{{Start date/sandbox |2014 |4 |27}}
→ April 27, 2014