Difference between revisions of "Template:History"

From OCE Space Simulation
Jump to: navigation, search
Line 1: Line 1:
curryear={{#expr {{#sub:{{PAGENAME}}|1|4}}}}
 
twodig={{#expr{{#sub:{{PAGENAME}}|6|2}}}}
 
 
preyear={{#expr curryear-1}}
 
pretwodig={{#expr twodig-1}}
 
Prev=preyear-pretwodig
 
 
postyear={{#expr curryear+1}}
 
posttwodig={{#expr twodig+1}}
 
Post=postyear-posttwodig
 
 
 
{| class="wikitable" border="1" style="text-align:center"
 
{| class="wikitable" border="1" style="text-align:center"
 
|-
 
|-
Line 16: Line 5:
 
! Next Year
 
! Next Year
 
|-
 
|-
|  ''[[{{{Prev}}}]]''
+
|  ''[[{{{PrevYear}}}]]''
 
| '''{{PAGENAME}}'''
 
| '''{{PAGENAME}}'''
|  ''[[{{{Post}}}]]''
+
|  ''[[{{{NextYear}}}]]''
 
|}
 
|}
  

Revision as of 12:59, 2 March 2010

Previous Year This Year Next Year
[[{{{PrevYear}}}]] History [[{{{NextYear}}}]]