Difference between revisions of "Template:DECADE"
Jump to navigation
Jump to search
imported>BrownHairedGirl (←Created page with '<includeonly> {{#if:{{{1|}}}| {{#expr:(({{{1}}}-1)/10-0.5 round 0)+1}}s |Parameter 1=''year'' required!}}</includeonly><noinclude>{{Documentation, template}}</noin...') |
imported>BrownHairedGirl (no -1) |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
| − | {{#if:{{{1|}}}| {{#expr: | + | {{#if:{{{1|}}}| {{#expr:({{{1}}}/10-0.5 round 0)+1}}s |Parameter 1=''year'' required!}}</includeonly><noinclude>{{Documentation, template}}</noinclude> |
Revision as of 19:59, 13 January 2008
| 40px | This template is used on approximately 228,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. Transclusion count updated automatically (see documentation). |
This template computes the decade for the Gregorian year in parameter.
Syntax
- {{DECADE|year}}
- The year must be astronomical (year=1 in 1 AD (Anno Domini), year=0 in 1 BC, year=-1 in 2 BC).
Examples
- {{DECADE|9}} returns
1s
- {{DECADE|61}} returns
7s
- {{DECADE|584}} returns
59s
- {{DECADE|1738}} returns
174s
- {{DECADE|1899}} returns
190s
- {{DECADE|1900}} returns
191s
- {{DECADE|1901}} returns
191s
- {{DECADE|1915}} returns
192s
- {{DECADE|1962}} returns
197s
- {{DECADE|1999}} returns
200s
- {{DECADE|2000}} returns
201s
- {{DECADE|2001}} returns
201s
- {{DECADE|2017}} returns
202s
- {{DECADE|2099}} returns
210s
- {{DECADE|2100}} returns
211s
- {{DECADE|2101}} returns
211s
See also
- Template:MILLENNIUM
- Template:CENTURY
- Template:YEARCC
- Template:YEARYY
- Template:MONTHDAYS
- Template:IsLeapYear
- Template:JULIANDAY
- Template:WEEKDAY
| The above documentation is transcluded from Template:DECADE/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |