(Replaced content with "<includeonly>{{#invoke:Prevnext|main}}</includeonly><noinclude>{{/doc}}</noinclude>") |
(No difference)
|
Revision as of 18:54, 7 July 2023
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=Dyson Sphere Program Alpha 3.17.2|prevDesc=2022-07-28|next=Dyson Sphere Program Alpha 3.18.0|nextDesc=2022-11-30}}
gives:
{{Prevnext|title=April|prev=March 1|prevTitle=Mar|next=May 1|nextTitle=May}}
gives:
TemplateData
Provide a top navigation bar that shows the previous and next pages
Parameter | Description | Type | Status | |
---|---|---|---|---|
Previous page name | prev | Page name of the previous page
| Page name | suggested |
Previous title text | prevTitle | Optional title text for previous page | String | suggested |
Previous description text | prevDesc | Optional description text for previous page
| String | suggested |
Title text | title | Optional title text shown in the middle of the navigation bar
| String | optional |
Description text | desc | Optional description text shown in the middle of the navigation bar | String | optional |
Next page name | next | Page name of the next page
| Page name | suggested |
Next title text | nextTitle | Optional title text for next page | String | suggested |
Next description text | nextDesc | Optional description text for next page
| Page name | suggested |