Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 18:54, 7 July 2023 by imported>Alistair3149 (Replaced content with "<includeonly>{{#invoke:Prevnext|main}}</includeonly><noinclude>{{/doc}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Template loop detected: Template:SC/Prevnext/doc
The above text is transcluded from Template:SC/Prevnext/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:SC/Prevnext/doc. (View all subpages of this page.)

The {{Prevnext}} template is used to provide a top navigation bar that shows the previous and next pages. It is an updated version of the {{PrevNext}} template but it only supports one link at the moment.

Examples

{{Prevnext|prev=United Nations of Earth|prevDesc=Preceded by|next=United Empire of Earth|nextDesc=Successor}} gives:

Template:Prevnext

{{Prevnext|title=Released|desc=2022-10-06 - 7 days ago|prev=Star Citizen Alpha 3.17.2|prevDesc=2022-07-28|next=Star Citizen Alpha 3.18.0|nextDesc=2022-11-30}} gives:

Template:Prevnext

{{Prevnext|title=April|prev=March 1|prevTitle=Mar|next=May 1|nextTitle=May}} gives:

Template:Prevnext

TemplateData

<templatedata> { "params": { "prev": { "label": "Previous page name", "description": "Page name of the previous page", "example": "United Nations of Earth", "type": "wiki-page-name", "suggested": true }, "prevDesc": { "label": "Previous description text", "description": "Optional description text for previous page", "example": "Preceded by", "type": "string", "suggested": true }, "title": { "label": "Title text", "description": "Optional title text shown in the middle of the navigation bar", "type": "string", "default": "Current page name" }, "desc": { "label": "Description text", "description": "Optional description text shown in the middle of the navigation bar", "type": "string" }, "next": { "label": "Next page name", "description": "Page name of the next page", "example": "United Empire of Earth", "type": "wiki-page-name", "suggested": true }, "nextDesc": { "label": "Next description text", "description": "Optional description text for next page", "example": "Succeed by", "type": "wiki-page-name", "suggested": true }, "prevTitle": { "label": "Previous title text", "description": "Optional title text for previous page", "type": "string", "suggested": true }, "nextTitle": { "label": "Next title text", "description": "Optional title text for next page", "type": "string", "suggested": true } }, "description": "Provide a top navigation bar that shows the previous and next pages", "format": "block", "paramOrder": [ "prev", "prevTitle", "prevDesc", "title", "desc", "next", "nextTitle", "nextDesc" ] } </templatedata>