Difference between revisions of "Template:History"
From OCE Space Simulation
| 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 5: | Line 16: | ||
! Next Year | ! Next Year | ||
|- | |- | ||
| − | | ''[[{{{ | + | | ''[[{{{Prev}}}]]'' |
| '''{{PAGENAME}}''' | | '''{{PAGENAME}}''' | ||
| − | | ''[[{{{ | + | | ''[[{{{Post}}}]]'' |
|} | |} | ||
Revision as of 12:57, 2 March 2010
curryear={{#expr {{#sub:History|1|4}}}} twodig={{#expr{{#sub:History|6|2}}}}
preyear={{#expr curryear-1}} pretwodig={{#expr twodig-1}} Prev=preyear-pretwodig
postyear={{#expr curryear+1}} posttwodig={{#expr twodig+1}} Post=postyear-posttwodig
| Previous Year | This Year | Next Year |
|---|---|---|
| [[{{{Prev}}}]] | History | [[{{{Post}}}]] |