Template:Event

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m
m
Line 1: Line 1:
<includeonly>{| align="right" cellpadding="0" cellspacing="5" style="position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; border: 1px solid #aaa; background: #fff; float: right; clear: right; width: 20em"
+
<includeonly><!--
| align="center" colspan="2" style="background-color: white; text-align: center;" |
+
--> {| class="" cellpadding="2" cellspacing="0" <!--
{| width="100%"
+
--> style="float: right; width: 300px; margin: 0 0 1em 1em; border: 2px solid #AAAAAA; background-color: #FFFFFF"
|- class="ext-header"
+
|+ '''[[Form:Event|Add your Event]]'''
! style="padding: 7px; font-size: 1.5em; color: white; background: #000066" align="center" | [[Image:Event.png|left|40px]] {{PAGENAME}}
+
 
|-
 
|-
| style="padding: 10px 0px;" | {{#if: {{{logo|}}} | [[Image:{{{logo}}}|250px]] | [[Image:G8033.png|200px]] }}
+
! colspan="2" <!-- This is the header
 +
--> style="padding-top: 0.5em; color: white; background-color: #AAAAAA" <!--
 +
--> | [[Image:Event.png|link=|left|40px]] <span style="font-size: 150%;">{{#if:{{{what|}}}|{{{what}}}|{{PAGENAME}} }}</span>
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | Tagline:
+
| colspan="2" style="padding: 7px;" | [[Description::{{{intro|}}}]]
 
|-
 
|-
| [[Description::{{{tagline|}}}]]
+
| colspan="2" style="padding: 10px 0px; text-align:center;" |<!-- setting custom image if available-->[[Image:{{#if: {{{logo|}}} |<!--then-->{{{logo}}}|<!--else-->G8033.png}}|200px|link=]]
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | From:
+
| style="padding: 0 7px;"  | '''[[Template:Event#From|From]]''': || [[Has date::StartDate::{{{from}}}]]
 
|-
 
|-
| [[StartDate::{{{from}}}]]
+
| style="padding: 0 7px;"  | '''[[Template:Event#Till|Till]]''': || {{#if: {{{till|}}} | [[EndDate::{{{till}}}]] | [[EndDate::{{{from}}}]] }}
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | Till:
+
| style="padding: 0 7px;"  | '''[[Template:Event#Recurring|Recurring]]''': || [[Is Recurring::{{{recurring|}}}]]
 
|-
 
|-
| {{#if: {{{till|}}} | {{{till}}} | {{{from}}} }}
+
| style="padding: 0 7px;" | '''[[Template:Event#Where|Where]]''': || [[city::{{{city}}}]], {{#if: {{{state|}}} | [[state::{{{state}}}]], }} [[country::{{{country}}}]]
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | Where:
+
| style="padding: 0 7px;" | '''[[Template:Event#Cost|Cost]]''': || [[cost::{{{cost|}}}]]
 
|-
 
|-
| [[city::{{{city}}}]], {{#if: {{{state|}}} | {{{state}}}, }} [[country::{{{country}}}]]
+
| style="padding: 0 7px;" | '''[[Template:Event#Homepage|Homepage]]''': || [[url::{{{url|}}}]]
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | Cost:
+
| style="padding: 0 7px;" | '''[[Template:Event#Attendees|Attendees]]''': || | [[Attendees::{{{attendees|}}}]]
 
|-
 
|-
| {{{cost|}}}
+
| style="padding: 0 7px;" | '''[[Template:Event#Contact Person|Contact Person]]''': || {{#arraymap:{{{contact|}}}|,|x|[[EventContact::User:x|x]]|, }}
 +
|-
 +
| colspan="2" style="vertical-align:top; padding: 0 7px;" | '''[[Template:Workshop#Map|Map]]''':
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | Organiser:
+
| colspan="2" style="text-align:center;padding: 0 7px;" | {{#if: {{{coordinates|}}} | {{SmallMap|coordinates={{{coordinates}}}|label={{{what}}} takes place here }} }}
|-
+
| {{#arraymap: {{{organisers|}}}|,|x|[[Organiser::User:x|x]]|,}}
+
|-
+
! style="padding: 0 7px; background: #CCCCFF" | Who can attend:
+
|-
+
| [[Attendees::{{{attendees|}}}]]
+
|-
+
! style="padding: 0 7px; background: #CCCCFF" | URL:
+
|-
+
| [[url::{{{url|}}}]]
+
|-
+
! style="padding: 0 7px; background: #CCCCFF" | Map:
+
|-
+
| {{#if: {{{coordinates|}}} | {{SmallMap|coordinates={{{coordinates}}} }} }}
+
|}
+
 
|}
 
|}
 
<!-- *** Let's automate the semantic info *** -->
 
<!-- *** Let's automate the semantic info *** -->
{{#if: {{{till|}}} |[[EndDate::{{{till}}}| ]] | [[EndDate::{{{from}}}| ]]}}
 
 
{{#arraymap: {{#dates: | StartDate={{{from}}} | EndDate={{{till}}} }}|,|x|[[Has date::x| ]]|  }}
 
{{#arraymap: {{#dates: | StartDate={{{from}}} | EndDate={{{till}}} }}|,|x|[[Has date::x| ]]|  }}
 
[[location::{{{city}}}, {{{country}}}| ]]
 
[[location::{{{city}}}, {{{country}}}| ]]
{{#if: {{{state|}}} | [[state::{{{state}}}| ]] }}
 
{{#if: {{{cost|}}} | [[cost::{{{cost}}}| ]] }}
 
 
{{#if: {{{coordinates|}}} | [[Has coordinates::{{{coordinates}}}| ]] }}
 
{{#if: {{{coordinates|}}} | [[Has coordinates::{{{coordinates}}}| ]] }}
 
[[Is Recurring::no| ]]
 
[[Is Recurring::no| ]]
[[Category:Event]]</includeonly>
+
[[Category:Event]]<!--
 
+
--> </includeonly>
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
Line 63: Line 48:
 
| logo = <filename>
 
| logo = <filename>
 
| what = <event title>
 
| what = <event title>
| tagline= <event description>
+
| intro= <event description>
 
| from= <Datetime>
 
| from= <Datetime>
 
| till= <Datetime>
 
| till= <Datetime>
Line 70: Line 55:
 
| state=n.a.
 
| state=n.a.
 
| city=Strassen
 
| city=Strassen
| organisers= <comma-delimited list of the organisers>
+
| contact= <comma-delimited list of the organisers>
 
| attendees = <string> Everyone
 
| attendees = <string> Everyone
 
| url=http://www.external.com
 
| url=http://www.external.com

Revision as of 16:23, 10 December 2009


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>
| country = Luxembourg
| cost=0€
| state=n.a.
| city=Strassen
| 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