Difference between revisions of "Template:PageFlipper"

From Disobiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly><div class="pageflipper"><div class="prev">{{#if:{{{first|}}}|-|'''[[{{#expr:{{SUBPAGENAME}}-1}}|&#x2190;]]'''<br />[[{{#expr:{{SUBPAGENAME}}-1}}]]}}</div><div class="next">{{#if:{{{last|}}}|-|'''[[{{{next|{{#expr:{{SUBPAGENAME}}+1}}}}}|&#x2192;]]'''<br />[[{{{next|{{#expr:{{SUBPAGENAME}}+1}}}}}]]}}</div></div></includeonly><noinclude>
 
<includeonly><div class="pageflipper"><div class="prev">{{#if:{{{first|}}}|-|'''[[{{#expr:{{SUBPAGENAME}}-1}}|&#x2190;]]'''<br />[[{{#expr:{{SUBPAGENAME}}-1}}]]}}</div><div class="next">{{#if:{{{last|}}}|-|'''[[{{{next|{{#expr:{{SUBPAGENAME}}+1}}}}}|&#x2192;]]'''<br />[[{{{next|{{#expr:{{SUBPAGENAME}}+1}}}}}]]}}</div></div></includeonly><noinclude>
 
Use this template to place next and previous links on a page.
 
Use this template to place next and previous links on a page.
 +
<br />If the SUBPAGENAME is a number, then we'll +/- automatically.
  
 
==Usage==
 
==Usage==
Line 6: Line 7:
 
<pre>
 
<pre>
 
{{PageFlipper
 
{{PageFlipper
| prev          =  
+
| prev          = Unlinked page name for the previous entry.
| next          =  
+
| next          = Unlinked page name for the next entry.
 +
| first          = If defined, no previous entry link will be shown.
 +
| last          = If defined, no next entry link will be shown.
 
}}</pre>
 
}}</pre>
  
 
[[Category:Templates]]
 
[[Category:Templates]]

Revision as of 12:42, 22 April 2010

Use this template to place next and previous links on a page.
If the SUBPAGENAME is a number, then we'll +/- automatically.

Usage

{{PageFlipper
| prev           = Unlinked page name for the previous entry.
| next           = Unlinked page name for the next entry.
| first          = If defined, no previous entry link will be shown.
| last           = If defined, no next entry link will be shown.
}}