Difference between revisions of "Template:Catlist/zh"
Roc michael (talk | contribs) |
|||
Line 1: | Line 1: | ||
正體中文(Tradition Chinese),僅供參考(for reference only),歡迎您一起參與修訂(Welcome to edit it)。 | 正體中文(Tradition Chinese),僅供參考(for reference only),歡迎您一起參與修訂(Welcome to edit it)。 | ||
{{#form: name= demo |action=/dpldemo/index.php| | {{#form: name= demo |action=/dpldemo/index.php| | ||
− | {{#input: name= title | + | {{#input: name= title | type= hidden | value = Special:Call/Catlist/zh}} |
+ | <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> | <table cellpadding=0 cellspacing=0 margins=0> | ||
− | <tr | + | <tr> |
− | <td align="right"> | + | <td align="right">名字空間(namespace)</td> |
− | <td> {{#input: name= namespace |type= select | value = {{{namespace|}}} | | + | <td> {{#input: name=namespace | type=select | value = {{{namespace|}}} |<!-- *? {{#dpl: namespace=* | format=,\n*%TITLE%,, }}--> |
*all | *all | ||
*main | *main | ||
Line 15: | Line 18: | ||
*DPL | *DPL | ||
*Wgraph | *Wgraph | ||
− | }}</td> | + | }} |
− | <td align="right"> 但非( | + | </td> |
− | <td> {{#input: name= notnamespace |type= select | value = {{{notnamespace|}}} | | + | <td align="right">但非(not)</td> |
+ | <td> {{#input: name=notnamespace | type=select | value = {{{notnamespace|}}} | | ||
*- | *- | ||
*main | *main | ||
Line 30: | Line 34: | ||
</td> | </td> | ||
</tr> | </tr> | ||
− | <tr | + | <!--------------------> |
− | <td align="right"> | + | <tr> |
− | <td> {{#input: name= category | value = {{{category|}}} |type= select | + | <td align="right">分類(category)</td> |
− | + | <td> {{#input: name=category | value = {{{category|}}} | type=select | *? {{#dpl: namespace=Category | format=,\n*%TITLE%,,}}}} | |
</td> | </td> | ||
− | <td align="right"> | + | <td align="right">但非(not)</td> |
− | <td> {{#input: name= notcategory | value = {{{notcategory|}}} |type= select | + | <td> {{#input: name=notcategory | value = {{{notcategory|}}} | type= select | *? {{#dpl: namespace=Category | format = ,\n*%TITLE%,,}}}} |
− | |||
</td> | </td> | ||
</tr> | </tr> | ||
− | <tr | + | <!--------------------> |
− | <td align="right"> | + | <tr> |
− | <td> {{#input: name= uses | value = {{{uses|}}} |type= select | + | <td align="right">內嵌樣板(Template)</td> |
− | + | <td> {{#input: name=uses | value = {{{uses|}}} | type=select | *? {{#dpl: namespace=Template | format=,\n*%TITLE%,,}}}}</td> | |
− | </td> | + | <td align="right">但非(not)</td> |
− | <td align="right"> | + | <td> {{#input: name=notuses | value = {{{notuses|}}} | type=select | *? {{#dpl: namespace=Template | format=,\n*%TITLE%,,}}}}</td> |
− | <td> {{#input: name= notuses | value = {{{notuses|}}} |type= select | + | </tr> |
− | + | <!--------------------> | |
− | </td> | + | <tr> |
+ | <td align="right">頁面名稱(title; 使用時須加百分號「%」)</td> | ||
+ | <td> {{#input: name=titlematch | value = {{{titlematch|}}}}}</td> | ||
+ | <td align="right">非此頁面名稱(%)</td> | ||
+ | <td> {{#input: name=nottitlematch | value = {{{nottitlematch|}}}}}</td> | ||
+ | </tr> | ||
+ | <!--------------------> | ||
+ | <tr bgcolor="#ffeedd"> | ||
+ | <td align="right">內含章節名稱(include) </td> | ||
+ | <td colspan="3"> {{#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"> {{#input: name=class | type=select | value = {{{class|}}} | | ||
+ | *- | ||
+ | *sortable | ||
+ | }}</td> | ||
+ | </tr> | ||
+ | <!--------------------> | ||
+ | <tr bgcolor="#ffeedd"> | ||
+ | <td align="right">欄位標題(Title of column)</td> | ||
+ | <td colspan="3"> {{#input: name=table | value = {{{table|}}}}} 例「章節A,章節B」 (ex: Ch A,Ch B)</td> | ||
</tr> | </tr> | ||
− | <tr | + | <!--------------------> |
− | <td align="right"> 連結至某頁(links to) </td> | + | <tr> |
− | <td> {{#input: name= linksto | value = {{{linksto|}}} }} | + | <td align="right">連結至某頁(links to) </td> |
+ | <td> {{#input: name=linksto | value = {{{linksto|}}} }} | ||
</td> | </td> | ||
− | <td align="right"> (無連結至某頁) | + | <td align="right">(無連結至某頁)not to </td> |
− | <td> {{#input: name= notlinksto | value = {{{notlinksto|}}} }} | + | <td> {{#input: name=notlinksto | value = {{{notlinksto|}}} }} |
</td> | </td> | ||
</tr> | </tr> | ||
− | <tr | + | <!--------------------> |
+ | <tr> | ||
<td align="right"> 頁面創建者(created by) </td> | <td align="right"> 頁面創建者(created by) </td> | ||
− | <td> {{#input: name= createdby | value = {{{createdby|}}} |type= select | + | <td> {{#input: name= createdby | value = {{{createdby|}}} |type= select |
| *? {{#dpl: namespace=User | |titleregexp=^[^/]+$ | format=,\n*%TITLE%,, }} }} | | *? {{#dpl: namespace=User | |titleregexp=^[^/]+$ | format=,\n*%TITLE%,, }} }} | ||
</td> | </td> | ||
<td align="right"> 頁面修改者(modified by) </td> | <td align="right"> 頁面修改者(modified by) </td> | ||
− | <td> {{#input: name= modifiedby | value = {{{modifiedby|}}} |type= select | + | <td> {{#input: name= modifiedby | value = {{{modifiedby|}}} |type= select |
| *? {{#dpl: namespace=User | titleregexp=^[^/]+$ | format=,\n*%TITLE%,, }} }} | | *? {{#dpl: namespace=User | titleregexp=^[^/]+$ | format=,\n*%TITLE%,, }} }} | ||
</td> | </td> | ||
</tr> | </tr> | ||
− | <tr | + | <!--------------------> |
+ | <tr> | ||
<td align="right"> 截至某日前最後的版本 last rev. before </td> | <td align="right"> 截至某日前最後的版本 last rev. before </td> | ||
− | <td> {{#input: name= lastrevisionbefore | value = {{#if:{{{lastrevisionbefore|}}}|{{{lastrevisionbefore|}}}|YYYY-MM-DD}} }}</td> | + | <td> {{#input: name=lastrevisionbefore | value = {{#if:{{{lastrevisionbefore|}}}|{{{lastrevisionbefore|}}}|YYYY-MM-DD}}}}</td> |
− | <td align="right"> | + | <td align="right"> 某日後最早的版本 first rev. since </td> |
− | <td> {{#input: name= firstrevisionsince | value = {{#if:{{{firstrevisionsince|}}}|{{{firstrevisionsince|}}}|YYYY-MM-DD}} }}</td> | + | <td> {{#input: name=firstrevisionsince | value = {{#if:{{{firstrevisionsince|}}}|{{{firstrevisionsince|}}}|YYYY-MM-DD}}}}</td> |
</tr> | </tr> | ||
− | <tr | + | <!--------------------> |
− | <td align="right"> | + | <tr> |
− | <td> {{#input: name= allrevisionsbefore | value = {{#if:{{{allrevisionsbefore|}}}|{{{allrevisionsbefore|}}}|YYYY-MM-DD}} }}</td> | + | <td align="right"> 某日前的所有版本''all revs.'' before</td> |
− | <td align="right"> | + | <td> {{#input: name=allrevisionsbefore | value = {{#if:{{{allrevisionsbefore|}}}|{{{allrevisionsbefore|}}}|YYYY-MM-DD}}}}</td> |
− | <td> {{#input: name= allrevisionssince | + | <td align="right"> 某日後所有的版本''all revs.'' since</td> |
+ | <td> {{#input: name=allrevisionssince | value = {{#if:{{{allrevisionssince|}}}|{{{allrevisionssince|}}}|YYYY-MM-DD}}}}</td> | ||
+ | </tr></table> | ||
+ | |||
+ | |||
</tr> | </tr> | ||
− | < | + | <tr> |
− | < | + | <!---------------------頁面資訊 Information Display-------------------------------> |
− | < | + | <td valign=top> |
− | ''' | + | '''頁面資訊 Information Display<br>(某些須搭配排序依據使用 <br>Some item must use with some Order Method):''' |
− | 名字空間(namespace) {{#input: name= | + | |
− | + | {{#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> | |
− | }}分類(categories) {{#input: name= | + | {{#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>'''排序方法(order method):'''<br> | |
− | + | ||
− | }} | + | |
− | + | 排序依據(sort key) | |
− | + | {{#input: name=ordermethod |type=select | value = {{{ordermethod|}}} | | |
− | |||
− | }} | ||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | |||
− | |||
− | }} | ||
− | ''' | ||
− | 排序依據( | ||
*- | *- | ||
*category,firstedit | *category,firstedit | ||
Line 130: | Line 146: | ||
*user,firstedit | *user,firstedit | ||
*user,lastedit | *user,lastedit | ||
− | }}升(降)冪(order): {{#input: name= order | + | }} |
− | + | 升(降)冪(order):{{#input: name=order | type=select | value = {{{order|}}} | | |
*ascending | *ascending | ||
*descending | *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 | *1 | ||
+ | *2 | ||
*3 | *3 | ||
+ | *4 | ||
*5 | *5 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | + | 輸出紀錄筆數上限(maxrecords) {{#input: name=count | value = {{{count|}}} | size=2 | |
− | + | }}<br> | |
− | + | 隨機選取頁數(randomcount): {{#input: name=randomcount | type= select | value = {{{randomcount|}}} | | |
− | * | + | *- |
*1 | *1 | ||
− | |||
*3 | *3 | ||
− | |||
*5 | *5 | ||
− | + | *10 | |
− | }} | + | }} |
− | |||
</td></tr></table> | </td></tr></table> | ||
+ | |||
+ | <center>{{#input: type=submit | value = 執行 List members }} | ||
+ | <small>[[:Template:Catlist_zh|重填]] <!--, [[: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 | ||
+ | |---- | ||
+ | | » 代換為 > | ||
+ | | » is translated to > | ||
+ | |---- | ||
+ | | « 代換為 < | ||
+ | | « is translated to < | ||
+ | |---- | ||
+ | | ²{ 代換為 <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> | <includeonly> | ||
Line 169: | Line 237: | ||
==== {{{name}}} ==== | ==== {{{name}}} ==== | ||
|}} | |}} | ||
− | {{#dpl: resultsheader=<small> | + | {{#dpl: resultsheader=<small>有%PAGES%筆紀錄相符(%PAGES% results)<br><hr></small>\n |
− | |noresultsheader=<small> | + | |noresultsheader=<small>無相符之紀錄(No results.)<br><hr></small>\n |
− | |oneresultheader=<small> | + | |oneresultheader=<small>有1筆相符的紀錄(1 result)<br><hr></small>\n |
− | + | ||
+ | |{{#ifeq:{{{namespace|}}}|all||{{#if:{{{namespace|}}}|{{#ifeq:{{{namespace|}}}|main|namespace=|namespace={{{namespace|}}}}}}}}} | ||
|{{#ifeq:{{{notnamespace|}}}|-||{{#if:{{{notnamespace|}}}|{{#ifeq:{{{notnamespace|}}}|main|notnamespace=|notnamespace={{{notnamespace|}}}}}}}}} | |{{#ifeq:{{{notnamespace|}}}|-||{{#if:{{{notnamespace|}}}|{{#ifeq:{{{notnamespace|}}}|main|notnamespace=|notnamespace={{{notnamespace|}}}}}}}}} | ||
|{{#ifeq:{{{category|}}}|?||{{#if:{{{category|}}}|category={{{category|}}}}}}} | |{{#ifeq:{{{category|}}}|?||{{#if:{{{category|}}}|category={{{category|}}}}}}} | ||
Line 184: | Line 253: | ||
|linksto={{{linksto|}}} | |linksto={{{linksto|}}} | ||
|notlinksto={{{notlinksto|}}} | |notlinksto={{{notlinksto|}}} | ||
+ | |include={{{include|}}} | ||
+ | |{{#ifeq:{{{table|}}}|||table= {{#ifeq:{{{class|}}}|-||class={{{class|}}}}} ,,{{{table|}}}}} | ||
|{{#if:{{{columns|}}}|columns={{{columns|}}}|columns=3}} | |{{#if:{{{columns|}}}|columns={{{columns|}}}|columns=3}} | ||
|{{#ifeq:{{{export|}}}|yes|columns=1}} | |{{#ifeq:{{{export|}}}|yes|columns=1}} | ||
Line 206: | Line 277: | ||
}} | }} | ||
---- | ---- | ||
− | <small><u> | + | <small><u>The query used the following parameters</u><br/> |
{{#ifeq:{{{namespace|}}}|all||{{#if:{{{namespace|}}}|{{#ifeq:{{{namespace|}}}|main|namespace=<br>|namespace={{{namespace|}}}<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:{{{notnamespace|}}}|-||{{#if:{{{notnamespace|}}}|{{#ifeq:{{{notnamespace|}}}|main|notnamespace=<br>|notnamespace={{{notnamespace|}}}<br>}}}}}}<!-- | ||
Line 215: | Line 286: | ||
-->{{#ifeq:{{{createdby|}}}|?||{{#if:{{{createdby|}}}|createdby={{{createdby|}}}<br>}}}}<!-- | -->{{#ifeq:{{{createdby|}}}|?||{{#if:{{{createdby|}}}|createdby={{{createdby|}}}<br>}}}}<!-- | ||
-->{{#ifeq:{{{modifiedby|}}}|?||{{#if:{{{modifiedby|}}}|modifiedby={{{modifiedby|}}}<br>}}}}<!-- | -->{{#ifeq:{{{modifiedby|}}}|?||{{#if:{{{modifiedby|}}}|modifiedby={{{modifiedby|}}}<br>}}}}<!-- | ||
− | -->{{#if:{{{titlematch|}}}|titlematch={{{ | + | -->{{#if:{{{titlematch|}}}|include={{{titlematch|}}}<br>}}<!-- |
+ | -->{{#if:{{{include|}}}|include={{{include|}}}<br>}}<!-- | ||
+ | -->{{#ifeq:{{{table|}}}|||table={{#ifeq:{{{class|}}}|-||class={{{class|}}}}} ,,{{{table|}}}<br>}}<!-- | ||
-->{{#if:{{{nottitlematch|}}}|nottitlematch={{{nottitlematch|}}}<br>}}<!-- | -->{{#if:{{{nottitlematch|}}}|nottitlematch={{{nottitlematch|}}}<br>}}<!-- | ||
-->{{#if:{{{linksto|}}}|linksto={{{linksto|}}}<br>}}<!-- | -->{{#if:{{{linksto|}}}|linksto={{{linksto|}}}<br>}}<!-- |
Revision as of 09:53, 15 September 2007
正體中文(Tradition Chinese),僅供參考(for reference only),歡迎您一起參與修訂(Welcome to edit it)。 {{#form: name= demo |action=/dpldemo/index.php| {{#input: name= title | type= hidden | value = Special:Call/Catlist/zh}}
資料選取(Selecting data):
| ||||||||||||||||||||||||||||||||||||||||||||||
頁面資訊 Information Display {{#input: name=shownamespace | type=checkbox | value = }}名字空間(namespace) | 排序方法(order method):
}} 升(降)冪(order):{{#input: name=order | type=select | value = |
}} {{#input: name=escapelinks | type=checkbox | value = }} 以連結取代顯示圖像(image)或分類(category)頁面 (escapelinks): {{#input: name=export | type=checkbox | value = }}輸出export 排序依據說明(order method description):
|
版面安排 (Layout):
}}
輸出紀錄筆數上限(maxrecords) {{#input: name=count | value = | size=2
}}
}} |
}}
其他說明 (Other Description)
中文 | English |
---|---|
» 代換為 > | » is translated to > |
« 代換為 < | « is translated to < |
²{ 代換為 {{ | ²{is translated to {{ |
}² 代換為 }} | }² is translated to }} |
¦ 代換為 | | ¦ is translated to | |
¶ 表換行 | ¶ is translated to a newline |
\n 表換行 | \n is translated to a newline |