Difference between revisions of "Template:DPL Calendar code generater zh-tw"
From FollowTheScore
Roc michael (talk | contribs) (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...) |
Roc michael (talk | contribs) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#form: | + | {{#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> {{#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> {{#input: name=purpose | value = {{{purpose|}}}}} 例「張三記事,李四記事」 (e.g: Michael's | + | <td> {{#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"> | + | <td align="right">顯示報表(eventList)</td> |
<td> {{#input: name=eventList | type=select | value = {{{eventList|}}} | | <td> {{#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> | + | <td align="right">寛度 (width) </td> |
− | <td> {{#input: name=width | value = {{{width|}}} }} | + | <td> {{#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> {{#input: name=noadd | type=select | value = {{{noadd|}}} | | <td> {{#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> {{#input: name=nolink | type=select | value = {{{nolink|}}} | | <td> {{#input: name=nolink | type=select | value = {{{nolink|}}} | | ||
− | * | + | *0 |
*1 | *1 | ||
}} | }} | ||
Line 70: | Line 84: | ||
<tr bgcolor="#eeffee"> | <tr bgcolor="#eeffee"> | ||
<td> | <td> | ||
− | {{#input: type = submit | value = 產生(Generate)}} <small>[[:Template:DPL Calendar code generater zh-tw|reset]] [[:Template:Catgraph|graph]]</small> | + | {{#input: type = submit | value = 產生(Generate)}} <small>[[:Template:DPL Calendar code generater zh-tw|放棄(reset)]] [[:Template:Catgraph|graph]]</small> |
</td></tr></table> | </td></tr></table> | ||
}} | }} | ||
Line 78: | Line 92: | ||
==== {{{name}}} ==== | ==== {{{name}}} ==== | ||
|}} | |}} | ||
− | {{ | + | {{:{{#switch: {{{lang}}} |
− | + | | English = Current events | |
− | + | | 中文 = Current events zh-tw | |
− | + | | Current events | |
− | + | }} | |
− | + | |year={{{year|}}} | |
− | + | |month={{{month|}}} | |
− | + | |namespace={{{namespace|}}} | |
− | | | + | |purpose={{#replace:{{{purpose|}}}|,|¦}} |
− | | | + | |show={{{show|}}} |
− | | | + | |eventList={{{eventList|}}} |
− | | | + | |width={{{width|}}} |
− | + | |noadd={{{noadd|}}} | |
− | | | + | |nolink={{{nolink|}}} |
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
---- | ---- | ||
− | <small><u> | + | <small><u>{{#switch: {{{lang}}} |
− | {{# | + | | 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:{{{month|}}}|{{!}}month={{{month|}}}<br>}}<!-- | |
− | + | -->{{#if:{{{namespace|}}}|{{!}}namespace={{{namespace|}}}<br>}}<!-- | |
− | + | -->{{#if:{{{purpose|}}}|{{!}}purpose={{#replace:{{{purpose|}}}|,|¦}}<br>}}<!-- | |
− | + | -->{{#if:{{{show|}}}|{{!}}show={{{show|}}}<br>}}<!-- | |
− | + | -->{{#if:{{{eventList|}}}|{{!}}eventList={{{eventList|}}}<br>}}<!-- | |
− | -->{{# | + | -->{{#ifeq:{{{width|}}}|no||{{!}}width={{{width|}}}<br>}}<!-- |
− | + | -->{{#ifeq:{{{noadd|}}}|0||{{!}}noadd={{{noadd|}}}<br>}}<!-- | |
− | -->{{# | + | -->{{#ifeq:{{{nolink|}}}|0||{{!}}nolink={{{nolink|}}}<br>}} |
− | + | <nowiki>}}</nowiki> | |
− | -->{{#if:{{{ | + | </includeonly> |
− | |||
− | -->{{# | ||
− | |||
− | -->{{# | ||
− | |||
− | -->{{#ifeq:{{{ | ||
− | |||
− | -->{{#ifeq:{{{ | ||
− | |||
− | -->{{#ifeq:{{{ | ||
− | |||
− | |||
− |
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 = |
}} |
指定年份(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) |
寛度 (width) | {{#input: name=width | value = 500px }}例: "100%" 或 "500px" |
無法新增記事(noadd) | {{#input: name=noadd | type=select | value = |
}} |
不顯示記事之超連結(nolink) | {{#input: name=nolink | type=select | value = |
}} |
{{#input: type = submit | value = 產生(Generate)}} 放棄(reset) graph |
}}