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

From FollowTheScore
Jump to: navigation, search
(New page: <noinclude>Template to scroll through DPL result pages</noinclude><includeonly><!-- -->{{#ifexpr:{{{total|0}}} > {{{count|100}}}|<table><tr><td bgcolor=#e7e7e7>{{#ifexpr:{{{offset|0}}} > 0...)
 
Line 2: Line 2:
 
-->{{#ifexpr:{{{total|0}}} > {{{count|100}}}|<table><tr><td bgcolor=#e7e7e7>{{#ifexpr:{{{offset|0}}} > 0|&nbsp;
 
-->{{#ifexpr:{{{total|0}}} > {{{count|100}}}|<table><tr><td bgcolor=#e7e7e7>{{#ifexpr:{{{offset|0}}} > 0|&nbsp;
 
{{#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}}}}}}}}}<!--
-->[{{fullurl:{{{page}}}|DPL_count={{{count|100}}}&DPL_offset={{#var:lwrbound}}}} {{#expr:{{#var:lwrbound}} + 1}}..{{{offset|0}}}] &nbsp; &nbsp; }}<!--
+
--><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>}}<!--
-->'''{{#expr:{{{offset|0}}} + 1}}..{{#expr:{{{offset|0}}} + {{{count|100}}}}}''' &nbsp; &nbsp; <!--
+
--><span style="padding-right: 24px; font-weight: bold">{{#expr:{{{offset|0}}} + 1}}..{{#expr:{{{offset|0}}} + {{{count|100}}}}}</span><!--
 
-->{{#ifexpr:{{{total|0}}} - {{{count|100}}} > {{{offset|0}}}|
 
-->{{#ifexpr:{{{total|0}}} - {{{count|100}}} > {{{offset|0}}}|
 
     {{#ifexpr:{{{total|0}}} - 2 * {{{count|100}}} <= {{{offset|0}}}|
 
     {{#ifexpr:{{{total|0}}} - 2 * {{{count|100}}} <= {{{offset|0}}}|
     [{{fullurl:{{{page}}}|DPL_count={{{count|100}}}&DPL_offset={{#expr:{{{offset|0}}} + {{{count|100}}}}} {{#expr:{{{offset|0}}} + {{{count|100}}} + 1}}}}..{{{total|0}}}] &nbsp; &nbsp; |
+
     <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>|
     [{{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}}}}}] &nbsp; &nbsp; }}<!--
+
     <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>}}<!--
 
--> (total {{{total|0}}}) &nbsp;}}</td></tr></table>}}</includeonly>
 
--> (total {{{total|0}}}) &nbsp;}}</td></tr></table>}}</includeonly>

Revision as of 00:42, 6 July 2009

Template to scroll through DPL result pages