• Home
  • Random
  • Log in
  • Settings
  • About Safer nicotine wiki
  • Disclaimers
Safer nicotine wiki

Template:YEARYY

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

This template computes the number (between 0 and 99), in its astronomical century, of the year in parameter.

Syntax

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

Examples

  • {{YEARYY|1900}} returns 0
  • {{YEARYY|1901}} returns 1
  • {{YEARYY|1909}} returns 9
  • {{YEARYY|1910}} returns 10
  • {{YEARYY|1999}} returns 99
  • {{YEARYY|2000}} returns 0
  • {{YEARYY|2001}} returns 1
  • {{YEARYY|2009}} returns 9
  • {{YEARYY|2010}} returns 10
  • {{YEARYY|2099}} returns 99

See also

Template:YEARCC
Template:CENTURY
Template:MONTHDAYS
Template:IsLeapYear
Template:JULIANDAY
Template:WEEKDAY
Template:CURRENTYEARYY
The above documentation is transcluded from Template:YEARYY/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://safernicotine.wiki/mediawiki/index.php?title=Template:YEARYY&oldid=7264"
Last edited on 12 October 2025, at 07:10
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information

Languages

    • বাংলা
    • Français
    Safer nicotine wiki
    • Creative Commons Attribution-ShareAlike
    • Powered by MediaWiki
    • Monitored by WikiApiary
    • ipv6 ready
    • Powered by Semantic MediaWiki
    • This page was last modified on 12 October 2025, at 07:10. Warning: Page may not contain recent updates.
    • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
    • Privacy policy
    • About Safer nicotine wiki
    • Disclaimers
    • Terms of Use
    • Desktop
    • Data access
    • Developers
    • Statistics
    • Cookie statement