个人工具

模板:Database detail

出自Meshal Lite

跳转到: 导航, 搜索
第5行: 第5行:
 
|style="border:none;"|{{#dpl:debug=0|includesubpages={{{subpage|{{{6|false}}}}}}|namespace={{ucfirst:{{{namespace|{{{1|}}}}}}}}|category={{{category|{{{2|}}}}}}|shownamespace=false|format=,²{:%PAGE%¦call={{{call|{{{7|1}}}}}}}²,,|columns=1|count={%DPL_count:{{{count|{{{5|50}}}}}}%}|scroll=yes|resultsheader = ²{database_nav¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page=²{FULLPAGENAME}²}²\n|resultsfooter = ²{database_nav¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page=²{FULLPAGENAME}²}²\n}}
 
|style="border:none;"|{{#dpl:debug=0|includesubpages={{{subpage|{{{6|false}}}}}}|namespace={{ucfirst:{{{namespace|{{{1|}}}}}}}}|category={{{category|{{{2|}}}}}}|shownamespace=false|format=,²{:%PAGE%¦call={{{call|{{{7|1}}}}}}}²,,|columns=1|count={%DPL_count:{{{count|{{{5|50}}}}}}%}|scroll=yes|resultsheader = ²{database_nav¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page=²{FULLPAGENAME}²}²\n|resultsfooter = ²{database_nav¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page=²{FULLPAGENAME}²}²\n}}
 
|}
 
|}
 
{{#vardefine:count|{{{count|{{{5|50}}}}}}}}{{#vardefine:thispage|:{{FULLPAGENAME}}}}
 
{{#dpl:
 
|namespace={{ucfirst:{{{namespace|{{{1|}}}}}}}}
 
|category={{{category|{{{2|}}}}}
 
|count={{#var:count}}
 
|includesubpages={{{subpage|{{{6|false}}}}}}
 
|mode=userformat
 
|format=,²{:%PAGE%¦call={{{call|{{{7|1}}}}}}}²,,
 
|offset={{{offset|0}}}
 
|resultsfooter=
 
  ²{#ifexpr:%TOTALPAGES% > {{#var:count}}¦
 
\n-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --<br/>
 
  {{#ifexpr:{{{offset|0}}} > 0|
 
    [[Special:Call/{{#var:thispage}},offset={{#expr:{{{offset}}} - {{#var:count}}}}¦{{#expr:{{{offset}}} - {{#var:count}} + 1}}..{{{offset}}}]] 
 
  }}
 
  '''{{#expr:{{{offset|0}}} + 1}}..{{#expr:{{{offset|0}}} + {{#var:count}}}}''' 
 
  ²{#ifexpr:%TOTALPAGES% - {{#var:count}} > {{{offset|0}}}¦
 
    ²{#ifexpr:%TOTALPAGES% - 2 * {{#var:count}} <= {{{offset|0}}}¦
 
    [[Special:Call/{{#var:thispage}},offset={{#expr:{{{offset|0}}} + {{#var:count}}}}|{{#expr:{{{offset|0}}} + {{#var:count}} + 1}}..%TOTALPAGES%]]¦
 
    [[Special:Call/{{#var:thispage}},offset={{#expr:{{{offset|0}}} + {{#var:count}}}}|{{#expr:{{{offset|0}}} + {{#var:count}} + 1}}..{{#expr:{{{offset|0}}} + 2 * {{#var:count}}}}]]
 
    }²
 
  }²
 
    [[{{#var:thispage}}|reset]]    (total %TOTALPAGES%)
 
  }²
 
|noresultsfooter=no more results<br/>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --<br/>
 
  ²{#ifexpr:{{{offset|0}}} > 0¦
 
  [[Special:Call/{{#var:thispage}},offset={{#expr:{{{offset}}} - {{#var:count}}}}¦{{#expr:{{{offset}}} - {{#var:count}} + 1}}..%TOTALPAGES%]]  }²
 
    [[{{#var:thispage}}|''reset'']]
 
}}
 
 
</includeonly><noinclude>[[category:编辑]][[category:模板]]
 
</includeonly><noinclude>[[category:编辑]][[category:模板]]
  

在2013年11月28日 (四) 15:51所做的修订版本