Template:Event

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m
m
Line 39: Line 39:
 
|}
 
|}
 
<!-- *** Let's automate the semantic info *** -->
 
<!-- *** Let's automate the semantic info *** -->
{{#arraymap: {{#dates: | StartDate={{{from}}} | EndDate={{{till}}} }}|,|x|[[Has date::x| ]]|  }}
 
 
[[location::{{{city}}}, {{{country}}}| ]]
 
[[location::{{{city}}}, {{{country}}}| ]]
 
{{#ifeq: {{{external}}} | yes | [[Category:ExternalEvent]] | [[Category:Event]] }}
 
{{#ifeq: {{{external}}} | yes | [[Category:ExternalEvent]] | [[Category:Event]] }}
 
{{#if: {{{coordinates|}}} | [[Has coordinates::{{{coordinates}}}| ]] }}
 
{{#if: {{{coordinates|}}} | [[Has coordinates::{{{coordinates}}}| ]] }}
 +
<!-- I'm not sure these are compatible -->
 +
{{#arraymap: {{#dates: | StartDate={{{from}}} | EndDate={{{till}}} }}|,|x|[[Has date::x| ]]|  }}
 +
<!-- Recurring Events -->
 +
{{#ifeq: {{{recurring|}}} | daily | {{RecurringEvent | startDate={{{from}}} | endDate={{{till}}} | unit=day | period=1 }} }}
 +
{{#ifeq: {{{recurring|}}} | weekly | {{RecurringEvent | startDate={{{from}}} | endDate={{{till}}} | unit=week | period=1 }} }}
 +
{{#ifeq: {{{recurring|}}} | bi-weekly | {{RecurringEvent | startDate={{{from}}} | endDate={{{till}}} | unit=week | period=2 }} }}
 +
{{#ifeq: {{{recurring|}}} | monthly | {{RecurringEvent | startDate={{{from}}} | endDate={{{till}}} | unit=month | period=1 }} }}
 +
{{#ifeq: {{{recurring|}}} | xofmonth | {{RecurringEvent | startDate={{{from}}} | endDate={{{till}}} | unit=xofmonth | period=1 }} }}
 +
{{#ifeq: {{{recurring|}}} | bi-monthly | {{RecurringEvent | startDate={{{from}}} | endDate={{{till}}} | unit=month | period=2 }} }}
 +
{{#ifeq: {{{recurring|}}} | yearly | {{RecurringEvent | startDate={{{from}}} | endDate={{{till}}} | unit=year | period=1 }} }}
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>

Revision as of 15:19, 4 March 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>
| what = <event title>
| intro= <event description>
| from= <Datetime>
| till= <Datetime>
| city=Strassen
| state=n.a.
| country = Luxembourg
| cost=0€
| venue=Syn2cat
| contact= <comma-delimited list of the organisers>
| attendees = <string> Everyone
| url=http://www.external.com
| coordinates=xyz.abc° N, uio.asd° E
}}
Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools