Paging
From MusicTechWiki
This template adds a Prev and Next bar wherever the template is places in an article. Here is the code.
{{-}} <div id="paging" class="panel" style="border: 0;border-top: 1px solid #ddd;padding: 0;background: linear-gradient(to bottom,#f3f3f3,#fff);margin-bottom: 1em;"><div class="paging-center" style="text-align: center;">{{#ifeq:{{{1}}}|home|{{#widget:Paging Button|url={{localurl:{{NAMESPACE}}:{{BASEPAGENAME}}}}|text=Start|previous}}|{{#ifeq: {{#sub:{{{1}}}|0|6}} | Module | {{#widget:Paging Button|url={{localurl:{{NAMESPACE}}:{{{1}}}}}|text=Previous Module|previous}}|{{#if:{{{1}}}|{{#widget:Paging Button|url={{localurl:{{NAMESPACE}}:{{BASEPAGENAME}}/{{{1}}}}}|text=Previous|previous}}||}} }} }} {{#ifeq:{{{2}}}|home|{{#widget:Paging Button|url={{localurl:{{NAMESPACE}}:{{BASEPAGENAME}}}}|text=Return to Start|next}}|{{#ifeq: {{#sub:{{{2}}}|0|6}} | Module | {{#widget:Paging Button|url={{localurl:{{NAMESPACE}}:{{{2}}}}}|text={{{2}}}|next}}|{{#if:{{{2}}}|{{#widget:Paging Button|url={{localurl:{{NAMESPACE}}:{{BASEPAGENAME}}/{{{2}}}}}|text=Next|next}}||}} }} }}</div> </div> {{-}}
Use
This only works with subpages Pagename/subpage-name
. Must use, previous and next in order. For example, add -
{{paging|previous-subpage-name|next-subpage-name}}
The template gathers the Namespace and Top Level Pagename to construct links to Pagename/previous-subpage-name and Pagename/next-subpage-name
You may use "home" which will create a link to the Top Level Pagename
{{paging|home|next-subpage-name}}
This will create links to Pagename and Pagename/next-subpage-name
Example
Click through for an example of this template in use.
{{paging||01}}
Shows this:
9
Module
equal