Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Prevnext: Difference between revisions

Template page
Content added Content deleted
(template created)
 
(removed category)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><div class="template-prevnext">
<includeonly><div class="template-prevnext">
{{#if:{{{prev|}}}|<div class="template-prevnext__prev template-prevnext__link {{#ifexist:{{{prev}}}||template-prevnext__link--new}}">
{{#if:{{{prev|}}}|<div class="template-prevnext__prev template-prevnext__link {{#ifexist:{{{prev}}}||template-prevnext__link--new}}">
<div class="template-prevnext__icon">[[File:WikimediaUI-ArrowPrevious-ltr.svg|14px|link=]]</div>
<div class="template-prevnext__icon">[[File:OOjs UI icon arrowPrevious-ltr.svg|14px|link=]]</div>
<div class="template-prevnext__content">
<div class="template-prevnext__content">
<div class="template-prevnext__title">{{{prevTitle|{{{prev}}}}}}</div>
<div class="template-prevnext__title">{{{prevTitle|{{{prev}}}}}}</div>
Line 19: Line 19:
{{#if:{{{nextDesc|}}}|<div class="template-prevnext__desc">{{{nextDesc}}}</div>}}
{{#if:{{{nextDesc|}}}|<div class="template-prevnext__desc">{{{nextDesc}}}</div>}}
</div>
</div>
<div class="template-prevnext__icon">[[File:WikimediaUI-ArrowNext-ltr.svg|14px|link=]]</div>
<div class="template-prevnext__icon">[[File:OOjs UI icon arrowNext-ltr.svg|14px|link=]]</div>
<div class="template-prevnext__linkoverlay">[[{{{next}}}]]</div>
<div class="template-prevnext__linkoverlay">[[{{{next}}}]]</div>
</div>}}
</div>}}
</div><templatestyles src="Template:Prevnext/styles.css" /></includeonly><noinclude>[[Category:Navplates]]{{doc|{{Prevnext/doc}}}}</noinclude>
</div><templatestyles src="Template:Prevnext/styles.css" /></includeonly><noinclude>{{doc|{{Prevnext/doc}}}}</noinclude>

Latest revision as of 22:14, 9 July 2023

Template documentation

The {{Prevnext}} template is used to provide a top navigation bar that shows the previous and next pages.

Examples

{{Prevnext|title=some name here|prev=page link|prevDesc=Preceded by|next=page link|nextDesc=Successor}} gives:

some name here


{{Prevnext|title=May|prev=1 April|prevTitle=Apr|next=1 June|nextTitle=June}} gives:

May

TemplateData

Provide a top navigation bar that shows the previous and next pages

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Previous page nameprev

Page name of the previous page

Example
Windermere
Page namesuggested
Previous title textprevTitle

Optional title text for previous page

Stringsuggested
Previous description textprevDesc

Optional description text for previous page

Example
Preceded by
Stringsuggested
Title texttitle

Optional title text shown in the middle of the navigation bar

Default
Current page name
Stringoptional
Description textdesc

Optional description text shown in the middle of the navigation bar

Stringoptional
Next page namenext

Page name of the next page

Example
Ullswater
Page namesuggested
Next title textnextTitle

Optional title text for next page

Stringsuggested
Next description textnextDesc

Optional description text for next page

Example
Succeed by
Page namesuggested
The above documentation is transcluded from Template:Prevnext/doc.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.