Template:Event
From syn2cat - HackerSpace.lu
(Difference between revisions)
m (no it is not :( but what about the dates function?) |
m (made till mandatory) |
||
| Line 24: | Line 24: | ||
| style="padding: 0 7px;" | '''[[Template:Event#From|From]]''': || [[StartDate::{{{from}}}]] | | style="padding: 0 7px;" | '''[[Template:Event#From|From]]''': || [[StartDate::{{{from}}}]] | ||
|- | |- | ||
| − | | style="padding: 0 7px;" | '''[[Template:Event#Till|Till]]''': || [[EndDate: | + | | style="padding: 0 7px;" | '''[[Template:Event#Till|Till]]''': || [[EndDate::{{{till}}}]] |
|- | |- | ||
| − | | style="padding: 0 7px;" | '''[[Template:Event#iCal|Add to your calendar]]''': | | + | | style="padding: 0 7px;" | '''[[Template:Event#iCal|Add to your calendar]]''': || Download {{#show: {{PAGENAME}} | ?Has PageName | ?StartDate = start | ?EndDate = end | format=icalendar |icalendartitle=syn2cat-{{PAGENAME}} }} |
|- | |- | ||
| style="padding: 0 7px;" | '''[[Template:Event#Recurring|Recurring]]''': || [[Is Recurring::{{{recurring|}}}]] | | style="padding: 0 7px;" | '''[[Template:Event#Recurring|Recurring]]''': || [[Is Recurring::{{{recurring|}}}]] | ||
| Line 72: | Line 72: | ||
{{#set:Is U19={{{u19}}}|Has PageName={{FULLPAGENAME}}|Has coordinates={{#show: {{{location|}}} | ?Has coordinates|link=none}} }} | {{#set:Is U19={{{u19}}}|Has PageName={{FULLPAGENAME}}|Has coordinates={{#show: {{{location|}}} | ?Has coordinates|link=none}} }} | ||
<!-- Only use the dates function on non-recurring events, else add to the RecurringEvent category --> | <!-- Only use the dates function on non-recurring events, else add to the RecurringEvent category --> | ||
| − | |||
{{#ifeq: {{{recurring|}}} | no | {{#arraymap: {{#dates: | StartDate={{{from}}} | EndDate={{{till}}} }}|,|x|[[Has date::x| ]] | }} | [[Category:RecurringEvent]] }} | {{#ifeq: {{{recurring|}}} | no | {{#arraymap: {{#dates: | StartDate={{{from}}} | EndDate={{{till}}} }}|,|x|[[Has date::x| ]] | }} | [[Category:RecurringEvent]] }} | ||
| − | |||
<!-- Set recurring data using a switch --> | <!-- Set recurring data using a switch --> | ||
{{#switch: {{{recurring}}} | {{#switch: {{{recurring}}} | ||
| Line 89: | Line 87: | ||
==Usage== | ==Usage== | ||
Copy and paste this code or simply use the [[Form:Event]] to add your event.<br/> | Copy and paste this code or simply use the [[Form:Event]] to add your event.<br/> | ||
| − | If you don't set a "till" date, the | + | If you don't set a "till" date, the template will not operate correctly! |
<br/> | <br/> | ||
<pre> | <pre> | ||
Revision as of 20:46, 2 January 2011
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 template will not operate correctly!
{{Event
| logo = <filename>
| eventtype = <party, conference, camp, workshop, meeting>
| what = <event title>
| intro= <event description>
| from= <Datetime>
| till= <Datetime>
| recurring = <no, daily, weekly, bi-weekly, monthly, dayofweekinmonth, bi-monthly, yearly>
| cost=0€
| u19 = <yes/no>
| location=Hackerspace, Strassen
| contact= <comma-delimited list of the organisers>
| attendees = <string> Everyone
| url=http://www.website.com
}}