Template:SC/Prevnext/doc
More actions
- This template doesn't have any documentation yet! Help out by writing some. There may also be documentation on Wikia Templates which can be copied.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:SC/Prevnext/doc/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:
{{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:
{{Prevnext|title=April|prev=March 1|prevTitle=Mar|next=May 1|nextTitle=May}} gives:
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>