The template renders a time interval like from 5 May 1987 to 2 January 1991 in the language set in the preferences.

Usage

{{Between/doc |1= |2= }}

Any proleptic Gregorian calendar or Gregorian calendar date between 1 January 1 AD and 31 December 9999 AD. Dates BC are not yet supported. Also incomplete dates are allowed: just the year or the year and the month. A year has to be written in full 4-digit, without leading zeros. Optionally it is followed by a dash and a 2-digit month number; optionally this is followed by a dash and a 2-digit day number; optionally this is followed by the time.

Template parameters

ParameterDescriptionDefaultStatus
1Date indicating the beginning of the period.emptyrequired
2Date indicating the end of the period.emptyrequired

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Localization

To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)

Example

  • {{Between|2010|2011}}: between 2010 and 2011
    date QS:P,+2010-00-00T00:00:00Z/8,P1319,+2010-00-00T00:00:00Z/9,P1326,+2011-00-00T00:00:00Z/9
  • {{Between|2010-08|2011-02}}: between August 2010 and February 2011
    date QS:P,+2010-00-00T00:00:00Z/8,P1319,+2010-08-00T00:00:00Z/10,P1326,+2011-02-00T00:00:00Z/10
  • {{Between|2010-08-18|2011-02-15}}: between 18 August 2010 and 15 February 2011
    date QS:P,+2010-00-00T00:00:00Z/8,P1319,+2010-08-18T00:00:00Z/11,P1326,+2011-02-15T00:00:00Z/11
  • {{Between|2010-08-18 10:30|2011-02-15 17:45}}: between 18 August 2010, 10:30 and 15 February 2011, 17:45