Template:Date range

Template documentation[view · edit · history · purge]
This documentation is transcluded from Template:Date range/doc.

Display a date or range of dates

Usage


{{Date range |1= |2= }}

Template parameters

ParameterDescriptionDefaultStatus
1The from dateemptyoptional
2The to dateemptyoptional
langLanguage code (only needs to be provided if the language displayed is to be fixed and independent of the user’s preferences).emptyoptional

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

Category:Templates using an unknown approach for internationalisation

Example usage

From date only
{{date range|1960}}
from 1960
date QS:P,+1960-00-00T00:00:00Z/7,P580,+1960-00-00T00:00:00Z/9
To date only
{{date range||1960}}
until 1960
date QS:P,+1960-00-00T00:00:00Z/7,P582,+1960-00-00T00:00:00Z/9
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
Category:Templates using an unknown approach for internationalisation Category:Time, date and calendar templates