Difference between revisions of "Template:Decadebox"
Jump to navigation
Jump to search
imported>JFG (Apply AD notation to years 1-100 per RfC on Talk:AD 1) |
imported>JFG (Handle 0 BC exception) |
||
| Line 35: | Line 35: | ||
| {{dr|d|y|{{{1}}}|6|{{#ifexpr:{{{1}}}<10|sa|s}}}} | | {{dr|d|y|{{{1}}}|6|{{#ifexpr:{{{1}}}<10|sa|s}}}} | ||
| {{dr|d|y|{{{1}}}|7|{{#ifexpr:{{{1}}}<10|sa|s}}}} | | {{dr|d|y|{{{1}}}|7|{{#ifexpr:{{{1}}}<10|sa|s}}}} | ||
| − | | {{dr|d|y|{{{1}}}|8|{{#ifexpr:{{{1}}}<10|sa|s}}}} | + | | {{#ifeq:w{{{1}}}|w-0|<!-- There is no year 0 BC -->|{{dr|d|y|{{{1}}}|8|{{#ifexpr:{{{1}}}<10|sa|s}}}}}} |
}} | }} | ||
|- | |- | ||
Revision as of 18:01, 5 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. |