Difference between revisions of "Template:DPL Calendar code generater zh-tw"

From FollowTheScore
Jump to: navigation, search
(New page: {{#form: name= demo |action=/dpldemo/index.php| {{#input: name= title |type= hidden | value = Special:Call/DPL Calendar code generater zh-tw }} <table cellpadding=0 cellspacing=0...)
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#form: name= demo     |action=/dpldemo/index.php|
+
{{#form: name=demo |action={{#replace:{{localurl:{{PAGENAME}}}}
 +
                            |%^([\/]\S*[index.php])([\/])([{{PAGENAME}}]\S*)%
 +
                            |\1
 +
                          }}|
 
{{#input: name= title    |type= hidden | value = Special:Call/DPL Calendar code generater zh-tw }}
 
{{#input: name= title    |type= hidden | value = Special:Call/DPL Calendar code generater zh-tw }}
 
<table cellpadding=0 cellspacing=0 margins=0>
 
<table cellpadding=0 cellspacing=0 margins=0>
 
<tr bgcolor="#ddddff">
 
<tr bgcolor="#ddddff">
 +
<!-------------------->
 +
<tr>
 +
<td align="right">語言(Language)</td>
 +
<td>&nbsp;{{#input: name=lang | type=select | value = {{{noadd|}}} |
 +
*中文
 +
*English
 +
*<br>
 +
}}
 +
</td>
 +
</tr>
 
<!-------------------->
 
<!-------------------->
 
<tr>
 
<tr>
Line 24: Line 37:
 
<tr bgcolor="#ffeedd">
 
<tr bgcolor="#ffeedd">
 
<td align="right">用途(purpose) </td>
 
<td align="right">用途(purpose) </td>
<td>&nbsp;{{#input: name=purpose | value = {{{purpose|}}}}} 例「張三記事,李四記事」 (e.g: Michael's calendar,Mark's calendar)</td>
+
<td>&nbsp;{{#input: name=purpose | value = {{{purpose|}}}}} 例「張三記事,李四記事」 (e.g: Michael's events,dpl group's event)</td>
 
</tr>
 
</tr>
 
<!-------------------->
 
<!-------------------->
Line 34: Line 47:
 
<!-------------------->
 
<!-------------------->
 
<tr>
 
<tr>
<td align="right">顯示章節內容(eventList)</td>
+
<td align="right">顯示報表(eventList)</td>
 
<td>&nbsp;{{#input: name=eventList | type=select | value = {{{eventList|}}} |  
 
<td>&nbsp;{{#input: name=eventList | type=select | value = {{{eventList|}}} |  
 +
*<br>
 
*current
 
*current
 
*no
 
*no
 
*all
 
*all
 
}}
 
}}
</td>
+
本月份(current),不顯示(no),顯示全部(all)</td>
 
</tr>
 
</tr>
 
<!-------------------->
 
<!-------------------->
 
<tr>
 
<tr>
<td align="right">寛度 (width) </td> 例: "100%" 或 "500px"
+
<td align="right">寛度 (width) </td>  
<td>&nbsp;{{#input: name=width  | value = {{{width|}}} }}
+
<td>&nbsp;{{#input: name=width  | value = {{{width|500px}}} }}例: "100%" 或 "500px"
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 52: Line 66:
 
<td align="right">無法新增記事(noadd)</td>
 
<td align="right">無法新增記事(noadd)</td>
 
<td>&nbsp;{{#input: name=noadd | type=select | value = {{{noadd|}}} |  
 
<td>&nbsp;{{#input: name=noadd | type=select | value = {{{noadd|}}} |  
*?
+
*0
 
*1
 
*1
 
}}
 
}}
Line 61: Line 75:
 
<td align="right">不顯示記事之超連結(nolink)</td>
 
<td align="right">不顯示記事之超連結(nolink)</td>
 
<td>&nbsp;{{#input: name=nolink | type=select | value = {{{nolink|}}} |  
 
<td>&nbsp;{{#input: name=nolink | type=select | value = {{{nolink|}}} |  
*?
+
*0
 
*1
 
*1
 
}}
 
}}
Line 70: Line 84:
 
<tr bgcolor="#eeffee">
 
<tr bgcolor="#eeffee">
 
<td>
 
<td>
&nbsp;{{#input: type =  submit | value = 產生(Generate)}} <small>[[:Template:DPL Calendar code generater zh-tw|reset]] &nbsp; [[:Template:Catgraph|graph]]</small>
+
&nbsp;{{#input: type =  submit | value = 產生(Generate)}} <small>[[:Template:DPL Calendar code generater zh-tw|放棄(reset)]] &nbsp; [[:Template:Catgraph|graph]]</small>
 
</td></tr></table>
 
</td></tr></table>
 
}}
 
}}
Line 78: Line 92:
 
==== {{{name}}} ====
 
==== {{{name}}} ====
 
|}}
 
|}}
{{#dpl: resultsheader=<small>%PAGES% members found.<br><hr></small>\n
+
{{:{{#switch: {{{lang}}}
|noresultsheader=<small>There are no results for your query.<br><hr></small>\n
+
    | English = Current events
|oneresultheader=<small>1 member found.<br><hr></small>\n
+
    | 中文 = Current events zh-tw
|{{#ifeq:{{{namespace|}}}|all||{{#if:{{{namespace|}}}|{{#ifeq:{{{namespace|}}}|main|namespace=|namespace={{{namespace|}}}}}}}}}
+
    | Current events
|{{#ifeq:{{{notnamespace|}}}|-||{{#if:{{{notnamespace|}}}|{{#ifeq:{{{notnamespace|}}}|main|notnamespace=|notnamespace={{{notnamespace|}}}}}}}}}
+
  }}
|{{#ifeq:{{{category|}}}|?||{{#if:{{{category|}}}|category={{{category|}}}}}}}
+
  |year={{{year|}}}
|{{#ifeq:{{{notcategory|}}}|?||{{#if:{{{notcategory|}}}|notcategory={{{notcategory|}}}}}}}
+
  |month={{{month|}}}
|{{#ifeq:{{{category2|}}}|?||{{#if:{{{category2|}}}|category={{{category2|}}}}}}}
+
  |namespace={{{namespace|}}}
  |{{#ifeq:{{{notcategory2|}}}|?||{{#if:{{{notcategory2|}}}|notcategory={{{notcategory2|}}}}}}}
+
  |purpose={{#replace:{{{purpose|}}}|,|¦}}
  |{{#ifeq:{{{uses|}}}|?||{{#if:{{{uses|}}}|uses=Template:{{{uses|}}}}}}}
+
  |show={{{show|}}}
  |{{#ifeq:{{{notuses|}}}|?||{{#if:{{{notuses|}}}|notuses=Template:{{{notuses|}}}}}}}
+
  |eventList={{{eventList|}}}
  |{{#ifeq:{{{createdby|}}}|?||{{#if:{{{createdby|}}}|createdby={{{createdby|}}}}}}}
+
  |width={{{width|}}}
|{{#ifeq:{{{modifiedby|}}}|?||{{#if:{{{modifiedby|}}}|modifiedby={{{modifiedby|}}}}}}}
+
  |noadd={{{noadd|}}}
  |titlematch={{{titlematch|}}}
+
  |nolink={{{nolink|}}}
  |nottitlematch={{{nottitlematch|}}}
 
  |linksto={{{linksto|}}}
 
  |notlinksto={{{notlinksto|}}}
 
  |{{#if:{{{columns|}}}|columns={{{columns|}}}|columns=3}}
 
|{{#ifeq:{{{export|}}}|yes|columns=1}}
 
|order={{{order|}}}
 
|{{#ifeq:{{{ordermethod|}}}|-||ordermethod={{{ordermethod|}}}}}
 
|escapelinks={{{escapelinks|}}}
 
|{{#ifeq:{{{randomcount|}}}|-||randomcount={{{randomcount|}}}}}
 
|{{#if:{{{count|}}}|count={{{count|}}}}}
 
|{{#if:{{{offset|}}}|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>Your query used the following parameters</u><br/>
+
<small><u>{{#switch: {{{lang}}}
{{#ifeq:{{{namespace|}}}|all||{{#if:{{{namespace|}}}|{{#ifeq:{{{namespace|}}}|main|namespace=<br>|namespace={{{namespace|}}}<br>}}}}}}<!--
+
    | English =Your query used the following parameters:
-->{{#ifeq:{{{notnamespace|}}}|-||{{#if:{{{notnamespace|}}}|{{#ifeq:{{{notnamespace|}}}|main|notnamespace=<br>|notnamespace={{{notnamespace|}}}<br>}}}}}}<!--
+
    | 中文 = 您使用如下的查詢參數:
-->{{#ifeq:{{{category|}}}|?||{{#if:{{{category|}}}|category={{{category|}}}<br>}}}}<!--
+
    | Your query used the following parameters:
-->{{#ifeq:{{{category2|}}}|?||{{#if:{{{category2|}}}|category={{{category2|}}}<br>}}}}<!--
+
  }}
-->{{#ifeq:{{{notcategory|}}}|?||{{#if:{{{notcategory|}}}|notcategory={{{notcategory|}}}<br>}}}}<!--
+
</u><br/>
-->{{#ifeq:{{{notcategory2|}}}|?||{{#if:{{{notcategory2|}}}|notcategory={{{notcategory2|}}}<br>}}}}<!--
+
{{#switch: {{{lang}}}
-->{{#ifeq:{{{uses|}}}|?||{{#if:{{{uses|}}}|uses=Template:{{{uses|}}}<br>}}}}<!--
+
    | English = <nowiki>{{:Current events</nowiki><br>
-->{{#ifeq:{{{notuses|}}}|?||{{#if:{{{notuses|}}}|notuses=Template:{{{notuses|}}}<br>}}}}<!--
+
    | 中文 = <nowiki>{{:Current events zh-tw</nowiki><br>
-->{{#ifeq:{{{createdby|}}}|?||{{#if:{{{createdby|}}}|createdby={{{createdby|}}}<br>}}}}<!--
+
    | <nowiki>{{:Current events</nowiki><br>
-->{{#ifeq:{{{modifiedby|}}}|?||{{#if:{{{modifiedby|}}}|modifiedby={{{modifiedby|}}}<br>}}}}<!--
+
  }}
-->{{#if:{{{titlematch|}}}|titlematch={{{titlematch|}}}<br>}}<!--
+
{{#if:{{{year|}}}|{{!}}{year={{{{year|}}}<br>}}<!--
-->{{#if:{{{nottitlematch|}}}|nottitlematch={{{nottitlematch|}}}<br>}}<!--
+
-->{{#if:{{{month|}}}|{{!}}month={{{month|}}}<br>}}<!--
-->{{#if:{{{linksto|}}}|linksto={{{linksto|}}}<br>}}<!--
+
-->{{#if:{{{namespace|}}}|{{!}}namespace={{{namespace|}}}<br>}}<!--
-->{{#if:{{{notlinksto|}}}|notlinksto={{{notlinksto|}}}<br>}}<!--
+
-->{{#if:{{{purpose|}}}|{{!}}purpose={{#replace:{{{purpose|}}}|,|¦}}<br>}}<!--
-->{{#if:{{{columns|}}}|columns={{{columns|}}}<br>|columns=3<br>}}<!--
+
-->{{#if:{{{show|}}}|{{!}}show={{{show|}}}<br>}}<!--
-->{{#ifeq:{{{export|}}}|yes|columns=1<br>}}<!--
+
-->{{#if:{{{eventList|}}}|{{!}}eventList={{{eventList|}}}<br>}}<!--
-->{{#ifeq:{{{order|}}}|ascending||order={{{order|}}}<br>}}<!--
+
-->{{#ifeq:{{{width|}}}|no||{{!}}width={{{width|}}}<br>}}<!--
-->{{#ifeq:{{{ordermethod|}}}|-||ordermethod={{{ordermethod|}}}<br>}}<!--
+
-->{{#ifeq:{{{noadd|}}}|0||{{!}}noadd={{{noadd|}}}<br>}}<!--
-->{{#ifeq:{{{escapelinks|}}}|true||escapelinks={{{escapelinks|}}}<br>}}<!--
+
-->{{#ifeq:{{{nolink|}}}|0||{{!}}nolink={{{nolink|}}}<br>}}
-->{{#ifeq:{{{randomcount|}}}|-||randomcount={{{randomcount|}}}<br>}}<!--
+
<nowiki>}}</nowiki>
-->{{#if:{{{count|}}}|count={{{count|}}}<br>}}<!--
+
</includeonly>
-->{{#if:{{{offset|}}}|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>}}<!--
 
--></small><br></includeonly>
 

Latest revision as of 09:57, 12 April 2008

{{#form: name=demo |action={{#replace:/dpldemo/index.php?title=DPL_Calendar_code_generater_zh-tw

                           |%^([\/]\S*[index.php])([\/])([DPL Calendar code generater zh-tw]\S*)%
                           |\1
                          }}|

{{#input: name= title |type= hidden | value = Special:Call/DPL Calendar code generater zh-tw }}

語言(Language)  {{#input: name=lang | type=select | value = |
  • 中文
  • English

}}

指定年份(year)  {{#input: name=year | value = }}
指定月份(month)  {{#input: name=month | value = }}
指定名字空間(namespace)  {{#input: name=namespace | value = }}
用途(purpose)  {{#input: name=purpose | value = }} 例「張三記事,李四記事」 (e.g: Michael's events,dpl group's event)
顯示指定章節(show)  {{#input: name=show | value = }}
顯示報表(eventList)  {{#input: name=eventList | type=select | value = |

  • current
  • no
  • all

}}

本月份(current),不顯示(no),顯示全部(all)
寛度 (width)  {{#input: name=width | value = 500px }}例: "100%" 或 "500px"
無法新增記事(noadd)  {{#input: name=noadd | type=select | value = |
  • 0
  • 1

}}

不顯示記事之超連結(nolink)  {{#input: name=nolink | type=select | value = |
  • 0
  • 1

}}

 {{#input: type = submit | value = 產生(Generate)}} 放棄(reset)   graph

}}