个人工具

模板:Extension DPL/pager

出自Meshal Lite

< 模板:Extension DPL(修订版本间的差异)
跳转到: 导航, 搜索
 
(由1名用户作出的12个中途修订版本未被显示)
第1行: 第1行:
 
<includeonly><!--
 
<includeonly><!--
--><table class="DPLPager"><tr><td style="padding: .1em .7em .2em .7em;"><!--
+
--><div class="DPLPager"><table><tr><td style="padding: .1em .7em .2em .7em;"><!--
  
 
-->{{#ifeq:dn{{{pages|0}}}|{{{dir|?}}}{{{total|0}}}|<span style="padding-right: 24px;">⇤</span><span style="padding-right: 24px;">⇠</span>|{{#if:{{{dir|}}}|
 
-->{{#ifeq:dn{{{pages|0}}}|{{{dir|?}}}{{{total|0}}}|<span style="padding-right: 24px;">⇤</span><span style="padding-right: 24px;">⇠</span>|{{#if:{{{dir|}}}|
 
<span class="plainlinks" style="padding-right: 24px;">[{{fullurl:{{{page}}}}} ⇤]</span><span class="plainlinks" style="padding-right: 24px; font-weight: bold">[{{fullurl:{{{page}}}|DPL_scrollDir=dn&DPL_count={{{count|}}}&DPL_toTitle={{urlencode:{{{firsttitle|~}}}}} ⇠]</span>|}}|<span style="padding-right: 24px;">⇤</span><span style="padding-right: 24px;">⇠</span>}}}}<!--
 
<span class="plainlinks" style="padding-right: 24px;">[{{fullurl:{{{page}}}}} ⇤]</span><span class="plainlinks" style="padding-right: 24px; font-weight: bold">[{{fullurl:{{{page}}}|DPL_scrollDir=dn&DPL_count={{{count|}}}&DPL_toTitle={{urlencode:{{{firsttitle|~}}}}} ⇠]</span>|}}|<span style="padding-right: 24px;">⇤</span><span style="padding-right: 24px;">⇠</span>}}}}<!--
  
-->{{#ifeq:up{{{pages|0}}}|{{{dir|?}}}{{{total|0}}}|<span style="padding-right: 24px;">⇢</span>|
+
-->{{#ifeq:{{{dir|?}}}||{{#ifexpr:{{{pages|0}}} >= {{{total|0}}}|<span style="padding-right: 24px;">⇢</span>|<span class="plainlinks" style="padding-right: 24px; font-weight: bold">[{{fullurl:{{{page}}}|DPL_scrollDir=up&DPL_count={{{count|}}}&DPL_fromTitle={{urlencode:{{{lasttitle|~}}}}}}} ⇢]</span>}}|{{#ifeq:up{{{pages|0}}}|{{{dir|?}}}{{{total|0}}}|<span style="padding-right: 24px;">⇢</span>|
<span class="plainlinks" style="padding-right: 24px; font-weight: bold">[{{fullurl:{{{page}}}|DPL_scrollDir=up&DPL_count={{{count|}}}&DPL_fromTitle={{urlencode:{{{lasttitle|~}}}}}}} ⇢]</span>}}<!--
+
<span class="plainlinks" style="padding-right: 24px; font-weight: bold">[{{fullurl:{{{page}}}|DPL_scrollDir=up&DPL_count={{{count|}}}&DPL_fromTitle={{urlencode:{{{lasttitle|~}}}}}}} ⇢]</span>}}}}<!--
  
-->({{{pages|0}}} {{#ifexpr:{{{total|0}}} > {{{pages|0}}} |&nbsp;/ 共 {{#expr:{{{total|0}}}-{{{pages|0}}}}} 条}})
+
--></td></tr></table></div></includeonly><noinclude>{{tpl_helpdoc}}</noinclude>
</td></tr></table></includeonly><noinclude>{{tpl_helpdoc}}</noinclude>
+

在2019年11月6日 (三) 13:57的最新修订版本

编辑简介内容Template to continue a query at a certain title; expects scroll direction and first / last page of previous query. 编辑帮助内容 这个模板会被其他模块自动调用,无需手动使用。