Template:Event
From syn2cat - HackerSpace.lu
(Difference between revisions)
m |
m |
||
Line 57: | Line 57: | ||
<!-- *** Let's automate the semantic info *** --> | <!-- *** Let's automate the semantic info *** --> | ||
<!-- Get coordinates in here --> | <!-- Get coordinates in here --> | ||
− | [[Has coordinates::{{#show: {{{location|}}} | ?Has coordinates }}]] | + | [[Has coordinates::{{#show: {{{location|}}} | ?Has coordinates }}| ]] |
<!-- Switch Categories on eventtype --> | <!-- Switch Categories on eventtype --> | ||
{{#switch: {{{eventtype}}} | {{#switch: {{{eventtype}}} | ||
Line 68: | Line 68: | ||
| #default = [[Category:Event]] | | #default = [[Category:Event]] | ||
}} | }} | ||
+ | [[Is U19::{{{u19}}}| ]] | ||
+ | {{#ifeq: {{{u19|}}} | yes | [[Category:U19]] }} | ||
<!-- End Switch Category --> | <!-- End Switch Category --> | ||
<!-- Only use the dates function on non-recurring events --> | <!-- Only use the dates function on non-recurring events --> | ||
{{#ifeq: {{{recurring}}} | no | {{#arraymap: {{#dates: | StartDate={{{from}}} | EndDate={{{till}}} }}|,|x|[[Has date::x| ]]| }} }} | {{#ifeq: {{{recurring}}} | no | {{#arraymap: {{#dates: | StartDate={{{from}}} | EndDate={{{till}}} }}|,|x|[[Has date::x| ]]| }} }} | ||
− | |||
− | |||
<!-- Recurring Events Replace by switch?! --> | <!-- Recurring Events Replace by switch?! --> | ||
{{#ifeq: {{{recurring|}}} | daily | {{RecurringEvent | startDate={{{from}}} | endDate={{{till}}} | unit=day | period=1 }} }} | {{#ifeq: {{{recurring|}}} | daily | {{RecurringEvent | startDate={{{from}}} | endDate={{{till}}} | unit=day | period=1 }} }} |
Revision as of 16:03, 2 June 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.website.com }}