Template:Event
From syn2cat - HackerSpace.lu
(Difference between revisions)
m |
m (SMW maintenance) |
||
| Line 51: | Line 51: | ||
|} | |} | ||
<!-- *** Let's automate the semantic info *** --> | <!-- *** Let's automate the semantic info *** --> | ||
| − | {{# | + | <!-- Switch Categories on eventtype --> |
| + | {{#switch: {{eventtype}} | ||
| + | | Meeting = [[Category:Meeting]] | ||
| + | | Workshop = [[Category:Workshop]] | ||
| + | | Camp | ||
| + | | Conference | ||
| + | | Party | ||
| + | | Event | ||
| + | | #default = [[Category:Event]] | ||
| + | }} | ||
| + | <!-- End Switch Category --> | ||
<!-- I'm not sure these are compatible --> | <!-- I'm not sure these are compatible --> | ||
{{#arraymap: {{#dates: | StartDate={{{from}}} | EndDate={{{till}}} }}|,|x|[[Has date::x| ]]| }} | {{#arraymap: {{#dates: | StartDate={{{from}}} | EndDate={{{till}}} }}|,|x|[[Has date::x| ]]| }} | ||
| + | [[Is U19::{{{u19}}}| ]] | ||
| + | {{#ifeq: {{{u19|}}} | yes | [[Category:U19]] }} | ||
<!-- Recurring Events --> | <!-- Recurring Events --> | ||
{{#ifeq: {{{recurring|}}} | daily | {{RecurringEvent | startDate={{{from}}} | endDate={{{till}}} | unit=day | period=1 }} }} | {{#ifeq: {{{recurring|}}} | daily | {{RecurringEvent | startDate={{{from}}} | endDate={{{till}}} | unit=day | period=1 }} }} | ||
| Line 76: | Line 88: | ||
| from= <Datetime> | | from= <Datetime> | ||
| till= <Datetime> | | till= <Datetime> | ||
| − | | | + | | recurring = <no, day, week, month, year> |
| cost=0€ | | cost=0€ | ||
| − | | | + | | u19 = <yes/no> |
| + | | location=Hackerspace, Strassen | ||
| contact= <comma-delimited list of the organisers> | | contact= <comma-delimited list of the organisers> | ||
| attendees = <string> Everyone | | attendees = <string> Everyone | ||
Revision as of 23:08, 1 May 2010
Usage
Copy and paste this code or simply use the Form:Event to add your event.
If you don't set a "till" date, the "from" date will be used.
{{Event
| logo = <filename>
| eventtype = <party, conference, camp, workshop, meeting>
| what = <event title>
| intro= <event description>
| from= <Datetime>
| till= <Datetime>
| recurring = <no, day, week, month, year>
| cost=0€
| u19 = <yes/no>
| location=Hackerspace, Strassen
| contact= <comma-delimited list of the organisers>
| attendees = <string> Everyone
| url=http://www.external.com
}}