个人工具

模板:Database nav

出自Meshal Lite

跳转到: 导航, 搜索
第1行: 第1行:
<includeonly>{{{sum|0}}}<!--
+
<includeonly><!--
 
--><table width=100%><tr><td style="background-color: #f9f9f9; padding: .1em .7em .2em .7em;" align="right"><!--
 
--><table width=100%><tr><td style="background-color: #f9f9f9; padding: .1em .7em .2em .7em;" align="right"><!--
  
-->
+
-->{{#ifeq:dn{{{pages|0}}}|{{{dir|?}}}{{{total|0}}}||{{#if:{{{dir|}}}|
 
+
{{#switch: {{{dir|}}}
+
|=<span style="padding-right: 24px;">第一页</span>
+
|up=<span class="plainlinks" style="padding-right: 24px;">[{{fullurl:{{{page}}}}} 第一页]</span>
+
|dn={{#ifeq: {{{pages|0}}}|{{{total|0}}}|<span style="padding-right: 24px;">第一页</span>|<span class="plainlinks" style="padding-right: 24px;">[{{fullurl:{{{page}}}}} 第一页]</span>}}
+
}}
+
{{#vardefine:previous|{{#switch:{{{dir|}}}
+
|up={{#ifexpr: {{{total|0}}}<{{{sum|0}}}|1|0}}
+
|dn={{#ifexpr: {{{total|0}}}<{{{sum|0}}}|1|0}}
+
|0
+
}}}}
+
 
+
{{#ifeq:{{#var:previous}}|0|上一页|<span class="plainlinks" style="padding-right: 24px; font-weight: bold">[{{fullurl:{{{page}}}|DPL_scrollDir=dn&DPL_count={{{count|}}}&DPL_toTitle={{urlencode:{{{firsttitle|~}}}}} 上一页]</span>}}}}
+
 
+
 
+
 
+
{{#ifeq:dn{{{pages|0}}}|{{{dir|?}}}{{{total|0}}}||{{#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>}}}}<!--
  

在2015年1月10日 (六) 14:15所做的修订版本