Difference between revisions of "Template:Catlist/test"

From FollowTheScore
Jump to: navigation, search
(Redirecting to Template:Catlist/zh 2)
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
正體中文(Tradition Chinese),僅供參考(for reference only),歡迎您一起參與修訂(Welcome to edit it)。
+
#REDIRECT [[Template:Catlist/zh 2]]
{{#form:  name= demo | action=/dpldemo/index.php|
 
{{#input: name= title | type= hidden | value = Special:Call/Catlist/test}}
 
<table cellpadding=2 cellspacing=0 margins=0 width=100% border rules=cols>
 
<tr valign=top><td width=30%  colspan="3">
 
'''資料選取(Selecting data):'''
 
<table cellpadding=0 cellspacing=0 margins=0>
 
<tr>
 
<td align="right">名字空間(namespace)</td>
 
<td>&nbsp;{{#input: name=namespace | type=select | value = {{{namespace|}}} |<!-- *? {{#dpl: namespace=* | format=,\n*%TITLE%,, }}-->
 
*all
 
*main
 
*Talk
 
*Template
 
*Category
 
*Image
 
*User
 
*DPL
 
*Wgraph
 
}}
 
</td>
 
<td align="right">但非(not)</td>
 
<td>&nbsp;{{#input: name=notnamespace | type=select | value = {{{notnamespace|}}} |
 
*-
 
*main
 
*Talk
 
*Template
 
*Category
 
*Image
 
*User
 
*DPL
 
*Wgraph
 
}}
 
</td>
 
</tr>
 
<!-------------------->
 
<tr>
 
<td align="right">分類(category)</td>
 
<td>&nbsp;{{#input: name=category | value = {{{category|}}} | type=select | *? {{#dpl: namespace=Category | format=,\n*%TITLE%,,}}}}
 
</td>
 
<td align="right">但非(not)</td>
 
<td>&nbsp;{{#input: name=notcategory | value = {{{notcategory|}}} | type= select | *? {{#dpl: namespace=Category | format = ,\n*%TITLE%,,}}}}
 
</td>
 
</tr>
 
<!-------------------->
 
<tr>
 
<td align="right">分類2(and category)</td>
 
<td>&nbsp;{{#input: name= category2
 
                  |value = {{{category2|}}}
 
                  |type= select
 
                  |*? {{#dpl: namespace=Category | format=,\n*%TITLE%,, }} }}
 
</td>
 
<td align="right"> and not </td>
 
<td>&nbsp;{{#input: name= notcategory2
 
                  |value = {{{notcategory2|}}}
 
                  |type= select
 
                  |*? {{#dpl: namespace=Category | format = ,\n*%TITLE%,, }} }}
 
</td>
 
</tr>
 
<!-------------------->
 
<tr>
 
<td align="right">內嵌樣板(Template)</td>
 
<td>&nbsp;{{#input: name=uses | value = {{{uses|}}} | type=select | *? {{#dpl: namespace=Template | format=,\n*%TITLE%,,}}}}</td>
 
<td align="right">但非(not)</td>
 
<td>&nbsp;{{#input: name=notuses | value = {{{notuses|}}} | type=select | *? {{#dpl: namespace=Template | format=,\n*%TITLE%,,}}}}</td>
 
</tr>
 
<!-------------------->
 
<tr bgcolor="#ffeedd">
 
<td align="right">樣板內部參數,研發中無作用(Arguments of Template, still in develop) </td>
 
<td colspan="3"> &nbsp; {{#input: name=temp_arg |size=35| value = {{{temp_arg|}}}}} 例「國名,首都,電話區碼」 (ex: name,capital,dial)</td>
 
</tr>
 
<!-------------------->
 
<tr>
 
<td align="right">頁面名稱(title; 使用時須加百分號「%」)</td>
 
<td>&nbsp;{{#input: name=titlematch | value = {{{titlematch|}}}}}</td>
 
<td align="right">非此頁面名稱(%)</td>
 
<td>&nbsp;{{#input: name=nottitlematch | value = {{{nottitlematch|}}}}}</td>
 
</tr>
 
<!-------------------->
 
<tr bgcolor="#ffeedd">
 
<td align="right">內含章節名稱(include) </td>
 
<td colspan="3">&nbsp;{{#input: name=include | value = {{{include|}}}}} 例「#章節A,#章節B」 (ex: #Ch A,#Ch B)</td>
 
</tr>
 
<!-------------------->
 
<tr bgcolor="#ffeedd">
 
<td align="right">表格樣式:(table class)</td>
 
<td colspan="3">&nbsp;{{#input: name=class | type=select | value = {{{class|}}} |
 
*-
 
*sortable
 
}}</td>
 
</tr>
 
<!-------------------->
 
<tr bgcolor="#ffeedd">
 
<td align="right">欄位標題(Title of column)</td>
 
<td colspan="3">&nbsp;{{#input: name=table | value = {{{table|}}}}} 例「章節A,章節B」 (ex: Ch A,Ch B)</td>
 
</tr>
 
<!-------------------->
 
<tr>
 
<td align="right">連結至某頁(links to) </td>
 
<td>&nbsp;{{#input: name=linksto | value = {{{linksto|}}} }}
 
</td>
 
<td align="right">(無連結至某頁)not to </td>
 
<td>&nbsp;{{#input: name=notlinksto | value = {{{notlinksto|}}} }}
 
</td>
 
</tr>
 
<!-------------------->
 
<tr>
 
<td align="right"> 頁面創建者(created by) </td>
 
<td>&nbsp;{{#input: name= createdby | value = {{{createdby|}}} |type= select
 
                                      | *? {{#dpl: namespace=User | |titleregexp=^[^/]+$ | format=,\n*%TITLE%,, }} }}
 
</td>
 
<td align="right">&nbsp; 頁面修改者(modified by) </td>
 
<td>&nbsp;{{#input: name= modifiedby | value = {{{modifiedby|}}} |type= select
 
                                      | *? {{#dpl: namespace=User | titleregexp=^[^/]+$ | format=,\n*%TITLE%,, }} }}
 
</td>
 
</tr>
 
<!-------------------->
 
<tr>
 
<td align="right"> 截至某日前最後的版本 last rev. before </td>
 
<td>&nbsp;{{#input: name=lastrevisionbefore | value = {{#if:{{{lastrevisionbefore|}}}|{{{lastrevisionbefore|}}}|YYYY-MM-DD}}}}</td>
 
<td align="right"> 某日後最早的版本 first rev. since </td>
 
<td>&nbsp;{{#input: name=firstrevisionsince | value = {{#if:{{{firstrevisionsince|}}}|{{{firstrevisionsince|}}}|YYYY-MM-DD}}}}</td>
 
</tr>
 
<!-------------------->
 
<tr>
 
<td align="right"> 某日前的所有版本''all revs.'' before</td>
 
<td>&nbsp;{{#input: name=allrevisionsbefore | value = {{#if:{{{allrevisionsbefore|}}}|{{{allrevisionsbefore|}}}|YYYY-MM-DD}}}}</td>
 
<td align="right"> 某日後所有的版本''all revs.'' since</td>
 
<td>&nbsp;{{#input: name=allrevisionssince | value =  {{#if:{{{allrevisionssince|}}}|{{{allrevisionssince|}}}|YYYY-MM-DD}}}}</td>
 
</tr></table>
 
 
 
 
 
</tr>
 
<tr>
 
<!---------------------頁面資訊 Information Display------------------------------->
 
<td valign=top width=15%>
 
'''頁面資訊 Information Display<br>(某些須搭配排序依據使用 <br>Some item must use with some Order Method):'''
 
 
 
{{#input: name=shownamespace | type=checkbox | value = {{{shownamespace|}}}}}名字空間(namespace)<br>
 
{{#input: name=addcategories | type=checkbox | value = {{{addcategories|}}}}}分類(categories)<br>
 
{{#input: name=includesubpages | type=checkbox | value = {{{includesubpages|}}}}}子頁面(subpages)<br>
 
{{#input: name=addpagecounter | type=checkbox | value = {{{addpagecounter|}}}}}瀏覽人氣(visits)<br>
 
{{#input: name=addpagesize | type=checkbox | value = {{{addpagesize|}}}}}頁面字數(size)<br>
 
{{#input: name=adduser | type=checkbox | value = {{{adduser|}}}}}該版本的編輯者(user) <br>
 
{{#input: name=addeditdate | type=checkbox | value = {{{addeditdate|}}}}}該版本的編輯日期(editdate)<br>
 
{{#input: name=addpagetoucheddate | type=checkbox | value = {{{addpagetoucheddate|}}}}}造訪日(touch date)
 
<!-----------------------------排序方法(order method)---------------------------------->
 
<td valign=top width=20%>
 
'''排序方法(order method):'''<br>
 
 
 
 
 
排序依據(sort key)
 
{{#input: name=ordermethod |type=select | value = {{{ordermethod|}}} |
 
*-
 
*category,firstedit
 
*category,lastedit
 
*category,pagetouched
 
*category,sortkey
 
*categoryadd
 
*counter
 
*firstedit
 
*lastedit
 
*pagetouched
 
*size
 
*title
 
*titlewithoutnamespace
 
*user,firstedit
 
*user,lastedit
 
}}
 
升(降)冪(order):{{#input: name=order | type=select | value = {{{order|}}} |
 
*ascending
 
*descending
 
}}
 
{{#input: name=escapelinks | type=checkbox | value = {{{escapelinks|}}}}} 以連結取代顯示圖像(image)或分類(category)頁面 (escapelinks):
 
 
 
{{#input: name=export | type=checkbox | value = {{{export|}}}}}輸出export
 
 
 
<!----------------->
 
<div style="margin:0;background-color:#ddeeff;margin-top:0px;padding:0.3em 0.3em 0.3em 0.3em; border:1px solid #999999;font-size:100%;font-weight:bold;">排序依據說明(order method description):</div>
 
<div style="height:60px; overflow:auto; margin:0; margin-top:0px; padding:0.3em .3em 0.5em 0.3em; border:1px solid #999999; background-color:#ffffdd;">
 
*分類,初次修訂(category,firstedit)
 
*分類,最後修訂(category,lastedit)
 
*分類,瀏覽人氣(category,pagetouched)
 
*分類,排序值(category,sortkey)
 
*最近才加入的分類(categoryadd)
 
*瀏覽人氣(counter)
 
*初次修訂(firstedit)
 
*最後修訂(lastedit)
 
*頁面被瀏覽的時間(pagetouched)
 
*頁面字數(size)
 
*頁面名稱(title)
 
*頁面名稱不含名字空間(titlewithoutnamespace)
 
*作者,首次版本user,firstedit
 
*作者,最終版本user,lastedit
 
</div>
 
<!--------------------->
 
</td>
 
<!-----------------------------版面安排 (Layout)---------------------------------->
 
<td valign=top width=30% valign=top>'''版面安排 (Layout):'''
 
 
 
 
 
欄位數量(columns){{#input: name=columns | type=select | value = {{{columns|}}} |
 
*3
 
*1
 
*2
 
*3
 
*4
 
*5
 
}}
 
下次起始值設定(Next time offset value setting)
 
{{#input: name=offset |{{#ifeq:{{{addup_rec}}}|Yes
 
                                              |value = {{{offset_sum|}}}
 
                                              |value = {{{offset|}}}
 
                      }}
 
                      | size=2
 
}}<br>
 
 
 
輸出筆數(maxrecords)  {{#input: name=count | value = {{{count|}}} | size=2
 
                    }}<br>
 
使用累加紀錄值 {{{offset_sum|}}}(Useing Adding up offset value):
 
{{#input: name=addup_rec | type= select | value = {{{addup_rec|}}} |
 
*No
 
*Yes
 
*No
 
}}<br>
 
{{#input: name=offset_sum
 
  |type= hidden
 
  |value ={{ #expr:{{{offset_sum|0}}}+{{{count|0}}} }}
 
  |size=2
 
}}<br>
 
 
 
隨機選取頁數(randomcount): {{#input: name=randomcount | type= select | value = {{{randomcount|}}} |
 
*-
 
*1
 
*3
 
*5
 
*10
 
}}
 
</td></tr></table>
 
 
 
<center>{{#input: type=submit | value = 執行 List members }}
 
&nbsp; <small>[[:Template:Catlist/test|重填]] <!--, &nbsp; [[:Template:Catgraph|graph]]--></small></center>
 
}}
 
 
 
==其他說明 (Other Description)==
 
<div style="height:100px; overflow:auto; margin:0; margin-top:0px; padding:0.3em .3em 0.5em 0.3em; border:1px solid #999999; background-color:#ffffdd;">
 
{| class= wikitable width=100%
 
|---
 
|+字元代換(當使用樣板語法時)"character escaping":
 
! width=50% |中文
 
!English
 
|----
 
| » 代換為 &gt;
 
| » is translated to &gt;
 
|----
 
| « 代換為 &lt;
 
| « is translated to &lt;
 
|----
 
| ²{ 代換為 <nowiki>{{</nowiki>
 
| ²{is translated to <nowiki>{{</nowiki>
 
|----
 
| }² 代換為 <nowiki>}}</nowiki>
 
| }² is translated to <nowiki>}}</nowiki>
 
|----
 
| ¦ 代換為 <nowiki>|</nowiki>
 
| ¦ is translated to <nowiki>|</nowiki>
 
|----
 
| ¶ 表換行
 
| ¶ is translated to a newline
 
|----
 
| \n 表換行
 
| \n is translated to a newline
 
|}
 
</div>
 
<!------------------------------------------------------------------------------------------------------------->
 
<includeonly>
 
{{#if:{{{name|}}}|
 
==== {{{name}}} ====
 
| }}
 
 
 
-----
 
{{#dpl:{{#ifeq:{{{namespace|}}}|all||{{#if:{{{namespace|}}}|{{#ifeq:{{{namespace|}}}|main|namespace=|namespace={{{namespace|}}}}}}}}}
 
|{{#ifeq:{{{notnamespace|}}}|-||{{#if:{{{notnamespace|}}}|{{#ifeq:{{{notnamespace|}}}|main|notnamespace=|notnamespace={{{notnamespace|}}}}}}}}}
 
|{{#ifeq:{{{category|}}}|?||{{#if:{{{category|}}}|category={{{category|}}}}}}}
 
|{{#ifeq:{{{category2|}}}|?||{{#if:{{{category2|}}}|category={{{category2|}}}}}}}
 
|{{#ifeq:{{{notcategory2|}}}|?||{{#if:{{{notcategory2|}}}|notcategory={{{notcategory2|}}}}}}}
 
|{{#ifeq:{{{notcategory|}}}|?||{{#if:{{{notcategory|}}}|notcategory={{{notcategory|}}}}}}}
 
|{{#ifeq:{{{uses|}}}|?||{{#if:{{{uses|}}}|uses=Template:{{{uses|}}}}}}}
 
  |{{#ifeq:{{{temp_arg|}}}|||includepage={{{{uses}}}}:{{#replace:{{{temp_arg|}}}|,|,{{{{uses}}}:}}}} |{{#ifeq:{{{notuses|}}}|?||{{#if:{{{notuses|}}}|notuses=Template:{{{notuses|}}}}}}}
 
|{{#ifeq:{{{createdby|}}}|?||{{#if:{{{createdby|}}}|createdby={{{createdby|}}}}}}}
 
|{{#ifeq:{{{modifiedby|}}}|?||{{#if:{{{modifiedby|}}}|modifiedby={{{modifiedby|}}}}}}}
 
|titlematch={{{titlematch|}}}
 
|nottitlematch={{{nottitlematch|}}}
 
|linksto={{{linksto|}}}
 
|notlinksto={{{notlinksto|}}}
 
|include={{{include|}}}
 
|{{#ifeq:{{{table|}}}|||table= {{#ifeq:{{{class|}}}|-||class={{{class|}}}}}  ,,{{{table|}}}}}
 
|
 
|{{#if:{{{columns|}}}|columns={{{columns|}}}|columns=3}}
 
|{{#ifeq:{{{export|}}}|yes|columns=1}}
 
|order={{{order|}}}
 
|{{#ifeq:{{{ordermethod|}}}|-||ordermethod={{{ordermethod|}}}}}
 
|escapelinks={{{escapelinks|}}}
 
|{{#ifeq:{{{randomcount|}}}|-||randomcount={{{randomcount|}}}}}
 
|{{#ifeq:{{{count|}}}|||{{#if:{{{count|}}}|count={{{count|}}}}}}}
 
|{{#ifeq:{{{addup_rec}}}|Yes|offset={{{offset_sum|}}}|offset={{{offset|}}}}}
 
|shownamespace={{{shownamespace|}}}
 
|addcategories={{{addcategories|}}}
 
|addpagecounter={{{addpagecounter|}}}
 
|addpagesize={{{addpagesize|}}}
 
|addeditdate={{{addeditdate|}}}
 
|addpagetoucheddate={{{addpagetoucheddate|}}}
 
|adduser={{{adduser|}}}
 
|{{#ifeq:{{{lastrevisionbefore|}}}|YYYY-MM-DD||lastrevisionbefore={{{lastrevisionbefore|}}}}}
 
|{{#ifeq:{{{firstrevisionsince|}}}|YYYY-MM-DD||firstrevisionsince={{{firstrevisionsince|}}}}}
 
|{{#ifeq:{{{allrevisionsbefore|}}}|YYYY-MM-DD||allrevisionsbefore={{{allrevisionsbefore|}}}}}
 
|{{#ifeq:{{{allrevisionssince|}}}|YYYY-MM-DD||allrevisionssince={{{allrevisionssince|}}}}}
 
|{{#ifeq:{{{export|}}}|yes|include={export.dpl}}}
 
|{{#ifeq:{{{export|}}}|yes|format=[http://gs-nb/dpldemo/index.php/Special:Export?pages=,,%0D%0A, click to start export of '''all selected pages''']}}
 
}}
 
----
 
<small><u>The query used the following parameters</u><br/>
 
----
 
<nowiki>{{#dpl:</nowiki><br>
 
{{#ifeq:{{{namespace|}}}|all||{{!}}{{#if:{{{namespace|}}}|{{#ifeq:{{{namespace|}}}|main|namespace=<br>|namespace={{{namespace|}}}<br>}}}}}}<!--
 
-->{{#ifeq:{{{notnamespace|}}}|-||{{!}}{{#if:{{{notnamespace|}}}|{{#ifeq:{{{notnamespace|}}}|main|notnamespace=<br>|notnamespace={{{notnamespace|}}}<br>}}}}}}<!--
 
-->{{#ifeq:{{{category|}}}|?||{{!}}{{#if:{{{category|}}}|category={{{category|}}}<br>}}}}<!--
 
-->{{#ifeq:{{{category2|}}}|?||{{!}}{{#if:{{{category2|}}}|category={{{category2|}}}<br>}}}}<!--
 
-->{{#ifeq:{{{notcategory|}}}|?||{{!}}{{#if:{{{notcategory|}}}|notcategory={{{notcategory|}}}<br>}}}}<!--
 
-->{{#ifeq:{{{notcategory2|}}}|?||{{!}}{{#if:{{{notcategory2|}}}|notcategory={{{notcategory2|}}}<br>}}}}<!--
 
-->{{#ifeq:{{{uses|}}}|?||{{!}}{{#if:{{{uses|}}}|uses=Template:{{{uses|}}}<br>}}}}<!--
 
-->{{#ifeq:{{{temp_arg|}}}|||{{!}}includepage={{{{uses}}}}:{{#replace:{{{temp_arg|}}}|,|,{{{{uses}}}}:}}<br>}}<!--
 
-->{{#ifeq:{{{notuses|}}}|?||{{!}}{{#if:{{{notuses|}}}|notuses=Template:{{{notuses|}}}<br>}}}}<!--
 
-->{{#ifeq:{{{createdby|}}}|?||{{!}}{{#if:{{{createdby|}}}|createdby={{{createdby|}}}<br>}}}}<!--
 
-->{{#ifeq:{{{modifiedby|}}}|?||{{!}}{{#if:{{{modifiedby|}}}|modifiedby={{{modifiedby|}}}<br>}}}}<!--
 
-->{{#if:{{{titlematch|}}}|{{!}}titlematch={{{titlematch|}}}<br>}}<!--
 
-->{{#if:{{{include|}}}|{{!}}include={{{include|}}}<br>}}<!--
 
-->{{#ifeq:{{{table|}}}|||{{!}}table={{#ifeq:{{{class|}}}|-||class={{{class|}}}}}
 
                                      ,,{{{table|}}}<br>}}<!--
 
-->{{#if:{{{nottitlematch|}}}|{{!}}nottitlematch={{{nottitlematch|}}}<br>}}<!--
 
-->{{#if:{{{linksto|}}}|{{!}}linksto={{{linksto|}}}<br>}}<!--
 
-->{{#if:{{{notlinksto|}}}|{{!}}notlinksto={{{notlinksto|}}}<br>}}<!--
 
-->{{#if:{{{columns|}}}|{{!}}columns={{{columns|}}}<br>}}<!--
 
-->{{#ifeq:{{{export|}}}|yes|{{!}}columns=1<br>}}<!--
 
-->{{#ifeq:{{{order|}}}|ascending||{{!}}order={{{order|}}}<br>}}<!--
 
-->{{#ifeq:{{{ordermethod|}}}|-||{{!}}ordermethod={{{ordermethod|}}}<br>}}<!--
 
-->{{#ifeq:{{{escapelinks|}}}|true||{{!}}escapelinks={{{escapelinks|}}}<br>}}<!--
 
-->{{#ifeq:{{{randomcount|}}}|-||{{!}}randomcount={{{randomcount|}}}<br>}}<!--
 
-->{{#if:{{{count| }}}|{{!}}count={{{count|}}}<br>}}<!--
 
-->{{#ifeq:{{{addup_rec}}}
 
    |Yes
 
    |{{#ifeq:{{{offset_sum|0}}}|0||{{!}}offset={{{offset_sum|}}}}}
 
    |{{#ifeq:{{{offset|0}}}|0||{{!}}offset={{{offset|}}}}} 
 
  }}<br><!--
 
-->{{#ifeq:{{{shownamespace|}}}|no||{{!}}shownamespace={{{shownamespace|}}}<br>}}<!--
 
-->{{#ifeq:{{{addcategories|}}}|no||{{!}}addcategories={{{addcategories|}}}<br>}}<!--
 
-->{{#ifeq:{{{addpagecounter|}}}|no||{{!}}addpagecounter={{{addpagecounter|}}}<br>}}<!--
 
-->{{#ifeq:{{{addpagesize|}}}|no||{{!}}addpagesize={{{addpagesize|}}}<br>}}<!--
 
-->{{#ifeq:{{{addeditdate|}}}|no||{{!}}addeditdate={{{addeditdate|}}}<br>}}<!--
 
-->{{#ifeq:{{{addpagetoucheddate}}}|no||{{!}}addpagetoucheddate={{{addpagetoucheddate|}}}<br>}}<!--
 
-->{{#ifeq:{{{adduser|}}}|no||{{!}}adduser={{{adduser|}}}<br>}}<!--
 
-->{{#ifeq:{{{lastrevisionbefore|}}}|YYYY-MM-DD||{{!}}lastrevisionbefore={{{lastrevisionbefore|}}}<br>}}<!--
 
-->{{#ifeq:{{{firstrevisionsince|}}}|YYYY-MM-DD||{{!}}firstrevisionsince={{{firstrevisionsince|}}}<br>}}<!--
 
-->{{#ifeq:{{{allrevisionsbefore|}}}|YYYY-MM-DD||{{!}}allrevisionsbefore={{{allrevisionsbefore|}}}<br>}}<!--
 
-->{{#ifeq:{{{allrevisionssince|}}}|YYYY-MM-DD||{{!}}allrevisionssince={{{allrevisionssince|}}}<br>}}<!--
 
--><nowiki>|resultsheader=<small>有%PAGES%筆紀錄相符(%PAGES% results)</small></nowiki><br><!--
 
--><nowiki>|noresultsheader=<small>無相符之紀錄(No results.)</small></nowiki><br><!--
 
--><nowiki>|oneresultheader=<small>有1筆相符的紀錄(1 result)</small></nowiki><br><!--
 
--><nowiki>}}</nowiki>
 
</small><br></includeonly>
 

Latest revision as of 14:05, 22 October 2007