Difference between revisions of "Template:Extension DPL scroll"
From FollowTheScore
(New page: <noinclude>Template to scroll through DPL result pages</noinclude><includeonly><!-- -->{{#ifexpr:{{{total}}} > {{{count}}}|<table><tr><td bgcolor=#e7e7e7>{{#ifexpr:{{{offset}}} > 0| ...) |
|||
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}}} > {{{count}}}|<table><tr><td bgcolor=#e7e7e7>{{#ifexpr:{{{offset}}} > 0| | + | -->{{#ifexpr:{{{total|0}}} > {{{count|100}}}|<table><tr><td bgcolor=#e7e7e7>{{#ifexpr:{{{offset|0}}} > 0| |
− | {{#vardefine:lwrbound|{{#ifexpr:{{#expr:{{{offset}}} - {{{count}}}}} < 0|0|{{#expr:{{{offset}}} - {{{count}}}}}}}}}<!-- | + | {{#vardefine:lwrbound|{{#ifexpr:{{#expr:{{{offset|0}}} - {{{count|100}}}}} < 0|0|{{#expr:{{{offset|0}}} - {{{count|100}}}}}}}}}<!-- |
− | -->[http://{{SERVERNAME}}{{SCRIPTPATH}}/index.php?title={{#urlencode:{{{page}}}}}&DPL_offset={{#var:lwrbound}} {{#expr:{{#var:lwrbound}} + 1}}..{{{offset}}}] }}<!-- | + | -->[http://{{SERVERNAME}}{{SCRIPTPATH}}/index.php?title={{#urlencode:{{{page}}}}}&DPL_count={{{count|100}}}&DPL_offset={{#var:lwrbound}} {{#expr:{{#var:lwrbound}} + 1}}..{{{offset|0}}}] }}<!-- |
− | -->'''{{#expr:{{{offset}}} + 1}}..{{#expr:{{{offset}}} + {{{count}}}}}''' <!-- | + | -->'''{{#expr:{{{offset|0}}} + 1}}..{{#expr:{{{offset|0}}} + {{{count|100}}}}}''' <!-- |
− | -->{{#ifexpr:{{{total}}} - {{{count}}} > {{{offset}}}| | + | -->{{#ifexpr:{{{total|0}}} - {{{count|100}}} > {{{offset|0}}}| |
− | {{#ifexpr:{{{total}}} - 2 * {{{count}}} <= {{{offset}}}| | + | {{#ifexpr:{{{total|0}}} - 2 * {{{count|100}}} <= {{{offset|0}}}| |
− | [http://{{SERVERNAME}}{{SCRIPTPATH}}/index.php?title={{#urlencode:{{{page}}}}}&DPL_offset={{#expr:{{{offset}}} + {{{count}}}}} {{#expr:{{{offset}}} + {{{count}}} + 1}}..{{{total}}}] | | + | [http://{{SERVERNAME}}{{SCRIPTPATH}}/index.php?title={{#urlencode:{{{page}}}}}&DPL_count={{{count|100}}}&DPL_offset={{#expr:{{{offset|0}}} + {{{count|100}}}}} {{#expr:{{{offset|0}}} + {{{count|100}}} + 1}}..{{{total|0}}}] | |
− | [http://{{SERVERNAME}}{{SCRIPTPATH}}/index.php?title={{#urlencode:{{{page}}}}}&DPL_offset={{#expr:{{{offset}}} + {{{count}}}}} {{#expr:{{{offset}}} + {{{count}}} + 1}}..{{#expr:{{{offset}}} + 2 * {{{count}}}}}] }}<!-- | + | [http://{{SERVERNAME}}{{SCRIPTPATH}}/index.php?title={{#urlencode:{{{page}}}}}&DPL_count={{{count|100}}}&DPL_offset={{#expr:{{{offset|0}}} + {{{count|100}}}}} {{#expr:{{{offset|0}}} + {{{count|100}}} + 1}}..{{#expr:{{{offset|0}}} + 2 * {{{count|100}}}}}] }}<!-- |
− | --> (total {{{total}}}) }}</td></tr></table>}}</includeonly> | + | --> (total {{{total|0}}}) }}</td></tr></table>}}</includeonly> |
Revision as of 20:11, 12 June 2009
Template to scroll through DPL result pages