Difference between revisions of "Template:Extension DPL continue"

From FollowTheScore
Jump to: navigation, search
m (MW 1.14+ uses {{urlencode:}})
(left = total - displayed pages)
 
Line 8: Line 8:
 
<span class="plainlinks" style="padding-right: 24px; font-weight: bold">[{{fullurl:{{{page}}}|DPL_scrollDir=up&DPL_count={{{count|}}}&DPL_fromTitle={{#urlencode:{{{lasttitle|~}}}}}}} next]</span>}}<!--
 
<span class="plainlinks" style="padding-right: 24px; font-weight: bold">[{{fullurl:{{{page}}}|DPL_scrollDir=up&DPL_count={{{count|}}}&DPL_fromTitle={{#urlencode:{{{lasttitle|~}}}}}}} next]</span>}}<!--
  
-->({{{pages|0}}} listed{{#ifexpr:{{{total|}}}-{{{pages|0}}} > 0|&nbsp;/ {{{total|0}}} left}})
+
-->({{{pages|0}}} listed{{#ifexpr:{{{total|0}}} > {{{pages|0}}} |&nbsp;/ {{#expr:{{{total|0}}}-{{{pages|0}}}}} left}})
 
</td></tr></table></includeonly>
 
</td></tr></table></includeonly>

Latest revision as of 17:53, 6 July 2009

Template to continue a query at a certain title; expects scroll direction and first / last page of previous query.
Note: MW 1.14+ uses {{urlencode:}} instead of {{#urlencode:}}.