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

From FollowTheScore
Jump to: navigation, search
 
(8 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 36: Line 49:
 
<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
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}}} ====
 
|}}
 
|}}
{{:Current events zh-tw
+
{{:{{#switch: {{{lang}}}
 +
    | English = Current events
 +
    | 中文 = Current events zh-tw
 +
    | Current events
 +
  }}
 
  |year={{{year|}}}
 
  |year={{{year|}}}
 
  |month={{{month|}}}
 
  |month={{{month|}}}
Line 90: Line 108:
 
}}
 
}}
 
----
 
----
<small><u>您使用如下的查詢參數(Your query used the following parameters)</u><br/>
+
<small><u>{{#switch: {{{lang}}}
<nowiki>{{:Current events zh-tw</nowiki><br>
+
    | English =Your query used the following parameters:
 +
    | 中文 = 您使用如下的查詢參數:
 +
    | Your query used the following parameters:
 +
  }}
 +
</u><br/>
 +
{{#switch: {{{lang}}}
 +
    | English = <nowiki>{{:Current events</nowiki><br>
 +
    | 中文 = <nowiki>{{:Current events zh-tw</nowiki><br>
 +
    | <nowiki>{{:Current events</nowiki><br>
 +
  }}
 
{{#if:{{{year|}}}|{{!}}{year={{{{year|}}}<br>}}<!--
 
{{#if:{{{year|}}}|{{!}}{year={{{{year|}}}<br>}}<!--
 
-->{{#if:{{{month|}}}|{{!}}month={{{month|}}}<br>}}<!--
 
-->{{#if:{{{month|}}}|{{!}}month={{{month|}}}<br>}}<!--
Line 98: Line 125:
 
-->{{#if:{{{show|}}}|{{!}}show={{{show|}}}<br>}}<!--
 
-->{{#if:{{{show|}}}|{{!}}show={{{show|}}}<br>}}<!--
 
-->{{#if:{{{eventList|}}}|{{!}}eventList={{{eventList|}}}<br>}}<!--
 
-->{{#if:{{{eventList|}}}|{{!}}eventList={{{eventList|}}}<br>}}<!--
-->{{#if:{{{width|}}}|{{!}}width={{{width|}}}<br>}}<!--
+
-->{{#ifeq:{{{width|}}}|no||{{!}}width={{{width|}}}<br>}}<!--
 
-->{{#ifeq:{{{noadd|}}}|0||{{!}}noadd={{{noadd|}}}<br>}}<!--
 
-->{{#ifeq:{{{noadd|}}}|0||{{!}}noadd={{{noadd|}}}<br>}}<!--
-->{{#ifeq:{{{nolink|}}}|0||{{!}}nolink={{{nolink|}}}<br>}}<!--
+
-->{{#ifeq:{{{nolink|}}}|0||{{!}}nolink={{{nolink|}}}<br>}}
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
 
</includeonly>
 
</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

}}