Template:Event
From syn2cat - HackerSpace.lu
(Difference between revisions)
m |
m |
||
Line 1: | Line 1: | ||
− | <includeonly>{| | + | <includeonly><!-- |
− | + | --> {| class="" cellpadding="2" cellspacing="0" <!-- | |
− | + | --> style="float: right; width: 300px; margin: 0 0 1em 1em; border: 2px solid #AAAAAA; background-color: #FFFFFF" | |
− | + | |+ '''[[Form:Event|Add your Event]]''' | |
− | + | ||
|- | |- | ||
− | + | ! 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> | ||
|- | |- | ||
− | + | | 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=]] |
|- | |- | ||
− | + | | style="padding: 0 7px;" | '''[[Template:Event#From|From]]''': || [[Has date::StartDate::{{{from}}}]] | |
|- | |- | ||
− | | [[ | + | | style="padding: 0 7px;" | '''[[Template:Event#Till|Till]]''': || {{#if: {{{till|}}} | [[EndDate::{{{till}}}]] | [[EndDate::{{{from}}}]] }} |
|- | |- | ||
− | + | | style="padding: 0 7px;" | '''[[Template:Event#Recurring|Recurring]]''': || [[Is Recurring::{{{recurring|}}}]] | |
|- | |- | ||
− | | {{#if: {{{ | + | | style="padding: 0 7px;" | '''[[Template:Event#Where|Where]]''': || [[city::{{{city}}}]], {{#if: {{{state|}}} | [[state::{{{state}}}]], }} [[country::{{{country}}}]] |
|- | |- | ||
− | + | | style="padding: 0 7px;" | '''[[Template:Event#Cost|Cost]]''': || [[cost::{{{cost|}}}]] | |
|- | |- | ||
− | | [[ | + | | style="padding: 0 7px;" | '''[[Template:Event#Homepage|Homepage]]''': || [[url::{{{url|}}}]] |
|- | |- | ||
− | + | | style="padding: 0 7px;" | '''[[Template:Event#Attendees|Attendees]]''': || | [[Attendees::{{{attendees|}}}]] | |
|- | |- | ||
− | | {{{ | + | | 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]]''': | ||
|- | |- | ||
− | + | | colspan="2" style="text-align:center;padding: 0 7px;" | {{#if: {{{coordinates|}}} | {{SmallMap|coordinates={{{coordinates}}}|label={{{what}}} takes place here }} }} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | | {{#if: {{{coordinates|}}} | {{SmallMap|coordinates={{{coordinates}}} }} }} | + | |
− | + | ||
|} | |} | ||
<!-- *** Let's automate the semantic info *** --> | <!-- *** Let's automate the semantic info *** --> | ||
− | |||
{{#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: {{{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> | ||
− | | | + | | 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 | ||
− | | | + | | 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 15: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 }}