Template:Prevnext: Difference between revisions

From KDE UserBase Wiki
No edit summary
(Marked this version for translation)
Line 1: Line 1:
<translate>
<translate>
<!--T:1-->
<includeonly>{|width="100%"
<includeonly>{|width="100%"
| style="text-align:left;" | {{#if: {{{1|}}} | [[{{{1}}}|Previous]]<br />{{{3|{{{1}}}}}} | }}
| style="text-align:left;" | {{#if: {{{1|}}} | [[{{{1}}}|Previous]]<br />{{{3|{{{1}}}}}} | }}
Line 6: Line 7:
<noinclude>
<noinclude>


<!--T:2-->
Use this template when you want to provide links to the previous and the next sections of the article so the user isn't forced to go back to the index to navigate.  
Use this template when you want to provide links to the previous and the next sections of the article so the user isn't forced to go back to the index to navigate.  


== How to use this template ==
== How to use this template == <!--T:3-->


<!--T:4-->
Write <tt>'''<nowiki>{{Prevnext|Go back a page|The next section is difficult!}}</nowiki>'''</tt>, which will be returned as,
Write <tt>'''<nowiki>{{Prevnext|Go back a page|The next section is difficult!}}</nowiki>'''</tt>, which will be returned as,


<!--T:5-->
{{Prevnext|Go back a page|The next section is difficult!}}
{{Prevnext|Go back a page|The next section is difficult!}}


== Prettier links ==
== Prettier links == <!--T:6-->
To make the links to the pages look less ugly you can provide extra options to the template:
To make the links to the pages look less ugly you can provide extra options to the template:


<!--T:7-->
'''<tt><nowiki>{{Prevnext</nowiki><br><nowiki>
'''<tt><nowiki>{{Prevnext</nowiki><br><nowiki>
|Article/section/previous-subsection    |Article/section/next| </nowiki><br><nowiki>
|Article/section/previous-subsection    |Article/section/next| </nowiki><br><nowiki>
Line 22: Line 27:
}}</nowiki></tt>'''
}}</nowiki></tt>'''


<!--T:8-->
This will be rendered as
This will be rendered as


<!--T:9-->
{{Prevnext|Article/section/previous-subsection|Article/section/next|This points to the previous section|This is the next section}}
{{Prevnext|Article/section/previous-subsection|Article/section/next|This points to the previous section|This is the next section}}


==Only one direction==
==Only one direction== <!--T:10-->
'''<tt><nowiki>{{Prevnext</nowiki><br><nowiki>
'''<tt><nowiki>{{Prevnext</nowiki><br><nowiki>
||Article/section/next| </nowiki><br><nowiki>
||Article/section/next| </nowiki><br><nowiki>
Line 32: Line 39:
}}</nowiki></tt>'''
}}</nowiki></tt>'''


<!--T:11-->
This will be rendered as
This will be rendered as


<!--T:12-->
{{Prevnext||Article/section/next||This is the next section}}
{{Prevnext||Article/section/next||This is the next section}}


== See also ==
== See also == <!--T:13-->


<!--T:14-->
* [[Template:Next|Next]] - For providing a link to the next article. Use for the first article page.
* [[Template:Next|Next]] - For providing a link to the next article. Use for the first article page.
* [[Template:Prev|Prev]] - For providing a link to the previous article. Use for the last article page.
* [[Template:Prev|Prev]] - For providing a link to the previous article. Use for the last article page.


<!--T:15-->
[[Category:Template]]
[[Category:Template]]
</noinclude>
</noinclude>
</translate>
</translate>

Revision as of 15:46, 11 September 2010


Use this template when you want to provide links to the previous and the next sections of the article so the user isn't forced to go back to the index to navigate.

How to use this template

Write {{Prevnext|Go back a page|The next section is difficult!}}, which will be returned as,

<translate>

Previous
Go back a page
Next
The next section is difficult!

</translate>

Prettier links

To make the links to the pages look less ugly you can provide extra options to the template:

{{Prevnext
|Article/section/previous-subsection |Article/section/next|
This points to the previous section text | This is the next section
}}

This will be rendered as

<translate>

Previous
This points to the previous section
Next
This is the next section

</translate>

Only one direction

{{Prevnext
||Article/section/next|
|| This is the next section
}}

This will be rendered as

<translate>

Next
This is the next section

</translate>

See also

  • Next - For providing a link to the next article. Use for the first article page.
  • Prev - For providing a link to the previous article. Use for the last article page.