• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:YEARCC

  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]

This template computes the astronomical century number for the year in parameter. This template may be useful to categorize many article based on date by centuries, and to generate navigation palets.

Syntax 

{{YEARCC|year}}
  • The year must be astronomical (year=1 in 1 AD (Anno Domini), year=0 in 1 BC, year=-1 in 2 BC).

Example

{{YEARCC|1900}} returns 19
{{YEARCC|1901}} returns 19
{{YEARCC|1999}} returns 19
{{YEARCC|2000}} returns 20
{{YEARCC|2001}} returns 20
{{YEARCC|2099}} returns 20
{{YEARCC|2100}} returns 21
{{YEARCC|2101}} returns 21

See also

Template:YEARYY
Template:CENTURY
Template:MONTHDAYS
Template:IsLeapYear
Template:JULIANDAY
Template:WEEKDAY
Template:CURRENTYEARCC

bn:টেমপ্লেট:YEARCC fr:Modèle:YEARCC

The above documentation is transcluded from Template:YEARCC/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:YEARCC&oldid=1784292"
Last edited on 8 May 2011, at 12:46

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 8 May 2011, at 12:46.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop