Template:Event
From syn2cat - HackerSpace.lu
(Difference between revisions)
m (may have multiple contact persons) |
m (added subtitle, logo property) |
||
Line 16: | Line 16: | ||
}}<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;" | [[Has | + | | colspan="2" style="padding: 7px;" | [[Has subtitle::{{{subtitle|}}}]] |
|- | |- | ||
− | | colspan="2" style="padding: 10px 0px; text-align:center;" |<!-- setting custom image if available-->[[ | + | | colspan="2" style="padding: 7px;" | ''[[Has description::{{{intro|}}}]]'' |
+ | |- | ||
+ | | colspan="2" style="padding: 10px 0px; text-align:center;" |<!-- setting custom image if available-->[[File:{{#if: {{{logo|}}} |<!--then-->{{{logo}}}|<!--else-->G8033.png}}|240px|link=]] | ||
|- | |- | ||
| style="padding: 0 7px;" | '''[[Template:Event#EventType|Type of Event]]''': || [[Is Event of Type::{{{eventtype}}}]] | | style="padding: 0 7px;" | '''[[Template:Event#EventType|Type of Event]]''': || [[Is Event of Type::{{{eventtype}}}]] | ||
Line 62: | Line 64: | ||
<!-- *** Let's automate the semantic info *** --> | <!-- *** Let's automate the semantic info *** --> | ||
{{#ifeq: {{{u19|}}} | yes | [[Category:U19]] }} | {{#ifeq: {{{u19|}}} | yes | [[Category:U19]] }} | ||
− | <!-- Switch | + | |
+ | {{#set:Is U19={{{u19}}}|Has PageName={{FULLPAGENAME}}|Has coordinates={{#show: {{{location|}}} | ?Has coordinates|link=none}}|Has picture={{{logo}}} }} | ||
+ | |||
+ | <!-- Switch Category on eventtype --> | ||
{{#switch: {{{eventtype}}} | {{#switch: {{{eventtype}}} | ||
| Meeting = [[Category:Meeting]] | | Meeting = [[Category:Meeting]] | ||
Line 71: | Line 76: | ||
| Event = [[Category:Event]] | | Event = [[Category:Event]] | ||
| #default = [[Category:Event]] | | #default = [[Category:Event]] | ||
− | }} | + | }} <!-- End Switch Category --> |
− | <!-- End Switch Category --> | + | |
− | + | ||
<!-- 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]] }} | ||
Line 87: | Line 91: | ||
}} | }} | ||
</includeonly> | </includeonly> | ||
+ | |||
<noinclude> | <noinclude> | ||
==Usage== | ==Usage== |
Revision as of 21:29, 3 July 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> | external=<no,yes> (Whether an event is organized by us or somebody else) | announce=<no,yes> (Whether an event is supposed to be announced on twitter, agendas) | 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 }}