Difference between revisions of "Template:PageSequence"
Jump to navigation
Jump to search
| Line 12: | Line 12: | ||
=== example === | === example === | ||
<pre> | <pre> | ||
| − | {{PageSequence|prev=|next=ImageJ|category=tools|categoryIcon= | + | {{PageSequence|prev=|next=ImageJ|category=tools|categoryIcon=tuxBlue}} |
</pre> | </pre> | ||
| − | {{PageSequence|prev=|next=ImageJ|category=tools|categoryIcon= | + | {{PageSequence|prev=|next=ImageJ|category=tools|categoryIcon=tuxBlue}} |
<pre> | <pre> | ||
{{PageSequence | {{PageSequence | ||
| Line 21: | Line 21: | ||
|next=Template:Link | |next=Template:Link | ||
|category=Template | |category=Template | ||
| − | |categoryIcon= | + | |categoryIcon=document |
}} | }} | ||
</pre> | </pre> | ||
| Line 29: | Line 29: | ||
|next=Template:Link | |next=Template:Link | ||
|category=Template | |category=Template | ||
| − | |categoryIcon= | + | |categoryIcon=document |
}} | }} | ||
| Line 48: | Line 48: | ||
{{#ifexist: {{{prev}}} | {{#ifexist: {{{prev}}} | ||
|{{Icon|name=prev|title=previous|link={{{prev|}}}}} | |{{Icon|name=prev|title=previous|link={{{prev|}}}}} | ||
| − | |{{Icon|name= | + | |{{Icon|name=prevRed|title=previous}}}} |
}} | }} | ||
</div> | </div> | ||
| Line 54: | Line 54: | ||
<div style="display: table-cell;"> | <div style="display: table-cell;"> | ||
<div style="display: table-row;">{{#if: {{{categoryIcon|}}} | <div style="display: table-row;">{{#if: {{{categoryIcon|}}} | ||
| − | | | + | |{{Icon|name={{{categoryIcon|}}}|title={{{category|}}}|link=:Category:{{{category|}}}}} |
}} | }} | ||
</div> | </div> | ||
| − | |||
</div>}} | </div>}} | ||
<div style="display: table-cell; vertical-align: middle">{{#if: {{{next|}}} | <div style="display: table-cell; vertical-align: middle">{{#if: {{{next|}}} | ||
|{{#ifexist: {{{next}}} | |{{#ifexist: {{{next}}} | ||
| − | | | + | |{{Icon|name=next|title=next|link={{{next|}}}}} |
| − | | | + | |{{Icon|name=nextRed|title=next}}}} |
}} | }} | ||
}} | }} | ||
Revision as of 14:14, 27 July 2020
This is the PageSequence template it allows for prev/next style page sequences to displayed with icons. See Template:Icon
{{PageSequence
|prev=
|next=
|category=
|categoryIcon=
}}
example
{{PageSequence|prev=|next=ImageJ|category=tools|categoryIcon=tuxBlue}}
{{PageSequence
|prev=Template:Icon
|next=Template:Link
|category=Template
|categoryIcon=document
}}
Properties
- Property:PageSequence next
- Property:PageSequence prev
- Property:PageSequence category
- Property:PageSequence categoryIcon