Template:DECADE/doc

From blackwiki
< Template:DECADE
Revision as of 20:04, 13 January 2008 by imported>BrownHairedGirl (Created page with '{{Template doc page}} This template computes the calendar century number for the gregorian year in parameter. It is different from the astronomical century number ...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Template doc page

This template computes the calendar century number for the gregorian year in parameter. It is different from the astronomical century number (which starts at 0).

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|1900}} returns 1900s
{{DECADE|1901}} returns 1900s
{{DECADE|1915}} returns 1900s
{{DECADE|1962}} returns 1900s
{{DECADE|1999}} returns 1990s
{{DECADE|2000}} returns 2000s
{{DECADE|2001}} returns 2000s
{{DECADE|2099}} returns 2090s
{{DECADE|2100}} returns 2100s
{{DECADE|2101}} returns 2100s
See also:
Template:CENTURY
Template:YEARCC
Template:YEARYY
Template:MONTHDAYS
Template:ISLEAPYEAR
Template:JULIANDAY
Template:WEEKDAY
Template:ISOYEAR
Template:CURRENTDECADE