Changes
→See also: : Template:MILLENNIUM
{{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).
=== Syntax ===
: <kbd><nowiki>{{</nowiki>CENTURY|</kbd>''year''<kbd>}}</kbd>
* The ''year'' must be astronomical (''year''=1 in [[1 AD]] (''[[Anno Domini]]''), ''year''=0 in 1 BC, ''year''=-1 in 2 BC).
=== Examples ===
: <kbd><nowiki>{{CENTURY|2102}}</nowiki></kbd> returns {{CENTURY|2102}}
: <kbd><nowiki>{{CENTURY|2101}}</nowiki></kbd> returns {{CENTURY|2101}}
: <kbd><nowiki>{{CENTURY|2100}}</nowiki></kbd> returns {{CENTURY|2100}}
: <kbd><nowiki>{{CENTURY|2099}}</nowiki></kbd> returns {{CENTURY|2099}}
: <kbd><nowiki>{{CENTURY|2098}}</nowiki></kbd> returns {{CENTURY|2098}}
: <kbd><nowiki>{{CENTURY|2002}}</nowiki></kbd> returns {{CENTURY|2002}}
: <kbd><nowiki>{{CENTURY|2001}}</nowiki></kbd> returns {{CENTURY|2001}}
: <kbd><nowiki>{{CENTURY|2000}}</nowiki></kbd> returns {{CENTURY|2000}}
: <kbd><nowiki>{{CENTURY|1999}}</nowiki></kbd> returns {{CENTURY|1999}}
: <kbd><nowiki>{{CENTURY|1998}}</nowiki></kbd> returns {{CENTURY|1998}}
: <kbd><nowiki>{{CENTURY|1902}}</nowiki></kbd> returns {{CENTURY|1902}}
: <kbd><nowiki>{{CENTURY|1901}}</nowiki></kbd> returns {{CENTURY|1901}}
: <kbd><nowiki>{{CENTURY|1900}}</nowiki></kbd> returns {{CENTURY|1900}}
: <kbd><nowiki>{{CENTURY|1899}}</nowiki></kbd> returns {{CENTURY|1899}}
: <kbd><nowiki>{{CENTURY|1898}}</nowiki></kbd> returns {{CENTURY|1898}}
: <kbd><nowiki>{{CENTURY|102}}</nowiki></kbd> returns {{CENTURY|102}}
: <kbd><nowiki>{{CENTURY|101}}</nowiki></kbd> returns {{CENTURY|101}}
: <kbd><nowiki>{{CENTURY|100}}</nowiki></kbd> returns {{CENTURY|100}}
: <kbd><nowiki>{{CENTURY|99}}</nowiki></kbd> returns {{CENTURY|99}}
: <kbd><nowiki>{{CENTURY|98}}</nowiki></kbd> returns {{CENTURY|98}}
: <kbd><nowiki>{{CENTURY|2}}</nowiki></kbd> returns {{CENTURY|2}}
: <kbd><nowiki>{{CENTURY|1}}</nowiki></kbd> returns {{CENTURY|1}}
: <kbd><nowiki>{{CENTURY|0}}</nowiki></kbd> returns {{CENTURY|0}}
: <kbd><nowiki>{{CENTURY|-1}}</nowiki></kbd> returns {{CENTURY|-1}}
: <kbd><nowiki>{{CENTURY|-2}}</nowiki></kbd> returns {{CENTURY|-2}}
: <kbd><nowiki>{{CENTURY|-98}}</nowiki></kbd> returns {{CENTURY|-98}}
: <kbd><nowiki>{{CENTURY|-99}}</nowiki></kbd> returns {{CENTURY|-99}}
: <kbd><nowiki>{{CENTURY|-100}}</nowiki></kbd> returns {{CENTURY|-100}}
: <kbd><nowiki>{{CENTURY|-101}}</nowiki></kbd> returns {{CENTURY|-101}}
: <kbd><nowiki>{{CENTURY|-1098}}</nowiki></kbd> returns {{CENTURY|-1098}}
: <kbd><nowiki>{{CENTURY|-1099}}</nowiki></kbd> returns {{CENTURY|-1099}}
: <kbd><nowiki>{{CENTURY|-1100}}</nowiki></kbd> returns {{CENTURY|-1100}}
: <kbd><nowiki>{{CENTURY|-1101}}</nowiki></kbd> returns {{CENTURY|-1101}}
=== See also ===
: [[Template:MILLENNIUM]]
: [[Template:DECADE]]
: [[Template:YEARCC]]
: [[Template:YEARYY]]
: [[Template:MONTHDAYS]]
: [[Template:IsLeapYear]]
: [[Template:JULIANDAY]]
: [[Template:WEEKDAY]]
: [[Template:CURRENTCENTURY]]
<includeonly>
[[Category:Date-computing templates|CENTURY]]
[[bn:টেমপ্লেট:CENTURY]]
[[dsb:Pśedłoga:CENTURY]]
[[eo:Ŝablono:CENTURY]]
[[fr:Modèle:CENTURY]]
[[hsb:Předłoha:CENTURY]]
[[stq:Foarloage:CENTURY]]
</includeonly>
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 ===
: <kbd><nowiki>{{</nowiki>CENTURY|</kbd>''year''<kbd>}}</kbd>
* The ''year'' must be astronomical (''year''=1 in [[1 AD]] (''[[Anno Domini]]''), ''year''=0 in 1 BC, ''year''=-1 in 2 BC).
=== Examples ===
: <kbd><nowiki>{{CENTURY|2102}}</nowiki></kbd> returns {{CENTURY|2102}}
: <kbd><nowiki>{{CENTURY|2101}}</nowiki></kbd> returns {{CENTURY|2101}}
: <kbd><nowiki>{{CENTURY|2100}}</nowiki></kbd> returns {{CENTURY|2100}}
: <kbd><nowiki>{{CENTURY|2099}}</nowiki></kbd> returns {{CENTURY|2099}}
: <kbd><nowiki>{{CENTURY|2098}}</nowiki></kbd> returns {{CENTURY|2098}}
: <kbd><nowiki>{{CENTURY|2002}}</nowiki></kbd> returns {{CENTURY|2002}}
: <kbd><nowiki>{{CENTURY|2001}}</nowiki></kbd> returns {{CENTURY|2001}}
: <kbd><nowiki>{{CENTURY|2000}}</nowiki></kbd> returns {{CENTURY|2000}}
: <kbd><nowiki>{{CENTURY|1999}}</nowiki></kbd> returns {{CENTURY|1999}}
: <kbd><nowiki>{{CENTURY|1998}}</nowiki></kbd> returns {{CENTURY|1998}}
: <kbd><nowiki>{{CENTURY|1902}}</nowiki></kbd> returns {{CENTURY|1902}}
: <kbd><nowiki>{{CENTURY|1901}}</nowiki></kbd> returns {{CENTURY|1901}}
: <kbd><nowiki>{{CENTURY|1900}}</nowiki></kbd> returns {{CENTURY|1900}}
: <kbd><nowiki>{{CENTURY|1899}}</nowiki></kbd> returns {{CENTURY|1899}}
: <kbd><nowiki>{{CENTURY|1898}}</nowiki></kbd> returns {{CENTURY|1898}}
: <kbd><nowiki>{{CENTURY|102}}</nowiki></kbd> returns {{CENTURY|102}}
: <kbd><nowiki>{{CENTURY|101}}</nowiki></kbd> returns {{CENTURY|101}}
: <kbd><nowiki>{{CENTURY|100}}</nowiki></kbd> returns {{CENTURY|100}}
: <kbd><nowiki>{{CENTURY|99}}</nowiki></kbd> returns {{CENTURY|99}}
: <kbd><nowiki>{{CENTURY|98}}</nowiki></kbd> returns {{CENTURY|98}}
: <kbd><nowiki>{{CENTURY|2}}</nowiki></kbd> returns {{CENTURY|2}}
: <kbd><nowiki>{{CENTURY|1}}</nowiki></kbd> returns {{CENTURY|1}}
: <kbd><nowiki>{{CENTURY|0}}</nowiki></kbd> returns {{CENTURY|0}}
: <kbd><nowiki>{{CENTURY|-1}}</nowiki></kbd> returns {{CENTURY|-1}}
: <kbd><nowiki>{{CENTURY|-2}}</nowiki></kbd> returns {{CENTURY|-2}}
: <kbd><nowiki>{{CENTURY|-98}}</nowiki></kbd> returns {{CENTURY|-98}}
: <kbd><nowiki>{{CENTURY|-99}}</nowiki></kbd> returns {{CENTURY|-99}}
: <kbd><nowiki>{{CENTURY|-100}}</nowiki></kbd> returns {{CENTURY|-100}}
: <kbd><nowiki>{{CENTURY|-101}}</nowiki></kbd> returns {{CENTURY|-101}}
: <kbd><nowiki>{{CENTURY|-1098}}</nowiki></kbd> returns {{CENTURY|-1098}}
: <kbd><nowiki>{{CENTURY|-1099}}</nowiki></kbd> returns {{CENTURY|-1099}}
: <kbd><nowiki>{{CENTURY|-1100}}</nowiki></kbd> returns {{CENTURY|-1100}}
: <kbd><nowiki>{{CENTURY|-1101}}</nowiki></kbd> returns {{CENTURY|-1101}}
=== See also ===
: [[Template:MILLENNIUM]]
: [[Template:DECADE]]
: [[Template:YEARCC]]
: [[Template:YEARYY]]
: [[Template:MONTHDAYS]]
: [[Template:IsLeapYear]]
: [[Template:JULIANDAY]]
: [[Template:WEEKDAY]]
: [[Template:CURRENTCENTURY]]
<includeonly>
[[Category:Date-computing templates|CENTURY]]
[[bn:টেমপ্লেট:CENTURY]]
[[dsb:Pśedłoga:CENTURY]]
[[eo:Ŝablono:CENTURY]]
[[fr:Modèle:CENTURY]]
[[hsb:Předłoha:CENTURY]]
[[stq:Foarloage:CENTURY]]
</includeonly>