Difference between revisions of "Template:PageSequence"

From Openresearch
Jump to: navigation, search
(pushed from http://master.bitplan.com)
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>__NOCACHE__<!-- THIS FILE IS PROTECTED - smartGENERATOR WILL NOT OVERWRITE IT -->{{TemplateSequence
+
<noinclude>__NOCACHE__<!-- THIS FILE IS PROTECTED - smartGENERATOR WILL NOT OVERWRITE IT -->
|prev=Template:PageBreak
 
|next=Template:PdfBook
 
}}
 
 
This is the PageSequence template it allows for prev/next style page sequences to displayed with icons. See [[Template:Icon]]
 
This is the PageSequence template it allows for prev/next style page sequences to displayed with icons. See [[Template:Icon]]
  
Line 15: Line 12:
 
=== example ===
 
=== example ===
 
<pre>
 
<pre>
{{PageSequence|prev=|next=bash|category=tools|categoryIcon=linux}}
+
{{PageSequence|prev=|next=ImageJ|category=tools|categoryIcon=tuxBlue}}
 
</pre>
 
</pre>
  
{{PageSequence|prev=|next=bash|category=tools|categoryIcon=linux}}
+
{{PageSequence|prev=|next=ImageJ|category=tools|categoryIcon=tuxBlue}}
 
<pre>
 
<pre>
 
{{PageSequence
 
{{PageSequence
Line 24: Line 21:
 
|next=Template:Link
 
|next=Template:Link
 
|category=Template
 
|category=Template
|categoryIcon=file-text-o
+
|categoryIcon=document
 
}}
 
}}
 
</pre>
 
</pre>
Line 32: Line 29:
 
|next=Template:Link
 
|next=Template:Link
 
|category=Template
 
|category=Template
|categoryIcon=file-text-o
+
|categoryIcon=document
 
}}
 
}}
  
Line 48: 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|}}}}}
        |<imgLink img='{{Icon|name=nav_left_blue|title=previous}}'>{{{prev|}}}</imgLink>
+
    |{{Icon|name=prevRed|title=previous}}
        |<imgLink img='{{Icon|name=nav_left_red|title=previous}}'>{{{prev|}}}</imgLink>}}
+
    }}}}
    }}
 
 
   </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|}}}
      |<imgLink img='{{Icon|name={{{categoryIcon|}}}|title={{{category|}}}}}'>:Category:{{{category|}}}</imgLink>
+
    |{{Icon|name={{{categoryIcon|}}}|title={{{category|}}}|link=:Category:{{{category|}}}}}
      }}
+
    }}
 
     </div>
 
     </div>
    <div style="display: table-row;">{{Icon|name=edit|size=16}}{{Link|target=Special:FormEdit/PageSequence/{{FULLPAGENAME}}|title=edit}}</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|}}}}}
           |<imgLink img='{{Icon|name=nav_right_blue|title=next}}'>{{{next|}}}</imgLink>
+
           |{{Icon|name=nextRed|title=next}}
           |<imgLink img='{{Icon|name=nav_right_red|title=next}}'>{{{next|}}}</imgLink>
+
         }}}}
         }}
 
    }}
 
 
   </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