Difference between revisions of "Template:PageSequence"

From Openresearch
Jump to: navigation, search
Line 12: Line 12:
 
=== example ===
 
=== example ===
 
<pre>
 
<pre>
{{PageSequence|prev=|next=bash|category=tools|categoryIcon=linux}}
+
{{PageSequence|prev=|next=ImageJ|category=tools|categoryIcon=linux}}
 
</pre>
 
</pre>
  
{{PageSequence|prev=|next=bash|category=tools|categoryIcon=linux}}
+
{{PageSequence|prev=|next=ImageJ|category=tools|categoryIcon=linux}}
 
<pre>
 
<pre>
 
{{PageSequence
 
{{PageSequence
Line 47: Line 47:
 
   <div style="display: table-cell; vertical-align: middle">{{#if: {{{prev|}}}|
 
   <div style="display: table-cell; vertical-align: middle">{{#if: {{{prev|}}}|
 
       {{#ifexist: {{{prev}}}
 
       {{#ifexist: {{{prev}}}
         |<imgLink img='{{Icon|name=nav_left_blue|title=previous}}'>{{{prev|}}}</imgLink>
+
         |{{Icon|name=prev|title=previous|link={{{prev|}}}}}
         |<imgLink img='{{Icon|name=nav_left_red|title=previous}}'>{{{prev|}}}</imgLink>}}
+
         |{{Icon|name=prev|title=previous}}'>{{{prev|}}}</imgLink>}}
 
     }}
 
     }}
 
   </div>
 
   </div>

Revision as of 13:50, 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=linux}}


{{PageSequence
|prev=Template:Icon
|next=Template:Link
|category=Template
|categoryIcon=file-text-o
}}


Properties