Template:Pager: Difference between revisions
Jump to navigation
Jump to search
fix color entry in parameters section |
No edit summary |
||
Line 1: | Line 1: | ||
<div align="{{#if: {{{align|}}} | {{{align}}} | center }}"> | |||
{{Box | {{Box | ||
|color={{#if: {{{color|}}} | {{{color}}} | yellow }} | |color={{#if: {{{color|}}} | {{{color}}} | yellow }} | ||
|width=100% | |width={{#if: {{{width|}}} | {{{width}}} | 100% }} | ||
|text= | |text= | ||
<table style="width:100%;"> | <table style="width:100%;"> | ||
Line 11: | Line 12: | ||
<td style="width:33%; text-align:right; padding: 5px 20px;"> {{#if: {{{next|}}} | [[{{{next}}} | ᐅᐳ {{{next}}} ᐅᐳ]] | }} | <td style="width:33%; text-align:right; padding: 5px 20px;"> {{#if: {{{next|}}} | [[{{{next}}} | ᐅᐳ {{{next}}} ᐅᐳ]] | }} | ||
</td></tr></table> | </td></tr></table> | ||
}}<noinclude> | }} | ||
</div><noinclude> | |||
__NOTOC__ | __NOTOC__ | ||
The <code><nowiki>{{pager}}</nowiki></code> creates a page header to select the previous and next page. | The <code><nowiki>{{pager}}</nowiki></code> creates a page header to select the previous and next page. | ||
Line 19: | Line 21: | ||
{{Pager | {{Pager | ||
|color= <blue|green|grey|purple|red|yellow> | |color= <blue|green|grey|purple|red|yellow> | ||
|width= | |||
|align= <center|left|right> | |||
|prev= | |prev= | ||
|next= | |next= | ||
Line 26: | Line 30: | ||
=== Parameters === | === Parameters === | ||
; color : The color of the header. Default: <code>yellow</code>. Options: <code>blue</code>, <code>green</code>, <code>grey</code>, <code>purple</code>, <code>red</code>, <code>yellow</code> | ; color : The color of the header. Default: <code>yellow</code>. Options: <code>blue</code>, <code>green</code>, <code>grey</code>, <code>purple</code>, <code>red</code>, <code>yellow</code> | ||
; width : If specified, the width of the box. It must be specified in pixels (px) or percentage (%). | |||
; align : If specified, the alignment of the box. Default: <code>center</code>. Options: <code>center</code>, <code>left</code>, <code>right</code>. (Only useful, if width less than 100%.) | |||
; prev : If specified, the name of the previous page. | ; prev : If specified, the name of the previous page. | ||
; next : If specified, the name of the next page. | ; next : If specified, the name of the next page. |
Latest revision as of 14:40, 15 October 2021
|
The {{pager}}
creates a page header to select the previous and next page.
Usage
{{Pager |color= <blue|green|grey|purple|red|yellow> |width= |align= <center|left|right> |prev= |next= }}
Parameters
- color
- The color of the header. Default:
yellow
. Options:blue
,green
,grey
,purple
,red
,yellow
- width
- If specified, the width of the box. It must be specified in pixels (px) or percentage (%).
- align
- If specified, the alignment of the box. Default:
center
. Options:center
,left
,right
. (Only useful, if width less than 100%.) - prev
- If specified, the name of the previous page.
- next
- If specified, the name of the next page.
Examples
{{pager|prev=prev|next=next}}
|