Doctor Who Cuttings Archive

Difference between revisions of "Template:Nav by year"

From The Doctor Who Cuttings Archive
Jump to navigationJump to search
(Created page with "<table> <tr><th style="text-align:center;">Articles by year</th></tr> <tr><td>1963</td><td>1964</td></tr> </table>")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table>
+
<table class="NoPrint" style="border:1px solid black; text-align:center; width:auto">
<tr><th style="text-align:center;">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></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