Difference between revisions of "Template:PageFlipper"

From Disobiki
Jump to navigation Jump to search
(Created page with '<includeonly><div class="pageflipper"><div class="prev">{{#if:{{{prev|}}} | '''[[{{{prev}}}|←]]'''<br />[[{{{prev}}}]] | '''←'''<br />- }}</div><div class="next">{{…')
 
 
(25 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly><div class="pageflipper"><div class="prev">{{#if:{{{prev|}}} | '''[[{{{prev}}}|&#x2190;]]'''<br />[[{{{prev}}}]] | '''&#x2190;'''<br />- }}</div><div class="next">{{#if:{{{next|}}} | '''[[{{{next}}}|&#x2192;]]'''<br />[[{{{next}}}]] | '''&#x2192;'''<br />- }}</div></div></includeonly>
+
<includeonly><div class="pageflipper">{{#if:{{{first|}}}||<div class="prev"><div class="glyph">[[{{BASEPAGENAME}}/{{#expr:{{SUBPAGENAME}}-1}}|&#x2190;]]</div><div class="text">[[{{BASEPAGENAME}}/{{#expr:{{SUBPAGENAME}}-1}}]]</div></div>}}
 +
{{#if:{{{last|}}}||<div class="next"><div class="glyph">[[{{BASEPAGENAME}}/{{{next|{{#expr:{{SUBPAGENAME}}+1}}}}}|&#x2192;]]</div><div class="text">[[{{BASEPAGENAME}}/{{{next|{{#expr:{{SUBPAGENAME}}+1}}}}}]]</div></div>}}</div>
 +
</includeonly><noinclude>
 +
Use this template to place next and previous links on a page.
 +
<br />If the SUBPAGENAME is a number, then we'll +/- automatically.
 +
 
 +
==Usage==
 +
 
 +
<pre>
 +
{{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.
 +
}}</pre>
 +
 
 +
[[Category:Templates]]

Latest revision as of 11:02, 5 June 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.
}}