User:Teleuteskitty/Draft Navigation: Difference between revisions
Jump to navigation
Jump to search
m (reference comments added) |
m (replaced button graphics) |
||
Line 4: | Line 4: | ||
Add links to previous page, top of page (or main page), next page (no links added as yet) | Add links to previous page, top of page (or main page), next page (no links added as yet) | ||
<code><nowiki>{{#expr: 350+1 }} =</nowiki></code> {{#expr: 350+1 }} | <code><nowiki>{{#expr: 350+1 }} =</nowiki></code> {{#expr: 350+1 }} | ||
Line 28: | Line 22: | ||
<code><nowiki>[[SGU Episode {{#expr: {{#sub:{{PAGENAME}}|11|0}}+1 }}]] </nowiki></code> gives next page | <code><nowiki>[[SGU Episode {{#expr: {{#sub:{{PAGENAME}}|11|0}}+1 }}]] </nowiki></code> gives next page | ||
<!-- :[[SGU Episode {{#expr: {{#sub:SGU Episode 350|12|0}}+1 }}]] --> | <!-- :[[SGU Episode {{#expr: {{#sub:SGU Episode 350|12|0}}+1 }}]] --> | ||
{|style="width:80%; margin: 1em auto 1em auto;" | |||
|style="padding-top:30px;" align="left" |[[file:Navi-previous.png|110px]] | |||
|align="center" |[[file:SGU HRes Logo sm.gif|300px]] <!-- 402 × 175 --> | |||
|style="padding-top:30px;" align="right" |[[file:Navi-next.png|110px]] | |||
|} |
Revision as of 05:33, 9 May 2012
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
Either
insert page number parameter into template manually
or use {{#sub:{{PAGENAME}}|12|0}}
(see mediawiki.org StringFunctions)
should give episode number, so, hopefully:
[[SGU Episode {{#expr: {{#sub:{{PAGENAME}}|11|0}}+1 }}]]
gives next page