Open main menu

Changes

Changed the headings from <nowiki>; heading <nowiki>:</nowiki></nowiki> to use Headings, which are editable by section
{{Documentation subpage}}
This template computes the number (between 0 and 99), in its astronomical century, of the year in parameter.

=== Syntax ===
: <code><nowiki>{{</nowiki>YEARYY|</code>''year''<code>}}</code>
* The ''year'' must be astronomical (''year''=1 in [[1 AD]] (''[[Anno Domini]]''), ''year''=0 in 1 BC, ''year''=-1 in 2 BC).

=== Examples ===
* <code><nowiki>{{YEARYY|1900}}</nowiki></code> returns {{YEARYY|1900}}
* <code><nowiki>{{YEARYY|1901}}</nowiki></code> returns {{YEARYY|1901}}
* <code><nowiki>{{YEARYY|1909}}</nowiki></code> returns {{YEARYY|1909}}
* <code><nowiki>{{YEARYY|1910}}</nowiki></code> returns {{YEARYY|1910}}
* <code><nowiki>{{YEARYY|1999}}</nowiki></code> returns {{YEARYY|1999}}
* <code><nowiki>{{YEARYY|2000}}</nowiki></code> returns {{YEARYY|2000}}
* <code><nowiki>{{YEARYY|2001}}</nowiki></code> returns {{YEARYY|2001}}
* <code><nowiki>{{YEARYY|2009}}</nowiki></code> returns {{YEARYY|2009}}
* <code><nowiki>{{YEARYY|2010}}</nowiki></code> returns {{YEARYY|2010}}
* <code><nowiki>{{YEARYY|2099}}</nowiki></code> returns {{YEARYY|2099}}

=== See also ===
: [[Template:YEARCC]]
: [[Template:CENTURY]]
: [[Template:MONTHDAYS]]
: [[Template:IsLeapYear]]
: [[Template:JULIANDAY]]
: [[Template:WEEKDAY]]
: [[Template:CURRENTYEARYY]]

<includeonly>
[[Category:Date-computing templates|YEARYY]]

[[bn:টেমপ্লেট:YEARYY]]
[[fr:Modèle:YEARYY]]
</includeonly>
Anonymous user