|| || 0 |
This is the template sandbox page for Template:Table Age Calculator (diff). See also the companion subpage for test cases. |
Usage
editFor use in tables were there is a start date, end date and age
{{TAC2|1|2|3|4|5|6}}
1=start date sortable
2=start date text (if needed to be different from #1)
3=start date circa
4=end date sortable (or "incumbent")
5=end date text (if needed to be different from #4)
6=end date circa
Examples
editExample text | Opened | Closed | Age |
---|---|---|---|
{{TAC2|10 May 1927||c|1930|1930's}}
|
c. 10 May 1927 | 1930's | Approx. 3 years |
{{TAC2|10 April 1916|||13 December 1977}}
|
10 April 1916 | 13 December 1977 | 61 years |
{{TAC2|25 June 1857|||28 July 1857}}
|
25 June 1857 | 28 July 1857 | 33 days |
{{TAC2|15 April 1900|||incumbent}}
|
15 April 1900 | incumbent | 124 years (ongoing) |
{{TAC2|25 June 1857}}
|
25 June 1857 | 167 years | |
{{TAC2|2 March 1859|||April 1862||c}}
|
2 March 1859 | c. April 1862 | Approx. 3 years |
{{TAC2|February 1894|||May 1894||}}
|
February 1894 | May 1894 | 3 months |