Difference between revisions of "Template:Prevnext"

From Lorekeeper Wiki
Jump to navigation Jump to search
m (Fixed, gonna move doc soon)
m (Adding doc)
 
Line 4: Line 4:
 
<div style="flex:1; order:3; text-align:right">{{#if: {{{3|}}} | [[{{{1}}}{{{3}}}|Next &rarr;]] }}</div>
 
<div style="flex:1; order:3; text-align:right">{{#if: {{{3|}}} | [[{{{1}}}{{{3}}}|Next &rarr;]] }}</div>
 
</div>
 
</div>
 +
<noinclude>
 +
{{documentation}}
 +
</noinclude>

Latest revision as of 13:05, 25 March 2024

50px Template documentation[view] [edit] [history] [purge]

A quick template for cycling through a sequence of pages:

Usage

{{Prevnext|base page name|prev extension|next extension}}

E.G.

{{prevnext|User talk:SmackBot/archive|1|3}}


Where there is no previous (or no next) the parameter may be left empty. E.G.

{{prevnext|User talk:SmackBot/archive||2}}


Where the previous is the base page, use an "_". E.G.

{{prevnext|User talk:SmackBot/archive|_|3}}


Todo

  1. add pretty buttons
  2. add ifexist clauses
  3. add "up", first, last?
  4. If and when rel attributes are enabled in MediaWiki, add prev and next values, etc., to links.

References

PrevNext – What is This? How To Use It And Examples Of Prev Next Template:Uncat