Jump to content

Template:Start date and age

From WikiGence

Description

This template displays a starting date together with the number of completed years since that date.

Usage

Year only

{{Start date and age|2016}}

Result:

2016 (10 years ago)

Year and month

{{Start date and age|2016|5}}

Result:

May 2016 (10 years ago)

Complete date — month first

{{Start date and age|2016|5|20}}

Complete date — day first

{{Start date and age|2016|5|20|df=yes}}

Named parameters

{{Start date and age
|year=2016
|month=5
|day=20
}}

Named parameters with day-first formatting

{{Start date and age
|year=2016
|month=5
|day=20
|df=yes
}}

Display the date without age

{{Start date and age|2016|age=no}}

Supported formats

Code Display format
{{Start date and age|2016}} 2016 with elapsed years
{{Start date and age|2016|5}} May 2016 with elapsed years
{{Start date and age|2016|5|20}} May 20, 2016 with elapsed years
{{Start date and age|2016|5|20|df=yes}} 20 May 2016 with elapsed years
{{Start date and age|year=2016|month=5|day=20}} Named-parameter format
{{Start date and age|2016|age=no}} Date only

If no year is provided, the template produces no visible output.