|
|
| Line 1: |
Line 1: |
| {{Calendar navigation}}
| | << [[MediaWiki]] |
| | |
| 這是 '''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<br>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:
| |
| # 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'.
| |
| # 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.
| |
| # 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")
| |
|
| |
|
| | * official: [http://www.mediawiki.org/wiki/Extension:DPL_Calendar Extension:DPL Calendar - MediaWiki] |
| | ** 本文件修改自[http://semeb.com/dpldemo/index.php?title=Calendar_zh-tw DPL Calendar 的官方中文網頁] |
|
| |
|
| == 安裝(Installation) == | | == 安裝(Installation) == |
|
| |
|
| === 安裝外掛(Install extensions) === | | === 安裝擴充套件(Install extensions) === |
|
| |
|
| 您需要: | | 您需要: |
| # 從本站下載 (經由 [[Download]]頁面下載後解壓縮) | | # 從DPL Calendar官方網站 [http://semeb.com/dpldemo/index.php?title=Download Download]頁面下載後解壓縮) |
| #* DPL 外掛 | | #* DPL 外掛 |
| #* Call 外掛 | | #* Call 外掛 |
| #* Inputbox 外掛 (此版本與官方版本有些許的差異) | | #* Inputbox 外掛 (此版本與官方版本有些許的差異) |
| #從 mediawiki.org: | | #從 mediawiki.org: |
| #* [[mw:Extension:VariablesExtension]] | | #* [http://www.mediawiki.org/wiki/Extension:VariablesExtension Extension:VariablesExtension] |
| #* [[mw:Extension:StringFunctions]] -- 於本站內的版本[[StringFunctions extension|StringFunctions]]則為小幅度功能增強版本,其可使用正則表達式( regular expressions); 雖然並非必須,但還是建議您使用本站所提供之版本。 | | #* [http://www.mediawiki.org/wiki/Extension:StringFunctions Extension:StringFunctions] -- 於DPL Calendar官方網站內的版本[http://semeb.com/dpldemo/index.php?title=StringFunctions_extension StringFunctions]則為小幅度功能增強版本,可使用正則表達式( regular expressions); 雖然並非必須,但還是建議您使用DPL Calendar官方網站所提供之版本。 |
| #* [http://meta.wikimedia.org/wiki/Help:ParserFunctions#Installation Extension:ParserFunctions] | | #* [http://meta.wikimedia.org/wiki/Help:ParserFunctions#Installation Extension:ParserFunctions] |
|
| |
|
| Line 106: |
Line 28: |
| [[Template:Calendar month zh-tw]] | | [[Template:Calendar month zh-tw]] |
| [[Template:CalendarSingle zh-tw]] | | [[Template:CalendarSingle zh-tw]] |
| [[Template:Calendar link]] | | [[Template:Calendar link zh-tw]] |
| [[Template:Calendar/MonthStartMon]] | | [[Template:Calendar/MonthStartMon]] |
| [[Template:Calendar/MonthStartTue]] | | [[Template:Calendar/MonthStartTue]] |
| Line 117: |
Line 39: |
| [[Template:(!]] | | [[Template:(!]] |
| [[Template:!)]] | | [[Template:!)]] |
| [[Event template]] | | [[Template:活動模版]] |
| [[Event intro]] | | [[Event intro]] |
| [[Template:Event]] | | [[Template:Event]] |
| [[Template:Create Event]] | | [[Template:新增活動]] |
| [[Talk:Calendar zh-tw]]
| |
| [[Calendar zh-tw/Demo]] | | [[Calendar zh-tw/Demo]] |
| [[Template:DPL Calendar code generater zh-tw]] | | [[Wiki Calendar]] |
| [[Calendar zh-tw]]
| |
| [[Calendar]]
| |
| </small> | | </small> |
|
| |
|
| 以下是英文版 (Followed pages are English version)
| |
| <small>
| |
| [[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]]
| |
| </small>
| |
|
| |
|
| === 使用方式(Using the calendar) === | | === 使用方式(Using the calendar) === |
| Line 174: |
Line 72: |
| 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. | | 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. |
|
| |
|
| ==[[Calendar zh-tw/Demo|Demo]]==
| | |
| {{:Calendar zh-tw/Demo}}
| |
| ==行事曆程式碼產生器(中文版)== | | ==行事曆程式碼產生器(中文版)== |
| {{DPL Calendar code generater zh-tw}}
| | [http://semeb.com/dpldemo/index.php?title=Calendar_zh-tw#.E8.A1.8C.E4.BA.8B.E6.9B.86.E7.A8.8B.E5.BC.8F.E7.A2.BC.E7.94.A2.E7.94.9F.E5.99.A8.28.E4.B8.AD.E6.96.87.E7.89.88.29 行事曆程式碼產生器(中文版)] |
| | |
| | |
| | [[Category:MediaWiki]] |