Template:Date range
This documentation is transcluded from Template:Date range/doc.
Display a date or range of dates
Usage
{{Date range |1= |2= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | The from date | empty | optional | |
2 | The to date | empty | optional | |
lang | Language code (only needs to be provided if the language displayed is to be fixed and independent of the user’s preferences). | empty | optional |
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
Relies on:
other date
Example usage
- From date only
{{date range|1960}}
- To date only
{{date range||1960}}
- From and to date
{{date range|1960|2022}}
from 1960 until 2022
- Same from and to date
{{date range|1960|1960}}
1960
Category:Time, date and calendar templates