Difference between revisions of "Template:Decade category header"
Jump to navigation
Jump to search
imported>Wbm1058 (better solution: link to Category:0s BC) |
imported>WOSlinker (tidy style for better HTML5 compatibility) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{| class="toccolours" | + | <includeonly>{| class="toccolours" style="margin:1em auto;" |
|- | |- | ||
| style="text-align:left; | {{#ifeq: {{{decade|}}} | 0 | ← [[:Category:0s BC|0s BC]] | [[:Category:{{#expr: {{{decade|}}} - 10 }}s|← {{#expr: {{{decade|}}} - 10 }}s]] }} | | style="text-align:left; | {{#ifeq: {{{decade|}}} | 0 | ← [[:Category:0s BC|0s BC]] | [[:Category:{{#expr: {{{decade|}}} - 10 }}s|← {{#expr: {{{decade|}}} - 10 }}s]] }} | ||
Revision as of 15:44, 12 October 2018
| ← 1670s | The 1680s | 1690s → |
|---|---|---|
| ← 0s BC | The 0s | 10s → |
|---|---|---|
| ← 0s | The 10s | 20s → |
|---|---|---|
Usage
This template provides navigation in category pages for AD years and decades, such as Category:1680s.
Use with {{Decade category header|decade=n}} where n is the first year of the decade.
The example above is for the 1680s, i.e. {{Decade category header|decade=1680}}.
This template does not work with BC decades.
See also
- Template:T for use in main space article about decades, e.g. 1680s
| The above documentation is transcluded from Template:Decade category header/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. |