Doctor Who Cuttings Archive

Difference between revisions of "Template:Nav by year"

From The Doctor Who Cuttings Archive
Jump to navigationJump to search
Line 1: Line 1:
<table style="border: 1px solid black;">
+
<table 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; font-weight:bold;">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>

Revision as of 03:00, 19 October 2013