Difference between revisions of "Template:DECADE/doc"
Jump to navigation
Jump to search
imported>GeoffreyT2000 m (Capitalized first letter as "Gregorian" is a proper adjective.) |
imported>Wbm1058 (remove pipe to 1) |
||
| Line 5: | Line 5: | ||
; Syntax<nowiki>:</nowiki> | ; Syntax<nowiki>:</nowiki> | ||
: <tt><nowiki>{{</nowiki>DECADE|</tt>''year''<tt>}}</tt> | : <tt><nowiki>{{</nowiki>DECADE|</tt>''year''<tt>}}</tt> | ||
| − | * The ''year'' must be astronomical (''year''=1 in [[ | + | * The ''year'' must be astronomical (''year''=1 in [[1 AD]] (''[[Anno Domini]]''), ''year''=0 in 1 BC, ''year''=-1 in 2 BC). |
; Examples<nowiki>:</nowiki> | ; Examples<nowiki>:</nowiki> | ||
Revision as of 13:50, 11 November 2016
| This is a documentation subpage for Template:DECADE. It contains usage information, categories and other content that is not part of the original template page. |
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|1738}} returns 1730s
- {{DECADE|1900}} returns 1900s
- {{DECADE|1901}} returns 1900s
- {{DECADE|1915}} returns 1910s
- {{DECADE|1962}} returns 1960s
- {{DECADE|1999}} returns 1990s
- {{DECADE|2000}} returns 2000s
- {{DECADE|2001}} returns 2000s
- {{DECADE|2099}} returns 2090s
- {{DECADE|2100}} returns 2100s
- {{DECADE|2101}} returns 2100s
- See also:
- Template:CENTURY
- Template:YEARCC
- Template:YEARYY
- Template:MONTHDAYS
- Template:IsLeapYear
- Template:JULIANDAY
- Template:WEEKDAY