模板:Prevnext

来自决策链云智库

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

{{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:

Released
2022-10-06 - 7 days ago

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

April

TemplateData

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

模板参数

此模板首选参数换行的代码块格式。

参数描述类型状态
Previous page nameprev

Page name of the previous page

示例值
United Nations of Earth
页面名称推荐
Previous title textprevTitle

Optional title text for previous page

字符串推荐
Previous description textprevDesc

Optional description text for previous page

示例值
Preceded by
字符串推荐
Title texttitle

Optional title text shown in the middle of the navigation bar

默认值
Current page name
字符串可选
Description textdesc

Optional description text shown in the middle of the navigation bar

字符串可选
Next page namenext

Page name of the next page

示例值
United Empire of Earth
页面名称推荐
Next title textnextTitle

Optional title text for next page

字符串推荐
Next description textnextDesc

Optional description text for next page

示例值
Succeed by
页面名称推荐