Template:Prevnext: Difference between revisions

From KDE UserBase Wiki
mNo edit summary
Line 23: Line 23:
To make the links to the pages look less ugly ((such as [[Application/section/subsection]])), you can provide extra options to the template:
To make the links to the pages look less ugly ((such as [[Application/section/subsection]])), you can provide extra options to the template:


'''<nowiki>{{Prevnext|Article/section/previous-subsection|Article/section/next-subsection| </nowiki><br><nowiki>
'''<nowiki>{{Prevnext|Article/section/previous-subsection|Article/section/next| </nowiki><br><nowiki>
|prevtext = This is the previous section</nowiki><br><nowiki>
|prevtext = This is the previous section</nowiki><br><nowiki>
|nexttext = This is the next section}}</nowiki>'''
|nexttext = This is the next section}}</nowiki>'''
Line 29: Line 29:
This will be rendered as
This will be rendered as


{{Prevnext|Article/section/previous-subsection|Article/section/next-subsection|
{{Prevnext|Article/section/previous-subsection|Article/section/next|
|prevtext = This is the previous section
|prevtext = This is the previous section
|nexttext = This is the next section}}
|nexttext = This is the next section}}

Revision as of 04:12, 2 June 2010


Template:I18n/Language Navigation Bar 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,

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


To make the links to the pages look less ugly ((such as Application/section/subsection)), you can provide extra options to the template:

{{Prevnext|Article/section/previous-subsection|Article/section/next|
|prevtext = This is the previous section
|nexttext = This is the next section}}

This will be rendered as

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


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.