User:Teleuteskitty/Draft Navigation: Difference between revisions
Jump to navigation
Jump to search
(playing with poss navi graphics & formula) |
m (reference comments added) |
||
Line 22: | Line 22: | ||
'''or''' use <code><nowiki>{{#sub:{{PAGENAME}}|12|0}} </nowiki></code> | '''or''' use <code><nowiki>{{#sub:{{PAGENAME}}|12|0}} </nowiki></code> (see [http://www.mediawiki.org/wiki/Extension:StringFunctions#.23sub: mediawiki.org StringFunctions]) | ||
''should'' give episode number, so, hopefully: | ''should'' give episode number, so, hopefully: | ||
<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 }}]] --> |
Revision as of 01:55, 9 May 2012
Add links to previous page, top of page (or main page), next page (no links added as yet)
File:Navi previous.png | File:Navi next.png |
{{#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