m (Only check page titles aren't empty, let caller choose to check for page existence) |
m (Add template description to TemplateData) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{#if:{{{1}}}|← | <onlyinclude><includeonly>{{#if:{{{1}}}|← previous {{{3|}}}<br/>[[{{{1}}}]]<br/> | ||
|}}{{#if:{{{2}}}|{{float right|{{float right|next {{{3|}}} →}}<br/>[[{{{2}}}]]<br/>}} | |}}{{#if:{{{2}}}|{{float right|{{float right|next {{{3|}}} →}}<br/>[[{{{2}}}]]<br/>}}<br clear="all" /> | ||
|}}</includeonly></onlyinclude> | |}}</includeonly></onlyinclude> | ||
Base for {{t|prevnext appearance}} and {{t|prevnext of type}}. | Base for {{t|prevnext appearance}} and {{t|prevnext of type}}. | ||
{{TemplateData preamble}}<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Previous Page", | |||
"description": "if empty, not shown", | |||
"type": "wiki-page-name", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Next Page", | |||
"description": "if empty, not shown", | |||
"type": "wiki-page-name", | |||
"required": true | |||
}, | |||
"3": { | |||
"label": "Extra Label Text", | |||
"description": "appended to the \"previous\" and \"next\" labels", | |||
"type": "string" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"3" | |||
], | |||
"format": "inline", | |||
"description": "Base template for {{prevnext appearance}} and {{prevnext of type}}." | |||
} | |||
</templatedata> |
Latest revision as of 20:39, 30 October 2023
Base for {{prevnext appearance}} and {{prevnext of type}}.
The below documentation is automatically generated from JSON. It can be changed by editing this page, but note that it's only the documentation (for the visual editor)—the actual template part must also be edited, manually.
Base template for {{prevnext appearance}} and {{prevnext of type}}.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Previous Page | 1 | if empty, not shown | Page name | required |
Next Page | 2 | if empty, not shown | Page name | required |
Extra Label Text | 3 | appended to the "previous" and "next" labels | String | optional |