|
|
| Line 1: |
Line 1: |
| {{SCTools}}
| |
| {{Documentation}}
| |
| The {{t|Prevnext}} template is used to provide a top navigation bar that shows the previous and next pages. It is an updated version of the {{t|PrevNext}} template but it only supports one link at the moment.
| |
|
| |
|
| ==Examples==
| |
| <code><nowiki>
| |
| {{Prevnext|prev=Signs of Life (album)|prevDesc=Preceded by|next=Revolution Roulette (album)|nextDesc=Successor}}</nowiki></code> gives:
| |
|
| |
| {{Prevnext|Prevnext||prev=Signs of Life (album)|prevDesc=Preceded by|next=Revolution Roulette (album)|nextDesc=Successor}}
| |
|
| |
| <code><nowiki>
| |
| {{Prevnext|title=Released|desc=2022-10-06 - 7 days ago|prev=Signs of Life (album)|prevDesc=2022-07-28|next=Revolution Roulette (album)|nextDesc=2022-11-30}}</nowiki></code> gives:
| |
|
| |
| {{Prevnext|Prevnext||title=Released|desc=2022-10-06 - 7 days ago|prev=Signs of Life (album)|prevDesc=2022-07-28|next=Revolution Roulette (album)|nextDesc=2022-11-30}}
| |
|
| |
| <code><nowiki>
| |
| {{Prevnext|title=Requiem for My Harlequin|prev=Firedancer|prevTitle=Mar|next=Sounds of Yesterday|nextTitle=May}}</nowiki></code> gives:
| |
|
| |
| {{Prevnext|title=Requiem for My Harlequin|prev=Firedancer|prevTitle=Mar|next=Sounds of Yesterday|nextTitle=May}}
| |
|
| |
| ==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>
| |
|
| |
| <includeonly>[[Category:Navplates]]</includeonly>
| |