Difference between revisions of "User:Subfader/Navi/ScrollT"

From FollowTheScore
Jump to: navigation, search
Line 1: Line 1:
 
<noinclude>Template to scroll through DPL result pages</noinclude><includeonly><!--
 
<noinclude>Template to scroll through DPL result pages</noinclude><includeonly><!--
-->{{#ifexpr:{{{total|0}}} > {{{count|100}}}|<table><tr><td style="background-color: #f9f9f9; padding: .1em .6em;">{{#ifexpr:{{{offset|0}}} > 0|
+
--><table><tr><td style="background-color: #f9f9f9; padding: .1em .7em;"><!--
 +
-->{{#ifexpr:{{{total|0}}} > {{{count|100}}}|{{#ifexpr:{{{offset|0}}} > 0|
 
{{#vardefine:lwrbound|{{#ifexpr:{{#expr:{{{offset|0}}} - {{{count|100}}}}} < 0|0|{{#expr:{{{offset|0}}} - {{{count|100}}}}}}}}}<!--
 
{{#vardefine:lwrbound|{{#ifexpr:{{#expr:{{{offset|0}}} - {{{count|100}}}}} < 0|0|{{#expr:{{{offset|0}}} - {{{count|100}}}}}}}}}<!--
 
--><span class="plainlinks" style="padding-right: 24px; font-weight: bold">[{{fullurl:{{{page}}}|DPL_count={{{count|100}}}&DPL_offset={{#var:lwrbound}}}} {{#expr:{{#var:lwrbound}} + 1}}..{{{offset|0}}}]</span>}}<!--
 
--><span class="plainlinks" style="padding-right: 24px; font-weight: bold">[{{fullurl:{{{page}}}|DPL_count={{{count|100}}}&DPL_offset={{#var:lwrbound}}}} {{#expr:{{#var:lwrbound}} + 1}}..{{{offset|0}}}]</span>}}<!--
Line 8: Line 9:
 
     <span class="plainlinks" style="padding-right: 24px; font-weight: bold">[{{fullurl:{{{page}}}|DPL_count={{{count|100}}}&DPL_offset={{#expr:{{{offset|0}}} + {{{count|100}}}}} {{#expr:{{{offset|0}}} + {{{count|100}}} + 1}}}}..{{{total|0}}}]</span>|
 
     <span class="plainlinks" style="padding-right: 24px; font-weight: bold">[{{fullurl:{{{page}}}|DPL_count={{{count|100}}}&DPL_offset={{#expr:{{{offset|0}}} + {{{count|100}}}}} {{#expr:{{{offset|0}}} + {{{count|100}}} + 1}}}}..{{{total|0}}}]</span>|
 
     <span class="plainlinks" style="padding-right: 24px; font-weight: bold">[{{fullurl:{{{page}}}|DPL_count={{{count|100}}}&DPL_offset={{#expr:{{{offset|0}}} + {{{count|100}}}}} {{#expr:{{{offset|0}}} + {{{count|100}}} + 1}}}}..{{#expr:{{{offset|0}}} + 2 * {{{count|100}}}}}]</span>}}<!--
 
     <span class="plainlinks" style="padding-right: 24px; font-weight: bold">[{{fullurl:{{{page}}}|DPL_count={{{count|100}}}&DPL_offset={{#expr:{{{offset|0}}} + {{{count|100}}}}} {{#expr:{{{offset|0}}} + {{{count|100}}} + 1}}}}..{{#expr:{{{offset|0}}} + 2 * {{{count|100}}}}}]</span>}}<!--
--><span class="plainlinks" style="padding-right: 24px;">[{{fullurl:{{{page}}}}} reset]</span>({{{pages|0}}} listed {{#if:{{{total|}}}|/ {{{total|0}}} left}})
+
--><span class="plainlinks" style="padding-right: 24px;">[{{fullurl:{{{page}}}}} reset]</span>({{{pages|0}}} listed {{#if:{{{total|}}}|/ {{{total|0}}} left}})}}<!--
}}</td></tr></table>}}</includeonly>
+
-->}}<!--
 +
--></td></tr></table></includeonly>

Revision as of 02:00, 6 July 2009

Template to scroll through DPL result pages