Calendar zh-tw

出自 新化國中wiki平台
前往: 導覽搜尋

English 中文(Chinese)

這是 DPL Calendar 的官方中文網頁。

概說 (Concept)

  • 如果您運用數個極受歡迎的外掛,則您即可以wiki語法來產生一個行事曆。(If you combine the power of some popular extensions it is possible to write a calendaring application completely in wiki code.)
  • 它相較於使用php程式設計的方式更為有彈性。(This is very flexible compared to php programming.)

結構(Architecture)

{{#wgraph: svg| thumb=90 |

node Current_events {type cal}
node 2007-09-28-Event_A {}
node YYYY-10-04-Event_B   {}
 node 2007-10-19-Event_C   {}
node Event                                     {type tpl}
node CatEvent                                  {type category label Events}
node CatHoliday                                {type category label Holiday}
edge Event CatEvent                            {type cat}
node Event_template                            {type editsample}
node Event_intro                               {type editintro}
edge Event_intro          Event_template       {kind rightnear type editintro}
edge 2007-09-28-Event_A   Event                {type incl}
edge YYYY-10-04-Event_B   Event                {type incl}
edge YYYY-10-04-Event_B   CatHoliday           {type catgeory}
edge 2007-10-19-Event_C   Event                {type incl}
edge Event_template       2007-09-28-Event_A   {type edit}
edge Event_template       YYYY-10-04-Event_B   {type edit}
edge Event_template       2007-10-19-Event_C   {type edit}
edge Event_template       Event                {type incl}
edge Current_events       Calendar_month       {type incl}
node Calendar_month                            {type tpl}
node CalendarSingle                            {type tpl}
node Calendar_link                             {type tpl}
edge Calendar_month       2007-09-28-Event_A   {type dpl}
edge Calendar_month       YYYY-10-04-Event_B   {type dpl}
edge Calendar_month       2007-10-19-Event_C   {type dpl}
edge Calendar_month       CalendarSingle       {type incl}
edge CalendarSingle       Calendar_link        {type incl}
edge CalendarSingle       Current_events       {type link label 'next month
prev. month' }
node Calendar/MonthStartMon                    {type tpl}
node Calendar/MonthStartTue                    {type tpl}
edge CalendarSingle    Calendar/MonthStartMon  {type incl}
edge CalendarSingle    Calendar/MonthStartTue  {type incl}
nodetype tpl        {color yellow    }
nodetype category   {color lightgreen}
nodetype cal        {color lightblue }
nodetype editsample {color lightcyan }
nodetype editintro  {color lightcyan }
nodetype *          {color #ffdddd bordercolor darkgray}
edgetype incl  {color darkgray}
edgetype link  {color blue}
edgetype cat   {color darkgreen}
edgetype dpl   {color red thickness 4 label 'DPL query'}
edgetype edit  {linestyle dotted color blue}
node.fontname helvR10

}}

  • Templates are in yellow.
  • The pages describing an event are in red. Their names must start with the date of the event (format: YYYY-MM-DD) or with 'YYYY-' plus month and day (for recurring yearly events).
  • We use two edit helpers (in cyan) when event pages are created.
  • The entry page for the calendar (Current events) is in blue.
  • Categories are in green.

The design is as follows:

  1. The user calls the entry page Current events zh-tw. Be careful if you change its name: The name of this page must be passed as an argument (named 'basepage') to the template 'Calendar month'.
  2. The basepage can be called by the user without any arguments. Then it uses a date function to calculate the current month. It can also be called from another calendar page - in which case the desired year & month are passed as parameters via the Call extension. There are more parameters for Current events - see the explanation below.
  3. Template 'Calendar month' ...
    • shows the calendar box. The calendar box contains the titles of the event pages (the first part of the titles´ names which contain the resp. date is suppressed). Below the calendar there is an optional event list which shows either all events of the current month or all events regardless of month.
    • expects a 'purpose' parameter. If this parameter is set it acts as a filter, i.e. only events will be shown which belong to a category with the name of the 'purpose'. This allows you to have several calendars in parallel
    • uses a DPL query to find all articles in category 'Event' which belong to the selected year/month
    • shows the selected articles in a list, together with some selected chapters (like Participants ..) and with their categories
    • offers a link to create new events (using the edit template "Event template")


安裝(Installation)

安裝外掛(Install extensions)

您需要:

  1. 從本站下載 (經由 Download頁面下載後解壓縮)
    • DPL 外掛
    • Call 外掛
    • Inputbox 外掛 (此版本與官方版本有些許的差異)
  2. 從 mediawiki.org:

The process of installation is the same as always: create a directory per extension in the 'extension' folder and put a 'require_once' statement into your LocalSettings.php.

安裝行事曆樣板(Install Calendar Templates)

複製(Copy) / 貼上(paste)以下的頁面至Special:export 然後將此頁所產出的 XML 文字檔 匯入您的wiki:

Current events zh-tw
Template:Calendar month zh-tw
Template:CalendarSingle zh-tw
Template:Calendar link
Template:Calendar/MonthStartMon
Template:Calendar/MonthStartTue
Template:Calendar/MonthStartWed
Template:Calendar/MonthStartThu
Template:Calendar/MonthStartFri
Template:Calendar/MonthStartSat
Template:Calendar/MonthStartSun
Template:!
Template:(!
Template:!)
Event template
Event intro
Template:Event
Template:Create Event
Talk:Calendar zh-tw
Calendar zh-tw/Demo
Template:DPL Calendar code generater zh-tw
Calendar zh-tw
Calendar

以下是英文版 (Followed pages are English version)

Current events
Template:Calendar month
Template:CalendarSingle
Template:Calendar link
Template:Calendar/MonthStartMon
Template:Calendar/MonthStartTue
Template:Calendar/MonthStartWed
Template:Calendar/MonthStartThu
Template:Calendar/MonthStartFri
Template:Calendar/MonthStartSat
Template:Calendar/MonthStartSun
Template:!
Template:(!
Template:!)
Event template
Event intro
Template:Event
Template:Create Event

使用方式(Using the calendar)

建立一個用以描述記事(events)的新文件,您可以點選行事曆上的日期數字或是以其他方式自行建置一個符合行事曆命名規範的文件。

  • 請依照下列的命名規範:頁面名稱須以日期(date)為起首 (如"YYYY-MM-DD"其後再加些簡短的描述。
    例如: "2007-10-31 一些重要的事情"
  • 請記得該文件須隸屬於'Events'此一分類(category),如果您在文件的第一行使用了"Event"樣板,則其自動完成此一設定。
  • 如有必要,您請可另行增加其他分類 (像是[[Category:假日]] ),這樣的話該資訊亦會顯示於行事曆下方的表格(event table)之中。
  • 您可以'YYYY'的方式來定義每年一度重複性(yearly recurring events)的記事。
    例如"YYYY-12-24 耶誕夜"
  • 同樣的您可以'YYYY-MM'的方式來定義每個月重複性(yearly recurring events)的記事。
    例如"YYYY-MM-05 領薪水"

目前尚無法以其他方式定義經常性的記事。

客製化Customizing

如您想要客製化此一行事曆,請您撥冗查閱一下DPL的使用手冊(DPL manual)特別是include 參數及format 參數。在我們的範例中Template:calendar month zh-tw, 設有:

#Summary,#Participants,#Location
#主旨,#參加人員,#地點

分別將顯示 Summary, ParticipantsLocation 等章節。(which means to take the content of Summary, Participants and Location sections.)

You could modify the name of sections, the number of sections or even take the parameters of a template inside the event page. Again, see the DPL manual.

Demo

您可以如下的方式使用{{:Current events zh-tw|namespace=Test|purpose=Michael's events¦dpl group's event|width=500px}} 此行事曆有如下的參數(parameters):

  • year - 預設值為今年。
  • month - 預設值為本月。
  • purpose - 可不設定本參數,一經設定本參數後,則僅屬於指定分類(category)的記事(events)才會被顯示出來,本項目可以設定多個項目,以管線符號(¦)來分隔多項。
  • namespace - 可不設定本參數,一經設定本參數後,則僅屬於指定名字空間(namespace)的記事(events)才會被顯示出來,且新增記事時該頁面名稱也會配套的使用該名字空間。
  • show - 可不設定本參數,或設定記事頁面中的章節名稱(chpater name),而該章節的內容則會在行事曆中被顯示出來,若內容含有圖片(images)時,該圖片亦會被顯示出來。
  • eventList = {no|current|all}, 預設值為'current';可產生一可表格式的報表來呈現您所指定的記事(events)。
  • width = 可不設定本參數,或指定一寬度值像是'500px' 或 '100%'; 預設值為將使您的行事曆以最小面積的方式來呈現。
  • noadd = 可不設定本參數或可設為 '1'; 當您設定此一參數為'1'時,則此一行事曆將不會顯示可用於新增記事的超連結(link)。
  • nolink = 可不設定本參數或可設為 '1'; 當您設定此一參數為'1'時,則此一行事曆上的記事將不會顯示可連到該頁面的超連結(link)而是由該日的日期提供您連至頁面所需的超連結,使用此一參數配合"eventList=no" 則是不合理的使用方式。如果此參數設為'1'則noadd參數也就設為'1'了。
{{:Current events zh-tw|namespace=Test|purpose=Michael's events¦dpl group's event|width=500px}}

{{#vardefine:year

 |{{#if:
 |{{#replace:{{{year}}}
    |/YYYY/
    |{{#time:Y}}
  }}
 |{{#time:Y}}}}}}{{#vardefine:month
    |{{#if:
    |{{#replace:{{{month}}}
       |/MM/
       |{{#time:m}}
     }}|{{#time:m}}}}}} {{#vardefine:width|500px}}{{#vardefine:noadd|}}{{#vardefine:nolink|}}{{#vardefine:purpose|Michael's events¦dpl group's event}}{{#vardefine:show|{{#if:
    |#{{{show}}}
  }}}}{{#vardefine:namespace|Test}}
{{Calendar/MonthStart{{#time:D|{{#var:year}}-{{#var:month}}-01 +1 second}} {{#if:{{#var:year}}|
[[Special:Call/:Template:Calendar month zh-tw,year={{#time:Y|{{#var:year}}-{{#var:month}}-03 -1 month}},month={{#time:m|{{#var:year}}-{{#var:month}}-03 -1 month}},basepage=Template:Calendar month zh-tw,eventList=current,purpose={{#var:purpose}},nolink={{#var:nolink}},noadd={{#var:noadd}},show={{#var:show}},namespace={{#var:namespace}},width={{#var:width}}|<<]]

{{#time:F|{{#var:year}}-{{#var:month}}-03}} ({{#time:n|{{#var:year}}-{{#var:month}}-03}}月) {{#if:{{#var:purpose}}


{{#replace:
        {{#replace:
          {{#replace:²²:Category:{{#var:purpose}}³³
¦ ³³, ²²:Category:
          }}
² [
        }}
³ ]
      }}

}}

[[Special:Call/:Template:Calendar month zh-tw,year={{#time:Y|{{#var:year}}-{{#var:month}}-03 +1 month}},month={{#time:m|{{#var:year}}-{{#var:month}}-03 +1 month}},basepage=Template:Calendar month zh-tw,eventList=current,purpose={{#var:purpose}},nolink={{#var:nolink}},noadd={{#var:noadd}},show={{#var:show}},namespace={{#var:namespace}},width={{#var:width}}|>>]]
01={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-01%|YYYY-{{#var:month}}-01%|YYYY-MM-01% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-01,namespace={{#var:namespace}}|01]]
\n
noresultsheader=valign=top|01
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-01,namespace={{#var:namespace}}|01]]
,%TITLE%,
\n
format=valign=top|01
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,01,}} noresultsheader=01}}

}}

02={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-02%|YYYY-{{#var:month}}-02%|YYYY-MM-02% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-02,namespace={{#var:namespace}}|02]]
\n
noresultsheader=valign=top|02
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-02,namespace={{#var:namespace}}|02]]
,%TITLE%,
\n
format=valign=top|02
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,02,}} noresultsheader=02}}

}}

03={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-03%|YYYY-{{#var:month}}-03%|YYYY-MM-03% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-03,namespace={{#var:namespace}}|03]]
\n
noresultsheader=valign=top|03
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-03,namespace={{#var:namespace}}|03]]
,%TITLE%,
\n
format=valign=top|03
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,03,}} noresultsheader=03}}

}}

04={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-04%|YYYY-{{#var:month}}-04%|YYYY-MM-04% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-04,namespace={{#var:namespace}}|04]]
\n
noresultsheader=valign=top|04
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-04,namespace={{#var:namespace}}|04]]
,%TITLE%,
\n
format=valign=top|04
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,04,}} noresultsheader=04}}

}}

05={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-05%|YYYY-{{#var:month}}-05%|YYYY-MM-05% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-05,namespace={{#var:namespace}}|05]]
\n
noresultsheader=valign=top|05
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-05,namespace={{#var:namespace}}|05]]
,%TITLE%,
\n
format=valign=top|05
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,05,}} noresultsheader=05}}

}}

06={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-06%|YYYY-{{#var:month}}-06%|YYYY-MM-06% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-06,namespace={{#var:namespace}}|06]]
\n
noresultsheader=valign=top|06
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-06,namespace={{#var:namespace}}|06]]
,%TITLE%,
\n
format=valign=top|06
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,06,}} noresultsheader=06}}

}}

07={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-07%|YYYY-{{#var:month}}-07%|YYYY-MM-07% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-07,namespace={{#var:namespace}}|07]]
\n
noresultsheader=valign=top|07
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-07,namespace={{#var:namespace}}|07]]
,%TITLE%,
\n
format=valign=top|07
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,07,}} noresultsheader=07}}

}}

08={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-08%|YYYY-{{#var:month}}-08%|YYYY-MM-08% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-08,namespace={{#var:namespace}}|08]]
\n
noresultsheader=valign=top|08
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-08,namespace={{#var:namespace}}|08]]
,%TITLE%,
\n
format=valign=top|08
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,08,}} noresultsheader=08}}

}}

09={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-09%|YYYY-{{#var:month}}-09%|YYYY-MM-09% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-09,namespace={{#var:namespace}}|09]]
\n
noresultsheader=valign=top|09
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-09,namespace={{#var:namespace}}|09]]
,%TITLE%,
\n
format=valign=top|09
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,09,}} noresultsheader=09}}

}}

10={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-10%|YYYY-{{#var:month}}-10%|YYYY-MM-10% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-10,namespace={{#var:namespace}}|10]]
\n
noresultsheader=valign=top|10
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-10,namespace={{#var:namespace}}|10]]
,%TITLE%,
\n
format=valign=top|10
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,10,}} noresultsheader=10}}

}}

11={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-11%|YYYY-{{#var:month}}-11%|YYYY-MM-11% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-11,namespace={{#var:namespace}}|11]]
\n
noresultsheader=valign=top|11
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-11,namespace={{#var:namespace}}|11]]
,%TITLE%,
\n
format=valign=top|11
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,11,}} noresultsheader=11}}

}}

12={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-12%|YYYY-{{#var:month}}-12%|YYYY-MM-12% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-12,namespace={{#var:namespace}}|12]]
\n
noresultsheader=valign=top|12
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-12,namespace={{#var:namespace}}|12]]
,%TITLE%,
\n
format=valign=top|12
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,12,}} noresultsheader=12}}

}}

13={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-13%|YYYY-{{#var:month}}-13%|YYYY-MM-13% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-13,namespace={{#var:namespace}}|13]]
\n
noresultsheader=valign=top|13
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-13,namespace={{#var:namespace}}|13]]
,%TITLE%,
\n
format=valign=top|13
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,13,}} noresultsheader=13}}

}}

14={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-14%|YYYY-{{#var:month}}-14%|YYYY-MM-14% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-14,namespace={{#var:namespace}}|14]]
\n
noresultsheader=valign=top|14
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-14,namespace={{#var:namespace}}|14]]
,%TITLE%,
\n
format=valign=top|14
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,14,}} noresultsheader=14}}

}}

15={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-15%|YYYY-{{#var:month}}-15%|YYYY-MM-15% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-15,namespace={{#var:namespace}}|15]]
\n
noresultsheader=valign=top|15
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-15,namespace={{#var:namespace}}|15]]
,%TITLE%,
\n
format=valign=top|15
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,15,}} noresultsheader=15}}

}}

16={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-16%|YYYY-{{#var:month}}-16%|YYYY-MM-16% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-16,namespace={{#var:namespace}}|16]]
\n
noresultsheader=valign=top|16
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-16,namespace={{#var:namespace}}|16]]
,%TITLE%,
\n
format=valign=top|16
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,16,}} noresultsheader=16}}

}}

17={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-17%|YYYY-{{#var:month}}-17%|YYYY-MM-17% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-17,namespace={{#var:namespace}}|17]]
\n
noresultsheader=valign=top|17
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-17,namespace={{#var:namespace}}|17]]
,%TITLE%,
\n
format=valign=top|17
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,17,}} noresultsheader=17}}

}}

18={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-18%|YYYY-{{#var:month}}-18%|YYYY-MM-18% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-18,namespace={{#var:namespace}}|18]]
\n
noresultsheader=valign=top|18
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-18,namespace={{#var:namespace}}|18]]
,%TITLE%,
\n
format=valign=top|18
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,18,}} noresultsheader=18}}

}}

19={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-19%|YYYY-{{#var:month}}-19%|YYYY-MM-19% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-19,namespace={{#var:namespace}}|19]]
\n
noresultsheader=valign=top|19
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-19,namespace={{#var:namespace}}|19]]
,%TITLE%,
\n
format=valign=top|19
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,19,}} noresultsheader=19}}

}}

20={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-20%|YYYY-{{#var:month}}-20%|YYYY-MM-20% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-20,namespace={{#var:namespace}}|20]]
\n
noresultsheader=valign=top|20
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-20,namespace={{#var:namespace}}|20]]
,%TITLE%,
\n
format=valign=top|20
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,20,}} noresultsheader=20}}

}}

21={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-21%|YYYY-{{#var:month}}-21%|YYYY-MM-21% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-21,namespace={{#var:namespace}}|21]]
\n
noresultsheader=valign=top|21
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-21,namespace={{#var:namespace}}|21]]
,%TITLE%,
\n
format=valign=top|21
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,21,}} noresultsheader=21}}

}}

22={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-22%|YYYY-{{#var:month}}-22%|YYYY-MM-22% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-22,namespace={{#var:namespace}}|22]]
\n
noresultsheader=valign=top|22
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-22,namespace={{#var:namespace}}|22]]
,%TITLE%,
\n
format=valign=top|22
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,22,}} noresultsheader=22}}

}}

23={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-23%|YYYY-{{#var:month}}-23%|YYYY-MM-23% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-23,namespace={{#var:namespace}}|23]]
\n
noresultsheader=valign=top|23
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-23,namespace={{#var:namespace}}|23]]
,%TITLE%,
\n
format=valign=top|23
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,23,}} noresultsheader=23}}

}}

24={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-24%|YYYY-{{#var:month}}-24%|YYYY-MM-24% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-24,namespace={{#var:namespace}}|24]]
\n
noresultsheader=valign=top|24
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-24,namespace={{#var:namespace}}|24]]
,%TITLE%,
\n
format=valign=top|24
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,24,}} noresultsheader=24}}

}}

25={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-25%|YYYY-{{#var:month}}-25%|YYYY-MM-25% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-25,namespace={{#var:namespace}}|25]]
\n
noresultsheader=valign=top|25
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-25,namespace={{#var:namespace}}|25]]
,%TITLE%,
\n
format=valign=top|25
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,25,}} noresultsheader=25}}

}}

26={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-26%|YYYY-{{#var:month}}-26%|YYYY-MM-26% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-26,namespace={{#var:namespace}}|26]]
\n
noresultsheader=valign=top|26
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-26,namespace={{#var:namespace}}|26]]
,%TITLE%,
\n
format=valign=top|26
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,26,}} noresultsheader=26}}

}}

27={{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-27%|YYYY-{{#var:month}}-27%|YYYY-MM-27% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-27,namespace={{#var:namespace}}|27]]
\n
noresultsheader=valign=top|27
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-27,namespace={{#var:namespace}}|27]]
,%TITLE%,
\n
format=valign=top|27
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,27,}} noresultsheader=27}}

}}

{{#var:year}}-{{#var:month}}-01}} >= 28 {{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-28%|YYYY-{{#var:month}}-28%|YYYY-MM-28% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-28,namespace={{#var:namespace}}|28]]
\n
noresultsheader=valign=top|28
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-28,namespace={{#var:namespace}}|28]]
,%TITLE%,
\n
format=valign=top|28
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,28,}} noresultsheader=28}}

}} }}

{{#var:year}}-{{#var:month}}-01}} >= 29 {{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-29%|YYYY-{{#var:month}}-29%|YYYY-MM-29% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-29,namespace={{#var:namespace}}|29]]
\n
noresultsheader=valign=top|29
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-29,namespace={{#var:namespace}}|29]]
,%TITLE%,
\n
format=valign=top|29
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,29,}} noresultsheader=29}}

}} }}

{{#var:year}}-{{#var:month}}-01}} >= 30 {{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-30%|YYYY-{{#var:month}}-30%|YYYY-MM-30% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-30,namespace={{#var:namespace}}|30]]
\n
noresultsheader=valign=top|30
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-30,namespace={{#var:namespace}}|30]]
,%TITLE%,
\n
format=valign=top|30
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,30,}} noresultsheader=30}}

}} }}

{{#var:year}}-{{#var:month}}-01}} >= 31 {{#dpl:debug=0 namespace={{#var:namespace}}}} category=Events category={{#var:purpose}}}} mode=userformat titlematch={{#var:year}}-{{#var:month}}-31%|YYYY-{{#var:month}}-31%|YYYY-MM-31% ordermethod=title replaceintitle=/^[0-9Yy]*[-\/][01Mm][0-9Mm][-\/][0-3][0-9]/, [[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-31,namespace={{#var:namespace}}|31]]
\n
noresultsheader=valign=top|31
\n}}
[[Special:Call/create Event,prefix={{#var:year}}-{{#var:month}}-31,namespace={{#var:namespace}}|31]]
,%TITLE%,
\n
format=valign=top|31
,%TITLE%,
\n}}
include={{#var:show}}}} order=descending count=1}} format=,31,}} noresultsheader=31}}

}} }}

{{#var:year}}}}

}}

{{#var:year}}

}}

   

{{#switch:current

all=[[Special:Call/Calendar month,eventList=current,basepage=Current events,year={{#var:year}},month={{#var:month}},purpose={{#var:purpose}}|current events]] no=[[Special:Call/Calendar month,eventList=current,basepage=Current events,year={{#var:year}},month={{#var:month}},purpose={{#var:purpose}}|current events]] current=[[Special:Call/Calendar month,eventList=all,basepage=Current events,year={{#var:year}},month={{#var:month}},purpose={{#var:purpose}}|all events]]

}}

{{#dpl:debug=1

 |{{#if:Test|namespace=Test}}
 |notnamespace=Template
 |{{#if:Michael's events¦dpl group's event|category=Michael's events¦dpl group's event}}
 |category=Events
 |{{#ifeq:current|no|category=does not exist ..}}
 |{{#ifeq:current
 |all
 |
 |titlematch={{#var:year}}-{{#var:month}}-%|YYYY-{{#var:month}}-%|YYYY-MM-%}}
 |include=#Summary,#Participants,#Location
 |mode=userformat
 |resultsheader=There are %PAGES% events planned{{#ifeq:current
    |current
    | this month}}.¶
    |noresultsheader={{#ifeq:current
                       |no
                       |
                       |No events planned.¶
                     }}
|listseparators={¦ class="sortable" ¶!Date / Event name ¶!Event summary ¶!Participants ¶!Location ¶!Categories,¶¦-¶¦
%TITLE%
,¶¦ %CATLIST%,¶¦}
 |secseparators=¶¦
 |ordermethod=title
 |addcategories=true
 |addnamespace=no
 |order=ascending

}}

行事曆程式碼產生器(中文版)

{{#form: name=demo |action={{#replace:/wiki/Calendar_zh-tw

                           |%^([\/]\S*[index.php])([\/])([Calendar 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

}}

{{#if:|

{{{name}}}

|}} {{:{{#switch: {{{lang}}}

    | English = Current events
    | 中文 = Current events zh-tw
    | Current events
  }}
|year=
|month=
|namespace=
|purpose={{#replace:|,|¦}}
|show=
|eventList=
|width=
|noadd=
|nolink=

}}


{{#switch: {{{lang}}}

    | English =Your query used the following parameters:
    | 中文 = 您使用如下的查詢參數:
    | Your query used the following parameters:
  }}


{{#switch: {{{lang}}}

    | English = {{:Current events
| 中文 = {{:Current events zh-tw
| {{:Current events
}}

{{#if:||{year={
}}{{#if:||month=
}}{{#if:||namespace=
}}{{#if:||purpose={{#replace:|,|¦}}
}}{{#if:||show=
}}{{#if:||eventList=
}}{{#ifeq:|no|||width=
}}{{#ifeq:|0|||noadd=
}}{{#ifeq:|0|||nolink=
}} }}