被永久保护的模板

Template:CENTURY

维基百科,自由的百科全书
跳到导航 跳到搜索
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

本模板乃計算該參數值位於哪個世紀。

使用方法

{{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