Doctor Who Cuttings Archive

Difference between revisions of "Template:Nav by year"

From The Doctor Who Cuttings Archive
Jump to navigationJump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table style="border: 1px solid black;">
+
<table class="NoPrint" style="border:1px solid black; text-align:center; width:auto">
<tr><th colspan=30 style="background-color:yellow;">Articles by year</th></tr>
+
<tr><th colspan="10" style="background-color:yellow;">'''[[Articles by year]]'''</th></tr>
<tr><td>1963</td><td>1964</td><td>1965</td><td>1966</td></tr>
+
<tr>
 +
{{
 +
  #loop: y
 +
  | 1963
 +
  | {{#expr: {{CURRENTYEAR}} - 1963 + 1 }}
 +
  | <td>[[:Category:Articles published in {{#var: y}}|{{#var: y}}]]&nbsp;</td>{{#ifeq: {{#sub:{{#var:y}}|3|1}} | 2 | </tr><tr> | }}
 +
}}
 +
</tr>
 
</table>
 
</table>

Latest revision as of 12:40, 20 March 2016