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...)
 
Line 44: Line 44:
 
<!-------------------->
 
<!-------------------->
 
<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|}}} }}例: "100%" 或 "500px"
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 78: Line 78:
 
==== {{{name}}} ====
 
==== {{{name}}} ====
 
|}}
 
|}}
{{#dpl: resultsheader=<small>%PAGES% members found.<br><hr></small>\n
+
{{:Current events zh-tw
|noresultsheader=<small>There are no results for your query.<br><hr></small>\n
+
  |year={{{year|}}}
|oneresultheader=<small>1 member found.<br><hr></small>\n
+
  |month={{{month|}}}
|{{#ifeq:{{{namespace|}}}|all||{{#if:{{{namespace|}}}|{{#ifeq:{{{namespace|}}}|main|namespace=|namespace={{{namespace|}}}}}}}}}
+
  |namespace={{{namespace|}}}
|{{#ifeq:{{{notnamespace|}}}|-||{{#if:{{{notnamespace|}}}|{{#ifeq:{{{notnamespace|}}}|main|notnamespace=|notnamespace={{{notnamespace|}}}}}}}}}
+
  |purpose={{#replace:{{{purpose|}}}|,|¦}}
  |{{#ifeq:{{{category|}}}|?||{{#if:{{{category|}}}|category={{{category|}}}}}}}
+
  |show={{{show|}}}
  |{{#ifeq:{{{notcategory|}}}|?||{{#if:{{{notcategory|}}}|notcategory={{{notcategory|}}}}}}}
+
  |eventList={{{eventList|}}}
  |{{#ifeq:{{{category2|}}}|?||{{#if:{{{category2|}}}|category={{{category2|}}}}}}}
+
  |width={{{width|}}}
  |{{#ifeq:{{{notcategory2|}}}|?||{{#if:{{{notcategory2|}}}|notcategory={{{notcategory2|}}}}}}}
+
  |noadd={{{noadd|}}}
|{{#ifeq:{{{uses|}}}|?||{{#if:{{{uses|}}}|uses=Template:{{{uses|}}}}}}}
+
  |nolink={{{nolink|}}}
|{{#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|}}}
 
|{{#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>您使用如下的查詢參數(Your query used the following parameters)</u><br/>
{{#ifeq:{{{namespace|}}}|all||{{#if:{{{namespace|}}}|{{#ifeq:{{{namespace|}}}|main|namespace=<br>|namespace={{{namespace|}}}<br>}}}}}}<!--
+
<nowiki>{{:Current events zh-tw</nowiki><br>
-->{{#ifeq:{{{notnamespace|}}}|-||{{#if:{{{notnamespace|}}}|{{#ifeq:{{{notnamespace|}}}|main|notnamespace=<br>|notnamespace={{{notnamespace|}}}<br>}}}}}}<!--
+
{{#if:{{{year|}}}|{{!}}{year={{{{year|}}}<br>}}<!--
-->{{#ifeq:{{{category|}}}|?||{{#if:{{{category|}}}|category={{{category|}}}<br>}}}}<!--
+
-->{{#if:{{{month|}}}|{{!}}month={{{month|}}}<br>}}<!--
-->{{#ifeq:{{{category2|}}}|?||{{#if:{{{category2|}}}|category={{{category2|}}}<br>}}}}<!--
+
-->{{#if:{{{namespace|}}}|{{!}}namespace={{{namespace|}}}<br>}}<!--
-->{{#ifeq:{{{notcategory|}}}|?||{{#if:{{{notcategory|}}}|notcategory={{{notcategory|}}}<br>}}}}<!--
+
-->{{#if:{{{purpose|}}}|{{!}}purpose={{#replace:{{{purpose|}}}|,|¦}}<br>}}<!--
-->{{#ifeq:{{{notcategory2|}}}|?||{{#if:{{{notcategory2|}}}|notcategory={{{notcategory2|}}}<br>}}}}<!--
+
-->{{#if:{{{show|}}}|{{!}}show={{{show|}}}<br>}}<!--
-->{{#ifeq:{{{uses|}}}|?||{{#if:{{{uses|}}}|uses=Template:{{{uses|}}}<br>}}}}<!--
+
-->{{#if:{{{eventList|}}}|{{!}}eventList={{{eventList|}}}<br>}}<!--
-->{{#ifeq:{{{notuses|}}}|?||{{#if:{{{notuses|}}}|notuses=Template:{{{notuses|}}}<br>}}}}<!--
+
-->{{#if:{{{width|}}}|{{!}}width={{{width|}}}<br>}}<!--
-->{{#ifeq:{{{createdby|}}}|?||{{#if:{{{createdby|}}}|createdby={{{createdby|}}}<br>}}}}<!--
+
-->{{#if:{{{noadd|}}}|{{!}}noadd={{{noadd|}}}<br>}}<!--
-->{{#ifeq:{{{modifiedby|}}}|?||{{#if:{{{modifiedby|}}}|modifiedby={{{modifiedby|}}}<br>}}}}<!--
+
-->{{#if:{{{nolink|}}}|{{!}}nolink={{{nolink|}}}<br>}}<!--<nowiki>
-->{{#if:{{{titlematch|}}}|titlematch={{{titlematch|}}}<br>}}<!--
+
}}</nowiki>
-->{{#if:{{{nottitlematch|}}}|nottitlematch={{{nottitlematch|}}}<br>}}<!--
+
</includeonly>
-->{{#if:{{{linksto|}}}|linksto={{{linksto|}}}<br>}}<!--
 
-->{{#if:{{{notlinksto|}}}|notlinksto={{{notlinksto|}}}<br>}}<!--
 
-->{{#if:{{{columns|}}}|columns={{{columns|}}}<br>|columns=3<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>}}<!--
 
-->{{#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>
 

Revision as of 18:07, 10 December 2007

{{#form: name= demo |action=/dpldemo/index.php| {{#input: name= title |type= hidden | value = Special:Call/DPL Calendar code generater zh-tw }}

指定年份(year)  {{#input: name=year | value = }}
指定月份(month)  {{#input: name=month | value = }}
指定名字空間(namespace)  {{#input: name=namespace | value = }}
用途(purpose)  {{#input: name=purpose | value = }} 例「張三記事,李四記事」 (e.g: Michael's calendar,Mark's calendar)
顯示指定章節(show)  {{#input: name=show | value = }}
顯示章節內容(eventList)  {{#input: name=eventList | type=select | value = |
  • current
  • no
  • all

}}

寛度 (width)  {{#input: name=width | value = }}例: "100%" 或 "500px"
無法新增記事(noadd)  {{#input: name=noadd | type=select | value = |
  • ?
  • 1

}}

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

}}

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

}}