Changes

Jump to navigation Jump to search
Changed the headings from <nowiki>; heading <nowiki>:</nowiki></nowiki> to use Headings, which are editable by section
{{Documentation subpage}}
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&nbsp; ===
: <code><nowiki>{{</nowiki>YEARCC|</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).

=== Example ===
: <code><nowiki>{{YEARCC|1900}}</nowiki></code> returns {{YEARCC|1900}}
: <code><nowiki>{{YEARCC|1901}}</nowiki></code> returns {{YEARCC|1901}}
: <code><nowiki>{{YEARCC|1999}}</nowiki></code> returns {{YEARCC|1999}}
: <code><nowiki>{{YEARCC|2000}}</nowiki></code> returns {{YEARCC|2000}}
: <code><nowiki>{{YEARCC|2001}}</nowiki></code> returns {{YEARCC|2001}}
: <code><nowiki>{{YEARCC|2099}}</nowiki></code> returns {{YEARCC|2099}}
: <code><nowiki>{{YEARCC|2100}}</nowiki></code> returns {{YEARCC|2100}}
: <code><nowiki>{{YEARCC|2101}}</nowiki></code> returns {{YEARCC|2101}}

=== See also ===
: [[Template:YEARYY]]
: [[Template:CENTURY]]
: [[Template:MONTHDAYS]]
: [[Template:IsLeapYear]]
: [[Template:JULIANDAY]]
: [[Template:WEEKDAY]]
: [[Template:CURRENTYEARCC]]

<includeonly>
[[Category:Date-computing templates|YEARCC]]
[[bn:টেমপ্লেট:YEARCC]]
[[fr:Modèle:YEARCC]]
</includeonly>
Anonymous user

Navigation menu