සැකිල්ල:YEARCC/doc
This is a documentation subpage for සැකිල්ල:YEARCC. It may contain usage information, categories and other content that is not part of the original සැකිල්ල page. |
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