Template:Daterange/doc

From Project Mailer
< Template:Daterange
Revision as of 13:20, 5 July 2021 by Grlucas (talk | contribs) (Created page with "{{Documentation subpage}} ===Usage=== '''<nowiki>{{daterange|</nowiki>'''''Starting Date'''''|'''''Ending Date'''''<nowiki>}}</nowiki>''' * ''Starting Date'' is the startin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 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.

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 -->
  • 2002 – 2004
  • July 2002 – April 2004
  • July 4, 2002 – April 8, 2004
  • 3rd–4th centuries

See also