Template:Event

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by Kwisatz (talk) to last revision by Steve)
(oops.. had messed things up)
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
--> {{#ifexpr:{{#time: U | {{{EndDate|}}} }}<{{#time: U }}|<div style="border: 2px solid #007A20; padding: 0.5em 1em 0.3em 0.5em; color: #007A20;">
+
--> {{#ifexpr:{{#time: U | {{{till|}}} }}<{{#time: U }}|<div style="border: 2px solid #007A20; padding: 0.5em 1em 0.3em 0.5em; color: #007A20;">
 
'''Note:''' this article is about a passed event.</div>|}}<!--
 
'''Note:''' this article is about a passed event.</div>|}}<!--
 
--> {| class="" cellpadding="2" cellspacing="0" <!--
 
--> {| class="" cellpadding="2" cellspacing="0" <!--
Line 21: Line 21:
 
| colspan="2" style="padding: 7px;" | [[Description::{{{intro|}}}]]
 
| colspan="2" style="padding: 7px;" | [[Description::{{{intro|}}}]]
 
|-
 
|-
| colspan="2" style="padding: 10px 0px; text-align:center;" |<!-- setting custom image if available-->[[Image:{{#if: {{{logo|}}} |<!--then-->{{{logo}}}|<!--else-->G8033.png}}|200px|link=]]
+
| colspan="2" style="padding: 10px 0px; text-align:center;" |<!-- setting custom image if available-->[[Image:{{#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 28: Line 28:
 
|-
 
|-
 
| 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|Add to your calendar]]''': || {{#if: {{{till|}}} | Download {{#show: {{PAGENAME}}  | ?Has PageName | ?StartDate = start |?EndDate = end |format=icalendar |icalendartitle=syn2cat-{{PAGENAME}} }}  | 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 48: Line 50:
 
|
 
|
 
{{#display_point:
 
{{#display_point:
{{#show: {{{location|}}} | ?Has address}} {{#show: {{{location|}}} | ?Has city}}~{{Address|{{#show: {{{location|}}} | ?Has address}}|{{#show: {{{location|}}} | ?Has city}}|{{#show: {{{location|}}} | ?Has country}}}}
+
{{#show: {{{location|}}} | ?Has address}} {{#show: {{{location|}}} | ?Has city}} {{#show: {{{location|}}} | ?Has country}}~{{Address | {{#show: {{{location|}}} | ?Has address }} | {{#show: {{{location|}}} | ?Has city}}|{{#show: {{{location|}}} | ?Has country}} }}~The event takes place here.;
 
|width=250
 
|width=250
 
|height=250
 
|height=250
|service=googlemaps
 
 
|controls=small
 
|controls=small
 
}}
 
}}
 +
|-
 +
| colspan="2" style="padding: 0.5em; color: white; background-color: #AAAAAA" | <span style="font-size: 120%;">Tools</span>
 +
|-
 +
| style="padding: 0 7px;"  | '''[[Template:Event#QrCode|QrCode]]''': || {{#qrcode:}}
 
|}
 
|}
 
<!-- *** Let's automate the semantic info *** -->
 
<!-- *** Let's automate the semantic info *** -->
<!-- Get coordinates in here -->
+
{{#ifeq: {{{u19|}}} | yes | [[Category:U19]] }}
[[Has coordinates::{{#show: {{{location|}}} | ?Has coordinates|link=none}}| ]]
+
 
<!-- Switch Categories on eventtype -->
 
<!-- Switch Categories on eventtype -->
 
{{#switch: {{{eventtype}}}
 
{{#switch: {{{eventtype}}}
Line 69: Line 73:
 
}}
 
}}
 
<!-- End Switch Category -->
 
<!-- End Switch Category -->
[[Is U19::{{{u19}}}| ]]
+
{{#set:Is U19={{{u19}}}|Has PageName={{FULLPAGENAME}}|Has coordinates={{#show: {{{location|}}} | ?Has coordinates|link=none}} }}
{{#ifeq: {{{u19|}}} | yes | [[Category:U19]] }}
+
 
<!-- 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 18:00, 22 October 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
}}
Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools