Difference between revisions of "Template:Dates/doc"
Jump to navigation
Jump to search
| (One intermediate revision by the same user not shown) | |||
| Line 14: | Line 14: | ||
!You get | !You get | ||
|- | |- | ||
| − | |<code><nowiki>{{dates|2010|01|01|2011|01|01}}</nowiki></code> | + | |<code><nowiki>{{dates|2010|01|01|2011|02|03}}</nowiki></code> |
| + | |{{dates|2010|01|01|2011|02|03}} | ||
| + | |- | ||
| + | |<code><nowiki>{{dates|2010|01|01|2010|03|01}}</nowiki></code> | ||
| + | |{{dates|2010|01|01|2010|03|01}} | ||
| + | |- | ||
| + | |<code><nowiki>{{dates|2010|01|01|2010|01|07}}</nowiki></code> | ||
| + | |{{dates|2010|01|01|2010|01|07}} | ||
| + | |- | ||
| + | |<code><nowiki>{{dates|2010|01|01|2010|01|01}}</nowiki></code> | ||
|{{dates|2010|01|01|2010|01|01}} | |{{dates|2010|01|01|2010|01|01}} | ||
|} | |} | ||
Latest revision as of 00:26, 16 April 2020
When given two dates, this template will return the dates in a standardized, properly formatted word form.
{{dates|Start year|Start month|Start date|End year|End month|End date|
Start year- The year for the starting date.Start month- The month for the starting date. Can be written in any form (1,01,jan,januarywill all return "January")Start date- The date for the starting date.
End year- The year for the ending date.End month- The month for the ending date. Can be written in any form (1,01,jan,januarywill all return "January")End date- The date for the ending date.
| You type | You get |
|---|---|
{{dates|2010|01|01|2011|02|03}}
|
January 1, 2010 - February 3, 2011 |
{{dates|2010|01|01|2010|03|01}}
|
January 1 - March 1, 2010 |
{{dates|2010|01|01|2010|01|07}}
|
January 1 - 7, 2010 |
{{dates|2010|01|01|2010|01|01}}
|
January 1, 2010 |