Difference between revisions of "Template:Decade category header"

From blackwiki
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" align="center"
+
<includeonly>{| class="toccolours" style="margin:1em auto;"
 
|-
 
|-
 
| style="text-align:left; | {{#ifeq: {{{decade|}}} | 0 | &larr; [[:Category:0s BC|0s BC]] | [[:Category:{{#expr: {{{decade|}}} - 10 }}s|&larr; {{#expr: {{{decade|}}} - 10 }}s]] }}
 
| style="text-align:left; | {{#ifeq: {{{decade|}}} | 0 | &larr; [[:Category:0s BC|0s BC]] | [[:Category:{{#expr: {{{decade|}}} - 10 }}s|&larr; {{#expr: {{{decade|}}} - 10 }}s]] }}

Revision as of 15:44, 12 October 2018

Template documentation[view] [edit] [history] [purge]
← 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