Difference between revisions of "Template:CENTURY/doc"

From blackwiki
Jump to navigation Jump to search
imported>Tlustulimu
m (interwiki)
imported>Droll
(replace {{Template doc page}} with {{Documentation subpage}} using AWB)
Line 1: Line 1:
{{Template doc page}}
+
{{Documentation subpage}}
  
 
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).
 
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).

Revision as of 07:04, 14 August 2010

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:
{{CENTURY|year}}
  • The year must be astronomical (year=1 in 1 AD (Anno Domini), year=0 in 1 BC, year=-1 in 2 BC).
Examples:
{{CENTURY|1900}} returns 19
{{CENTURY|1901}} returns 20
{{CENTURY|1999}} returns 20
{{CENTURY|2000}} returns 20
{{CENTURY|2001}} returns 21
{{CENTURY|2099}} returns 21
{{CENTURY|2100}} returns 21
{{CENTURY|2101}} returns 22
See also:
Template:DECADE
Template:YEARCC
Template:YEARYY
Template:MONTHDAYS
Template:ISLEAPYEAR
Template:JULIANDAY
Template:WEEKDAY
Template:ISOYEAR
Template:CURRENTCENTURY