Difference between revisions of "Template:CENTURY/doc"
Jump to navigation
Jump to search
imported>BrownHairedGirl |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
Line 53: | Line 53: | ||
: [[Template:CURRENTCENTURY]] | : [[Template:CURRENTCENTURY]] | ||
− | <includeonly> | + | <includeonly>{{Sandbox other|| |
[[Category:Date-computing templates|CENTURY]] | [[Category:Date-computing templates|CENTURY]] | ||
[[bn:টেমপ্লেট:CENTURY]] | [[bn:টেমপ্লেট:CENTURY]] | ||
Line 61: | Line 61: | ||
[[hsb:Předłoha:CENTURY]] | [[hsb:Předłoha:CENTURY]] | ||
[[stq:Foarloage:CENTURY]] | [[stq:Foarloage:CENTURY]] | ||
− | </includeonly> | + | }}</includeonly> |
Latest revision as of 01:37, 24 April 2020
![]() | This is a documentation subpage for Template:CENTURY. It contains usage information, categories and other content that is not part of the original template 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
- {{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|2102}} returns 22
- {{CENTURY|2101}} returns 22
- {{CENTURY|2100}} returns 21
- {{CENTURY|2099}} returns 21
- {{CENTURY|2098}} returns 21
- {{CENTURY|2002}} returns 21
- {{CENTURY|2001}} returns 21
- {{CENTURY|2000}} returns 20
- {{CENTURY|1999}} returns 20
- {{CENTURY|1998}} returns 20
- {{CENTURY|1902}} returns 20
- {{CENTURY|1901}} returns 20
- {{CENTURY|1900}} returns 19
- {{CENTURY|1899}} returns 19
- {{CENTURY|1898}} returns 19
- {{CENTURY|102}} returns 2
- {{CENTURY|101}} returns 2
- {{CENTURY|100}} returns 1
- {{CENTURY|99}} returns 1
- {{CENTURY|98}} returns 1
- {{CENTURY|2}} returns 1
- {{CENTURY|1}} returns 1
- {{CENTURY|0}} returns -1
- {{CENTURY|-1}} returns -1
- {{CENTURY|-2}} returns -1
- {{CENTURY|-98}} returns -1
- {{CENTURY|-99}} returns -1
- {{CENTURY|-100}} returns -2
- {{CENTURY|-101}} returns -2
- {{CENTURY|-1098}} returns -11
- {{CENTURY|-1099}} returns -11
- {{CENTURY|-1100}} returns -12
- {{CENTURY|-1101}} returns -12
See also
- Template:MILLENNIUM
- Template:DECADE
- Template:YEARCC
- Template:YEARYY
- Template:MONTHDAYS
- Template:IsLeapYear
- Template:JULIANDAY
- Template:WEEKDAY
- Template:CURRENTCENTURY