Difference between revisions of "Test calendar"
From FollowTheScore
Ycombarnous (talk | contribs) m |
Ycombarnous (talk | contribs) m |
||
| Line 1: | Line 1: | ||
| + | __NOTOC__ | ||
| + | ==Explanation== | ||
| + | This is a calendaring application based on DPL functionality. | ||
| + | |||
| + | How to use it for your websites: | ||
| + | #Download the following templates, and create them into your wiki: | ||
| + | #*[[Template:CalendarSingle]] | ||
| + | #*[[Template:Calendar link]] | ||
| + | #*[[Template:Calendar anchor]] | ||
| + | #*[[Template:Calendar/MonthStartMon]] | ||
| + | #*[[Template:Calendar/MonthStartTue]] | ||
| + | #*[[Template:Calendar/MonthStartWed]] | ||
| + | #*[[Template:Calendar/MonthStartThu]] | ||
| + | #*[[Template:Calendar/MonthStartFri]] | ||
| + | #*[[Template:Calendar/MonthStartSat]] | ||
| + | #*[[Template:Calendar/MonthStartSun]] | ||
| + | #*[[Event template]] | ||
| + | #Download the extensions "parserfunctions" and "inputbox" from mediawiki website. | ||
| + | #Now, create the base page where the current month calendar will be created (like "Current events"), and insert below code in it: | ||
| + | <pre> | ||
| + | {{:Test calendar {{#time: F Y}}}} | ||
| + | </pre> | ||
| + | #Finally, create one page per month with the format "base page Month year" (example: "Current events April 2007"), insert below code and make sure to replace "2007/04" below by the month and year from the current page name) | ||
| + | <pre> | ||
| + | {| | ||
| + | |<inputbox> | ||
| + | type=create | ||
| + | buttonlabel=create new Event | ||
| + | width=25 | ||
| + | default=2007/04/05 my event name | ||
| + | preload=Event template | ||
| + | break=no | ||
| + | </inputbox> | ||
| + | |} | ||
| + | |||
| + | {{#dpl:category=Events | ||
| + | |titlematch=2007/04% | ||
| + | |include=#Summary,#Participants | ||
| + | |mode=userformat | ||
| + | |listseparators=¶{¦ class="wikitable" ¶!Date / Event name ¶!Categories ¶!Event summary ¶!Participants,¶¦-¶¦<h5>[[%PAGE%]]</h5>¶¦ %CATLIST%,,¶¦} | ||
| + | |secseparators=¶¦ | ||
| + | |ordermethod=title | ||
| + | |addcategories=true | ||
| + | |order=descending | ||
| + | }} | ||
| + | |||
| + | </pre> | ||
| + | # To create a custom event, edit the template [[Event template]], and edit the above DPL. | ||
| + | |||
| + | ==Demo== | ||
{{:Test calendar {{#time: F Y}}}} | {{:Test calendar {{#time: F Y}}}} | ||
[[Category:Test]] | [[Category:Test]] | ||
Revision as of 21:49, 28 March 2007
Explanation
This is a calendaring application based on DPL functionality.
How to use it for your websites:
- Download the following templates, and create them into your wiki:
- Template:CalendarSingle
- Template:Calendar link
- Template:Calendar anchor
- Template:Calendar/MonthStartMon
- Template:Calendar/MonthStartTue
- Template:Calendar/MonthStartWed
- Template:Calendar/MonthStartThu
- Template:Calendar/MonthStartFri
- Template:Calendar/MonthStartSat
- Template:Calendar/MonthStartSun
- Event template
- Download the extensions "parserfunctions" and "inputbox" from mediawiki website.
- Now, create the base page where the current month calendar will be created (like "Current events"), and insert below code in it:
{{:Test calendar {{#time: F Y}}}}
- Finally, create one page per month with the format "base page Month year" (example: "Current events April 2007"), insert below code and make sure to replace "2007/04" below by the month and year from the current page name)
{|
|<inputbox>
type=create
buttonlabel=create new Event
width=25
default=2007/04/05 my event name
preload=Event template
break=no
</inputbox>
|}
{{#dpl:category=Events
|titlematch=2007/04%
|include=#Summary,#Participants
|mode=userformat
|listseparators=¶{¦ class="wikitable" ¶!Date / Event name ¶!Categories ¶!Event summary ¶!Participants,¶¦-¶¦<h5>[[%PAGE%]]</h5>¶¦ %CATLIST%,,¶¦}
|secseparators=¶¦
|ordermethod=title
|addcategories=true
|order=descending
}}
- To create a custom event, edit the template Event template, and edit the above DPL.