Template:Plan/Prevnext: Difference between revisions

From KDE UserBase Wiki
mNo edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly><ul class="pager">
{{#if: {{{prevpage|}}} | [[{{{prevpage}}}|Special:myLanguage/Plan/Manual/{{{prevtext}}}|]] | }}
<li>{{#if: {{{prevpage|}}} | '''{{Plan/Page|page={{{prevpage}}}|title={{{prevtext|}}}}}''' | }}</li>
{{#if: {{{nextpage|}}} | [[{{{nextpage}}}|Special:myLanguage/Plan/Manual/{{{nexttext}}}|]] | }}
<li>'''{{Plan/Page|page=|title={{{indextext}}}}}'''</li>
{{Prevnext2
<li>{{#if: {{{nextpage|}}} | '''{{Plan/Page|page={{{nextpage}}}| title={{{nexttext|}}}}}''' | }}</li>
| prevpage={{{prevpage}}} | prevtext={{{prevtext}}}
</ul></includeonly><noinclude>
| nextpage={{{nextpage}}} | nexttext={{{nexttext}}}
| index=Special:myLanguage/Plan/Manual | indextext={{{indextext}}}
}}
</includeonly><noinclude>


==Description==
==Description==
Line 53: Line 49:
  | nextpage=Next Page | nexttext=Next page name
  | nextpage=Next Page | nexttext=Next page name
  | prevpage=Previous Page | prevtext=Previous page name
  | prevpage=Previous Page | prevtext=Previous page name
}}
Link to content, next page and previous page without page titles:
<br><tt><nowiki>{{Plan/Prevnext</nowiki><br><nowiki>
| indextext=Content</nowiki><br><nowiki>
| prevpage=Previous Page</nowiki><br><nowiki>
| nextpage=Next page</nowiki><br><nowiki>
}}</nowiki></tt><br>
{{Plan/Prevnext | indextext=Content
| nextpage=Next Page
| prevpage=Previous Page
}}
}}

Latest revision as of 19:27, 2 December 2019


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.

Note

This template is only usable by Plan as the link to the base page is hadcoded.


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
}}

Link to content page and next page:
{{Plan/Prevnext
| indextext=Content
| nextpage=Next Page | nexttext=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
}}

Link to content, next page and previous page without page titles:
{{Plan/Prevnext
| indextext=Content
| prevpage=Previous Page
| nextpage=Next page
}}