Difference between revisions of "Template:Decadebox"
Jump to navigation
Jump to search
imported>JFG (Cleaner format with hlists) |
imported>JFG (Apply AD notation to years 1-100 per RfC on Talk:AD 1) |
||
| Line 25: | Line 25: | ||
| style="text-align: right;" | '''[[List of years|Years]]:''' | | style="text-align: right;" | '''[[List of years|Years]]:''' | ||
| {{hlist | | {{hlist | ||
| − | | {{#ifeq:w{{{1}}}|w0||{{dr|d|y|{{{1}}}|-1|s}}}} | + | | {{#ifeq:w{{{1}}}|w0|<!-- There is no year AD 0 -->|{{dr|d|y|{{{1}}}|-1|{{#ifexpr:{{{1}}}<10|sa|s}}}}}} |
| − | | {{dr|d|y|{{{1}}}|0|{{# | + | | {{dr|d|y|{{{1}}}|0|{{#ifexpr:{{{1}}}<10|sa|s}}}} |
| − | | {{dr|d|y|{{{1}}}|1|{{# | + | | {{dr|d|y|{{{1}}}|1|{{#ifexpr:{{{1}}}<10|sa|s}}}} |
| − | | {{dr|d|y|{{{1}}}|2|{{# | + | | {{dr|d|y|{{{1}}}|2|{{#ifexpr:{{{1}}}<10|sa|s}}}} |
| − | | {{dr|d|y|{{{1}}}|3|{{# | + | | {{dr|d|y|{{{1}}}|3|{{#ifexpr:{{{1}}}<10|sa|s}}}} |
}} {{hlist | }} {{hlist | ||
| − | | {{dr|d|y|{{{1}}}|4|{{# | + | | {{dr|d|y|{{{1}}}|4|{{#ifexpr:{{{1}}}<10|sa|s}}}} |
| − | | {{dr|d|y|{{{1}}}|5|{{# | + | | {{dr|d|y|{{{1}}}|5|{{#ifexpr:{{{1}}}<10|sa|s}}}} |
| − | | {{dr|d|y|{{{1}}}|6|{{# | + | | {{dr|d|y|{{{1}}}|6|{{#ifexpr:{{{1}}}<10|sa|s}}}} |
| − | | {{dr|d|y|{{{1}}}|7|{{# | + | | {{dr|d|y|{{{1}}}|7|{{#ifexpr:{{{1}}}<10|sa|s}}}} |
| − | | {{dr|d|y|{{{1}}}|8|{{# | + | | {{dr|d|y|{{{1}}}|8|{{#ifexpr:{{{1}}}<10|sa|s}}}} |
}} | }} | ||
|- | |- | ||
Revision as of 02:40, 4 January 2017
| Millennium: | [[Template:Ordinal millennium|Template:Ordinal millennium]] |
| Centuries: |
|
| Decades: | |
| Years: | |
| 1980s-related categories: |
| Millennium: | [[Template:Ordinal millennium BC|Template:Ordinal millennium BC]] |
| Centuries: |
|
| Decades: | |
| Years: | |
| 20s BC-related categories: |
Usage
This template is for use on decade articles.
Use {{decadebox|n}} where n is the number of the decade, without the final 0. Positive numbers yield AD years, negative numbers BC years.
Examples
See also
| The above documentation is transcluded from Template:Decadebox/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. |