Difference between revisions of "Template:PageSequence"
Jump to navigation
Jump to search
m (Wf moved page Vorlage:PageSequence to Template:PageSequence without leaving a redirect) |
m (transfered by WikiBackup wikiTask at 2016-02-12T15:56:01Z) |
||
Line 1: | Line 1: | ||
− | <noinclude> | + | <noinclude>__NOCACHE__<!-- THIS FILE IS PROTECTED - smartGENERATOR WILL NOT OVERWRITE IT -->{{TemplateSequence |
− | + | |prev=Template:Link | |
− | This is the PageSequence template it allows for prev/next style page sequences to displayed with icons. | + | |next=Template:PdfBook |
− | <pre>{{PageSequence | + | }} |
+ | This is the PageSequence template it allows for prev/next style page sequences to displayed with icons. See [[Template:Icon]] | ||
+ | |||
+ | <pre> | ||
+ | {{PageSequence | ||
|prev= | |prev= | ||
|next= | |next= | ||
− | }} | + | }} |
− | </pre> | + | </pre> |
=== example === | === example === | ||
<pre> | <pre> | ||
− | {{PageSequence|prev=|next= | + | {{PageSequence|prev=|next=bash|category=tools|categoryIcon=linux}} |
</pre> | </pre> | ||
− | {{PageSequence|prev=|next= | + | |
+ | {{PageSequence|prev=|next=bash|category=tools|categoryIcon=linux}} | ||
<pre> | <pre> | ||
{{PageSequence | {{PageSequence | ||
− | |prev= | + | |prev=Template:Icon |
− | |next= | + | |next=Template:Link |
|category=Template | |category=Template | ||
− | |categoryIcon= | + | |categoryIcon=file-text-o |
}} | }} | ||
</pre> | </pre> | ||
+ | |||
{{PageSequence | {{PageSequence | ||
− | |prev= | + | |prev=Template:Icon |
− | |next= | + | |next=Template:Link |
|category=Template | |category=Template | ||
− | |categoryIcon= | + | |categoryIcon=file-text-o |
+ | }} | ||
+ | </noinclude><includeonly>{{#set: | ||
+ | |PageSequence next={{{next|}}} | ||
+ | |PageSequence prev={{{prev|}}} | ||
+ | |PageSequence category={{{category|}}} | ||
+ | |PageSequence categoryIcon={{{categoryIcon|}}} | ||
}} | }} | ||
− | < | + | <div style="display:table;border-collapse: collapse;"><div style="display: table-row;"> |
− | + | <div style="display: table-cell; vertical-align: middle">{{#if: {{{prev|}}}| | |
− | < | + | {{#ifexist: {{{prev}}} |
− | + | |<imgLink img='{{Icon|name=nav_left_blue|title=previous}}'>{{{prev|}}}</imgLink> | |
− | + | |<imgLink img='{{Icon|name=nav_left_red|title=previous}}'>{{{prev|}}}</imgLink>}} | |
− | + | }} | |
− | {{#if: {{{prev|}}} | + | </div> |
− | + | <div style="display: table-cell;"> | |
− | |<imgLink img='{{Icon|name=nav_left_blue|title=previous}}'>{{{prev|}}}</imgLink> | + | <div style="display: table-row;">{{#if: {{{categoryIcon|}}} |
− | |<imgLink img='{{Icon|name=nav_left_red|title=previous}}'>{{{prev|}}}</imgLink> | + | |<imgLink img='{{Icon|name={{{categoryIcon|}}}|title={{{category|}}}}}'>:Category:{{{category|}}}</imgLink> |
− | }}}}{{#if: {{{categoryIcon|}}} | + | }} |
− | |<imgLink img='{{Icon|name={{{categoryIcon|}}}|title={{{category|}}}}}'>:Category:{{{category|}}}</imgLink> | + | </div> |
− | }}{{#if: {{{next|}}} | + | <div style="display: table-row;">{{Icon|name=edit|size=16}}{{Link|target=Special:FormEdit/PageSequence/{{FULLPAGENAME}}|title=edit}}</div> |
− | |{{#ifexist: {{{next}}} | + | </div> |
− | |<imgLink img='{{Icon|name=nav_right_blue|title=next}}'>{{{next|}}}</imgLink> | + | <div style="display: table-cell; vertical-align: middle">{{#if: {{{next|}}} |
− | |<imgLink img='{{Icon|name=nav_right_red|title=next}}'>{{{next|}}}</imgLink> | + | |{{#ifexist: {{{next}}} |
− | }}}}{{#if: {{{category|}}} | + | |<imgLink img='{{Icon|name=nav_right_blue|title=next}}'>{{{next|}}}</imgLink> |
− | | | + | |<imgLink img='{{Icon|name=nav_right_red|title=next}}'>{{{next|}}}</imgLink> |
+ | }} | ||
+ | }} | ||
+ | </div> | ||
+ | </div></div>{{#if: {{{category|}}} | ||
+ | |{{Category|name={{{category|}}}}} | ||
}}</includeonly> | }}</includeonly> |
Revision as of 16:56, 12 February 2016
This is the PageSequence template it allows for prev/next style page sequences to displayed with icons. See Template:Icon
{{PageSequence |prev= |next= }}
example
{{PageSequence|prev=|next=bash|category=tools|categoryIcon=linux}}
{{PageSequence |prev=Template:Icon |next=Template:Link |category=Template |categoryIcon=file-text-o }}