Template:Daterange/doc
From Wikipedia, the free encyclopedia
[edit] Usage
{{daterange|Starting Date|Ending Date}}
- Starting Date is the starting date for the range.
- Ending Date is the ending date for the range. (optional if null, so custom formats can be used in first parameter)
The usual Date Style should be followed within the parameters. This template does not add markup to the parameters. For example days of the month should be marked up with square brackets - [[10 April]].
The template displays the range using the recommended style. Another purpose of this template is to mark the pair of dates as representing a range of dates, for possible future manipulation of time periods.
It is specifically acceptable to use this template with date ranges for which there is no (or optional) Wiki markup, such as {{daterange|15,000 years ago|7,500 years ago}}. Doing so will mark this text as containing a time period in case future manipulation of the information is desired.
[edit] Examples
* {{daterange|2002|2004}} * {{daterange|July 2002|April 2004}} * {{daterange|[[July 4]] [[2002]]|[[April 8]] [[2004]]}} * {{daterange|3rd–4th century|}} <!- null parameter for custom formats -->