Difference between revisions of "Template:PageSequence"

From Openresearch
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 45: Line 45:
 
}}
 
}}
 
<div style="display:table;border-collapse: collapse;"><div style="display: table-row;">
 
<div style="display:table;border-collapse: collapse;"><div style="display: table-row;">
   <div style="display: table-cell; vertical-align: middle">{{#if: {{{prev|}}}|
+
   <div style="display: table-cell; vertical-align: middle">{{#if: {{{prev|}}}|{{#ifexist: {{{prev|}}}
      {{#ifexist: {{{prev}}}
+
    |{{Icon|name=prev|title=previous|link={{{prev|}}}}}
        |{{Icon|name=prev|title=previous|link={{{prev|}}}}}
+
    |{{Icon|name=prevRed|title=previous}}
        |{{Icon|name=prevRed|title=previous}}}}
+
    }}}}
    }}
 
 
   </div>
 
   </div>
  {{#if: {{{category|}}} |
+
{{#if: {{{category|}}} |
 
   <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|}}}}}
+
    |{{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=next|title=next|link={{{next|}}}}}
           |{{Icon|name=nextRed|title=next}}}}
+
           |{{Icon|name=nextRed|title=next}}
         }}
+
         }}}}
    }}
 
 
   </div>
 
   </div>
 
</div></div>{{#if: {{{category|}}}
 
</div></div>{{#if: {{{category|}}}
 
|{{Category|name={{{category|}}}}}
 
|{{Category|name={{{category|}}}}}
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 14:30, 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}}


tools
next
{{PageSequence
|prev=Template:Icon
|next=Template:Link
|category=Template
|categoryIcon=document
}}


previous
Template
next

Properties