User:Teleuteskitty/Draft Navigation

From SGUTranscripts
< User:Teleuteskitty
Revision as of 20:38, 9 May 2012 by Teleuteskitty (talk | contribs) (added test line for sub#)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Add links to previous page, top of page (or main page), next page (no links added as yet)

{{#expr: 350+1 }} = 351

Therefore: [[SGU Episode {{#expr: 350+1 }}]] gives: SGU Episode 351


insert page number parameter into template manually

or use {{#sub:{{PAGENAME}}|12|0}} (see StringFunctions)

should give episode number, so, hopefully:

[[SGU Episode {{#expr: {{#sub:{{PAGENAME}}|12|0}}+1 }}]] gives next page


If the following contains just a number and a link, #sub is working:
SGU Episode 351

Navi-previous.png SGU HRes Logo sm.gif Navi-next.png