跳转到内容

模板:CENTURY/doc

维基百科,自由的百科全书

本模板乃计算该参数值位于哪个世纪。

使用方法

[编辑]
{{CENTURY|年份}}

范例

[编辑]
{{CENTURY|2102}} → 22
{{CENTURY|2101}} → 22
{{CENTURY|2100}} → 21
{{CENTURY|2099}} → 21
{{CENTURY|2098}} → 21
{{CENTURY|2002}} → 21
{{CENTURY|2001}} → 21
{{CENTURY|2000}} → 20
{{CENTURY|1999}} → 20
{{CENTURY|1998}} → 20
{{CENTURY|1902}} → 20
{{CENTURY|1901}} → 20
{{CENTURY|1900}} → 19
{{CENTURY|1899}} → 19
{{CENTURY|1898}} → 19
{{CENTURY|102}} → 2
{{CENTURY|101}} → 2
{{CENTURY|100}} → 1
{{CENTURY|99}} → 1
{{CENTURY|98}} → 1
{{CENTURY|2}} → 1
{{CENTURY|1}} → 1
{{CENTURY|0}} → 0
{{CENTURY|-1}} → -1
{{CENTURY|-2}} → -1
{{CENTURY|-98}} → -1
{{CENTURY|-99}} → -1
{{CENTURY|-100}} → -1
{{CENTURY|-101}} → -2
{{CENTURY|-1098}} → -11
{{CENTURY|-1099}} → -11
{{CENTURY|-1100}} → -11
{{CENTURY|-1101}} → -12
{{CENTURY|2019|abbr=y}} → 21世纪
{{CENTURY|-2019|abbr=y}} → 前21世纪

参见

[编辑]
Template:DECADE
Template:YEARCC
Template:YEARYY
Template:MONTHDAYS
Template:Date.IsLeapYear
Template:JULIANDAY
Template:WEEKDAY
Template:CURRENTCENTURY