Template:Prevnext: Difference between revisions
From Body Communication
SadanYagci (talk | contribs) m (1 revision imported) |
SadanYagci (talk | contribs) (Changed functionality to move between pages instead of between subpages) |
||
Line 1: | Line 1: | ||
<div style="display:flex; border:1px solid #bbb; background-color:#efefef; padding:0.3em"> | <div style="display:flex; border:1px solid #bbb; background-color:#efefef; padding:0.3em"> | ||
<div style="flex:1; order:1">{{#if: {{{ | <div style="flex:1; order:1">{{#if: {{{1|}}} | [[{{{1}}}|←]] [[{{{1}}}]] }}</div> | ||
<div style="flex:1; order:3; text-align:right">{{#if: {{{2|}}} | [[{{{}}}]] [[{{{2}}}|→]] }}</div> | |||
<div style="flex:1; order:3; text-align:right">{{#if: {{{ | |||
</div><noinclude> | </div><noinclude> | ||
Line 9: | Line 8: | ||
==Usage== | ==Usage== | ||
<nowiki>{{Prevnext | <nowiki>{{Prevnext|prev|next}} </nowiki> | ||
E.G. | E.G. | ||
:<nowiki>{{prevnext| | :<nowiki>{{prevnext|Introduction|Conversing with Your Body}}</nowiki> | ||
{{prevnext|User talk:SmackBot/archive|1|3}} | {{prevnext|User talk:SmackBot/archive|1|3}} | ||
Line 18: | Line 17: | ||
Where there is no previous (or no next) the parameter may be left empty. | Where there is no previous (or no next) the parameter may be left empty. | ||
E.G. | E.G. | ||
:<nowiki>{{prevnext| | :<nowiki>{{prevnext||Introduction}}</nowiki> | ||
{{prevnext| | {{prevnext||Introduction}} | ||
==Todo== | ==Todo== | ||
#add pretty buttons | #add pretty buttons | ||
== References == | == References == | ||
[https://prevnext.org/ PrevNext – What is This? How To Use It And Examples Of Prev Next] | [https://prevnext.org/ PrevNext – What is This? How To Use It And Examples Of Prev Next] | ||
</noinclude> | </noinclude> |
Revision as of 15:33, 28 September 2021
A quick template for cycling through a sequence of pages:
Usage
{{Prevnext|prev|next}}
E.G.
- {{prevnext|Introduction|Conversing with Your Body}}
[[{{{}}}]] →
Where there is no previous (or no next) the parameter may be left empty. E.G.
- {{prevnext||Introduction}}
[[{{{}}}]] →
Todo
- add pretty buttons
References
PrevNext – What is This? How To Use It And Examples Of Prev Next