ಟೆಂಪ್ಲೇಟ್:Century
This template is used on approximately ೧೬,೦೦೦ pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template computes the calendar century number for the Gregorian year in parameter. It is different from the astronomical century number (which starts at 0).
Syntax
ಸಂಪೊಲಿಪುಲೆ- {{Century|year}}
- The year must be astronomical (year=1 in 1 AD (Anno Domini), year=0 in 1 BC, year=-1 in 2 BC).
Examples
ಸಂಪೊಲಿಪುಲೆ- {{Century|2102}} returns 22
- {{Century|2101}} returns 22
- {{Century|2100}} returns 21
- {{Century|2099}} returns 21
- {{Century|2098}} returns 21
- {{Century|2002}} returns 21
- {{Century|2001}} returns 21
- {{Century|2000}} returns 20
- {{Century|1999}} returns 20
- {{Century|1998}} returns 20
- {{Century|1902}} returns 20
- {{Century|1901}} returns 20
- {{Century|1900}} returns 19
- {{Century|1899}} returns 19
- {{Century|1898}} returns 19
- {{Century|102}} returns 2
- {{Century|101}} returns 2
- {{Century|100}} returns 1
- {{Century|99}} returns 1
- {{Century|98}} returns 1
- {{Century|2}} returns 1
- {{Century|1}} returns 1
- {{Century|0}} returns -1
- {{Century|-1}} returns -1
- {{Century|-2}} returns -1
- {{Century|-98}} returns -1
- {{Century|-99}} returns -1
- {{Century|-100}} returns -2
- {{Century|-101}} returns -2
- {{Century|-1098}} returns -11
- {{Century|-1099}} returns -11
- {{Century|-1100}} returns -12
- {{Century|-1101}} returns -12