Template:Event

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m (what about these?)
m (Get rid of error message if alternative picture value is nil)
 
(17 intermediate revisions by 2 users not shown)
Line 18: Line 18:
 
<div style="font-size:110%;text-align:right;padding-right:3px;">[[Has subtitle::{{{subtitle|}}}]]</div>
 
<div style="font-size:110%;text-align:right;padding-right:3px;">[[Has subtitle::{{{subtitle|}}}]]</div>
 
|-
 
|-
| colspan="2" style="padding: 10px 0px; text-align:center;" |<!-- setting custom image if available-->[[File:{{#if: {{{logo|}}} |{{{logo}}}|Weareinnovative.png}}|240px|link=]]
+
| colspan="2" style="padding: 10px 0px; text-align:center;" |<!-- setting custom image if available-->[[File:{{#if:{{{logo|}}}|{{{logo}}}|Weareinnovative.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 27: Line 27:
 
|-
 
|-
 
| style="padding: 0 7px;"  | '''[[Template:Event#Recurring|Recurring]]''': || [[Is Recurring::{{{recurring|}}}]]
 
| style="padding: 0 7px;"  | '''[[Template:Event#Recurring|Recurring]]''': || [[Is Recurring::{{{recurring|}}}]]
|-
 
| style="padding: 0 7px;"  | '''[[Template:Event#Announce|Announce globally]]''': || [[Do Announce::{{#if: {{{description|}}} | {{{announce|}}} | no }}]]
 
 
|-
 
|-
 
| style="padding: 0 7px;"  | '''[[Template:Event#Organizer|Organizer]]''': || {{#arraymap:{{{organizer|}}}|,|x|[[Has organizer::Organisation:x|x]]}}
 
| style="padding: 0 7px;"  | '''[[Template:Event#Organizer|Organizer]]''': || {{#arraymap:{{{organizer|}}}|,|x|[[Has organizer::Organisation:x|x]]}}
Line 34: Line 32:
 
| style="padding: 0 7px;" | '''[[Template:Event#Cost|Cost]]''':  || [[Has cost::{{{cost|}}}]]
 
| style="padding: 0 7px;" | '''[[Template:Event#Cost|Cost]]''':  || [[Has cost::{{{cost|}}}]]
 
|-
 
|-
| style="padding: 0 7px;" | '''[[Template:Event#Registration|Mandatory registration]]''':  || {{#if: {{{reg|}}} | Yes | No }} <!--
+
| style="padding: 0 7px;" | '''[[Template:Event#Registration|Mandatory registration]]''':  || {{{reg|}}}
-->{{#if: {{{ticket_url|}}} |
+
{{#if: {{{ticket_url|}}} |
{{!}}-
+
{{-}}
 
{{!}} style="padding: 0 7px;" {{!}} '''[[Template:Event#Ticket_URL|Tickets]]''':  {{!!}} [[Has ticket url::{{{ticket_url|}}}|Buy a ticket!]]
 
{{!}} style="padding: 0 7px;" {{!}} '''[[Template:Event#Ticket_URL|Tickets]]''':  {{!!}} [[Has ticket url::{{{ticket_url|}}}|Buy a ticket!]]
 
| }}
 
| }}
|-
+
{{#if: {{{url|}}} |
| style="padding: 0 7px;" | '''[[Template:Event#Homepage|Homepage]]''':  || {{#if: {{#len:{{{url|}}}}}>20 | [{{{url}}} Click here] | {{{url}}} }}
+
{{-}}
 +
{{!}} style="padding: 0 7px;" {{!}} '''[[Template:Event#Website|Website]]''':  {{!!}} {{#ifexpr: {{#len: {{{url}}} }} > 26 | [{{{url}}} {{#sub:{{{url}}}|0|25}}...] | {{{url|}}} }}
 +
| }}
 
|-
 
|-
 
| style="padding: 0 7px;" | '''[[Template:Event#Attendees|Attendees]]''': || {{#arraymap:{{{attendees|}}}|,|x|[[Has attendee::User:x|x]]}}<br/><span style="font-weight:bold;text-decoration:underline;margin-left:6px;"><!--
 
| style="padding: 0 7px;" | '''[[Template:Event#Attendees|Attendees]]''': || {{#arraymap:{{{attendees|}}}|,|x|[[Has attendee::User:x|x]]}}<br/><span style="font-weight:bold;text-decoration:underline;margin-left:6px;"><!--
Line 69: Line 69:
 
| style="vertical-align:top; padding: 0 7px;" | '''[[Template:Event#Map|Map]]''':  
 
| style="vertical-align:top; padding: 0 7px;" | '''[[Template:Event#Map|Map]]''':  
 
|
 
|
{{#display_point:{{#show:{{{location|}}}|?Has coordinates}}~{{Address|{{#show:{{{location|}}}|?Has address}}|{{#show:{{{location|}}}|?Has city}}|{{#show:{{{location|}}}|?Has country}}}}~The event takes place here.;|service=googlemaps
+
{{#display_map:{{#show:{{{location|}}}|?Has coordinates}}
 +
|layers=osm-mapnik, osm-cyclemap
 +
|service=openlayers
 
|width=250
 
|width=250
 
|height=250
 
|height=250
Line 82: Line 84:
 
|-
 
|-
 
| style="padding: 0 7px;" | '''[[Template:Event#Alternate|Alternate picture]]''': || {{#if: {{{alternate_picture|}}} | [[Media:{{{alternate_picture|}}}|View]] | None }}
 
| style="padding: 0 7px;" | '''[[Template:Event#Alternate|Alternate picture]]''': || {{#if: {{{alternate_picture|}}} | [[Media:{{{alternate_picture|}}}|View]] | None }}
 +
|-
 +
| style="padding: 0 7px;"  | '''[[Template:Event#Announce|Announce globally]]''': || [[Do Announce::{{#if: {{{description|}}} | {{{announce|}}} | no }}]]
 
|}
 
|}
 
<!-- *** displaying the description in the main section now *** -->
 
<!-- *** displaying the description in the main section now *** -->
Line 93: Line 97:
 
| Has coordinates={{#show: {{{location|}}} | ?Has coordinates|link=none}}  
 
| Has coordinates={{#show: {{{location|}}} | ?Has coordinates|link=none}}  
 
| Has picture=File:{{{logo|}}}  
 
| Has picture=File:{{{logo|}}}  
| Has alternate picture=File:{{{alternate_picture|}}}
+
| Has alternate picture={{#if:{{{alternate_picture|}}}|File:{{{alternate_picture|}}} }}
 
| Has extraInfo={{{extrainfo|}}}
 
| Has extraInfo={{{extrainfo|}}}
 
| Is External={{#ifeq: {{{location|}}} | Hackerspace, Strassen | no | yes }}
 
| Is External={{#ifeq: {{{location|}}} | Hackerspace, Strassen | no | yes }}
Line 145: Line 149:
 
| cost=0€
 
| cost=0€
 
| u19 = <yes/no>
 
| u19 = <yes/no>
| location=Hackerspace, Strassen
+
| location=Level2
 +
| coordinates=
 
| contact= <comma-delimited list of the organisers>
 
| contact= <comma-delimited list of the organisers>
 
| attendees = <string> Everyone
 
| attendees = <string> Everyone

Latest revision as of 13:03, 7 September 2014


[edit] Usage

Please use the event form to add your event. It will validate your input.

Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools