Difference between revisions of "Template:DECADE"

From blackwiki
Jump to navigation Jump to search
imported>HJ Mitchell
m (Protected Template:DECADE: batch protection of templates on database report per WP:HRT using TW ([edit=autoconfirmed] (indefinite) [move=sysop] (indefinite)))
imported>TFOWR
m (Unprotected Template:DECADE: Unprotection, Consensus at ANI appears to be that original protection level should be restored. using TW)
(No difference)

Revision as of 08:21, 15 September 2010

50px Template documentation[view] [edit] [history] [purge]

This template computes the decade for the Gregorian year in parameter.

Syntax

{{DECADE|year}}
  • The year must be astronomical (year=1 in 1 AD (Anno Domini), year=0 in 1 BC, year=-1 in 2 BC).

Examples

{{DECADE|9}} returns 00s
{{DECADE|61}} returns 60s
{{DECADE|584}} returns 580s
{{DECADE|1738}} returns 1730s
{{DECADE|1899}} returns 1890s
{{DECADE|1900}} returns 1900s
{{DECADE|1901}} returns 1900s
{{DECADE|1915}} returns 1910s
{{DECADE|1962}} returns 1960s
{{DECADE|1999}} returns 1990s
{{DECADE|2000}} returns 2000s
{{DECADE|2001}} returns 2000s
{{DECADE|2017}} returns 2010s
{{DECADE|2099}} returns 2090s
{{DECADE|2100}} returns 2100s
{{DECADE|2101}} returns 2100s

See also

Template:MILLENNIUM
Template:CENTURY
Template:YEARCC
Template:YEARYY
Template:MONTHDAYS
Template:IsLeapYear
Template:JULIANDAY
Template:WEEKDAY