Template:Event
From syn2cat - HackerSpace.lu
(Difference between revisions)
m |
m |
||
Line 17: | Line 17: | ||
| #default = [[Image:Event.png|link=|left|40px]] | | #default = [[Image:Event.png|link=|left|40px]] | ||
}}<!-- | }}<!-- | ||
− | --><span style="font-size: 150%;">{{#if:{{{what|}}}|{{{what}}}|{{PAGENAME}} }}</span> | + | --><span style="font-size: 150%;">{{#if:{{{what|}}}| {{{what}}} | {{PAGENAME}} }}</span> |
|- | |- | ||
| colspan="2" style="padding: 7px;" | [[Description::{{{intro|}}}]] | | colspan="2" style="padding: 7px;" | [[Description::{{{intro|}}}]] | ||
Line 29: | Line 29: | ||
| style="padding: 0 7px;" | '''[[Template:Event#Till|Till]]''': || {{#if: {{{till|}}} | [[EndDate::{{{till}}}]] | [[EndDate::{{{from}}}]] }} | | style="padding: 0 7px;" | '''[[Template:Event#Till|Till]]''': || {{#if: {{{till|}}} | [[EndDate::{{{till}}}]] | [[EndDate::{{{from}}}]] }} | ||
|- | |- | ||
− | | style="padding: 0 7px;" | '''[[Template:Event#iCal|iCal]]''': || {{#if: {{{till|}}} | Download {{#show: {{PAGENAME}} |?Has Name | ?Has location | ?StartDate = start |?EndDate = end |format=icalendar |icalendartitle= syn2cat event calendar }} | n.a. }} | + | | style="padding: 0 7px;" | '''[[Template:Event#iCal|iCal]]''': || {{#if: {{{till|}}} | Download {{#show: {{PAGENAME}} | ?Has Name | ?Has location | ?StartDate = start |?EndDate = end |format=icalendar |icalendartitle= syn2cat event calendar }} | n.a. }} |
|- | |- | ||
| style="padding: 0 7px;" | '''[[Template:Event#Recurring|Recurring]]''': || [[Is Recurring::{{{recurring|}}}]] | | style="padding: 0 7px;" | '''[[Template:Event#Recurring|Recurring]]''': || [[Is Recurring::{{{recurring|}}}]] | ||
Line 71: | Line 71: | ||
}} | }} | ||
<!-- End Switch Category --> | <!-- End Switch Category --> | ||
− | |||
[[Is U19::{{{u19}}}| ]] | [[Is U19::{{{u19}}}| ]] | ||
{{#ifeq: {{{u19|}}} | yes | [[Category:U19]] }} | {{#ifeq: {{{u19|}}} | yes | [[Category:U19]] }} | ||
+ | [[Has PageName::{{PAGENAME}}]] | ||
<!-- 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| ]]| }} }} |
Revision as of 11:15, 1 September 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, daily, weekly, bi-weekly, monthly, xofmonth, 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 }}