Template:Plan/Prevnext: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#if: {{{prevpage|}}} | [[{{{prevpage}}}|Special:myLanguage/Plan/Manual/{{{prevtext | {{#if: {{{prevpage|}}} | [[{{{prevpage}}}|Special:myLanguage/Plan/Manual/{{{prevtext}}}|]] | }} | ||
{{#if: {{{nextpage|}}} | [[{{{nextpage}}}|Special:myLanguage/Plan/Manual/{{{nexttext | {{#if: {{{nextpage|}}} | [[{{{nextpage}}}|Special:myLanguage/Plan/Manual/{{{nexttext}}}|]] | }} | ||
{{Prevnext2 | {{Prevnext2 | ||
| prevpage={{{prevpage}}} | prevtext={{{prevtext}}} | | prevpage={{{prevpage}}} | prevtext={{{prevtext}}} |
Revision as of 12:56, 22 January 2018
Description
Special prevnext template to create links to neigbouring pages + index page.
The template uses Special:myLanguage/Plan/Manual
as a fixed prefix to ease usage and tranlations.
Arguments
All arguments are optional, but if indextext is not given it will use the current page name as the index text.
{{Plan/Prevnext
| indextext = The link name for index.
| prevpage = The name of the previous page.
| prevtext = The link name for prevpage.
| nextpage = The name to the next page.
| nexttext = The link name for nextpage.
}}
Examples
Link to content page:
{{Plan/Prevnext
| indextext=Content
}}
- [[{{{prevpage}}}|← {{{prevtext}}}]]
- ↑ Content ↑
- [[Special:myLanguage/Plan/Manual/{{{nextpage}}}|{{{nexttext}}} →]]
Link to content page and next page:
{{Plan/Prevnext
| indextext=Content
| nextpage=Next Page | nexttext=Next page name
}}
Special:myLanguage/Plan/Manual/Next page name|
- [[{{{prevpage}}}|← {{{prevtext}}}]]
- ↑ Content ↑
- Next page name →
Link to content, next page and previous page:
{{Plan/Prevnext
| indextext=Content
| prevpage=Previous Page | nextpage=Next Page
| prevtext=Previous page name | nexttext=Next page name
}}
Special:myLanguage/Plan/Manual/Previous page name|
Special:myLanguage/Plan/Manual/Next page name|