.

Template:YEARYY/doc

Wikicars, a place to share your automotive knowledge
< Template:YEARYY
Revision as of 22:39, 30 October 2010 by Red marquis (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Error creating thumbnail: Unable to save thumbnail to destination
This is a documentation subpage for YEARYY/doc (see that page for the template or article itself).
It contains usage information, categories, interlanguage links and other content that is not part of the original page.

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 {{#if:1900|{{#expr:1900mod 100 round 0}}|Parameter 1=year required!}}
  • {{YEARYY|1901}} returns {{#if:1901|{{#expr:1901mod 100 round 0}}|Parameter 1=year required!}}
  • {{YEARYY|1909}} returns {{#if:1909|{{#expr:1909mod 100 round 0}}|Parameter 1=year required!}}
  • {{YEARYY|1910}} returns {{#if:1910|{{#expr:1910mod 100 round 0}}|Parameter 1=year required!}}
  • {{YEARYY|1999}} returns {{#if:1999|{{#expr:1999mod 100 round 0}}|Parameter 1=year required!}}
  • {{YEARYY|2000}} returns {{#if:2000|{{#expr:2000mod 100 round 0}}|Parameter 1=year required!}}
  • {{YEARYY|2001}} returns {{#if:2001|{{#expr:2001mod 100 round 0}}|Parameter 1=year required!}}
  • {{YEARYY|2009}} returns {{#if:2009|{{#expr:2009mod 100 round 0}}|Parameter 1=year required!}}
  • {{YEARYY|2010}} returns {{#if:2010|{{#expr:2010mod 100 round 0}}|Parameter 1=year required!}}
  • {{YEARYY|2099}} returns {{#if:2099|{{#expr:2099mod 100 round 0}}|Parameter 1=year required!}}
See also:
Template:YEARCC
Template:CENTURY
Template:MONTHDAYS
Template:ISLEAPYEAR
Template:ISOYEAR
Template:JULIANDAY
Template:WEEKDAY
Template:CURRENTYEARYY