Difference between revisions of "Template:Event"

From Hackerspace ACKspace
Jump to: navigation, search
 
m (width: allow small screens)
(11 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
<pre>
 
<pre>
 
{{Event
 
{{Event
|Name:=
+
|State=
|State:=
+
|Start date=
|Start date:=
+
|Start time=
|End date:=
+
|End date=
|Contact:=
+
|End time=
|Kind:=
+
|Contact=
|Location:=
+
|Kind=
|URL:=
+
|Location=
|Fee:=
+
|URL=
|Short description:=
+
|Fee=
 +
|Short description=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{| class="wikitable"
+
{{#if: {{{End date|}}}
! Name:
+
| {{#ifexpr: {{#timel: U | {{{End date}}}}} < {{#timel: U | {{#timel: Y-m-d}}}}
| [[EventName::{{{Name:|}}}]]
+
  | {{InfoBox|Type=alert|Image=warning.png|Title=Attention:|Text=You are looking at an event that took place in the past}}
 +
  }}
 +
| {{#if: {{{Start date|}}}
 +
  | {{#ifexpr: {{#timel: U | {{{Start date}}}}} < {{#timel: U | {{#timel: Y-m-d}}}}
 +
    | {{InfoBox|Type=alert|Image=warning.png|Title=Attention:|Text=You are looking at an event that took place in the past}}
 +
  }}
 +
  }}
 +
}}
 +
{| style="max-width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 +
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>Event: {{PAGENAME}}</big>
 +
|-
 +
! Featured:
 +
| {{#arraymap:{{{Featured|}}}|,|x|[[Featured::x]]}}
 
|-
 
|-
 
! State:
 
! State:
| {{#arraymap:{{{State:|}}}|,|x|[[EventState::x]]}}
+
| {{#arraymap:{{{State|}}}|,|x|[[EventState::x]]}}
 
|-
 
|-
 
! Start date:
 
! Start date:
| [[EventStart::{{{Start date:|}}}]]
+
| [[EventStart::{{{Start date|}}}]]
 +
|-
 +
! Start time:
 +
| [[EventStartTime::{{{Start time|}}}]]
 
|-
 
|-
 
! End date:
 
! End date:
| [[EventEnd::{{{End date:|}}}]]
+
| [[EventEnd::{{{End date|}}}]]
 +
|-
 +
! End time:
 +
| [[EventEndTime::{{{End time|}}}]]
 
|-
 
|-
 
! Contact:
 
! Contact:
| [[EventContact::{{{Contact:|}}}]]
+
| {{#arraymap:{{{Contact|}}}|,|x|[[Members::User:x|x]]}}
 
|-
 
|-
 
! Kind:
 
! Kind:
| {{#arraymap:{{{Kind:|}}}|,|x|[[EventKind::x]]}}
+
| {{#arraymap:{{{Kind|}}}|,|x|[[EventKind::x]]}}
 
|-
 
|-
 
! Location:
 
! Location:
| [[EventLocation::{{{Location:|}}}]]
+
| [[EventLocation::{{{Location|}}}]]
 
|-
 
|-
 
! URL:
 
! URL:
| [[EventURL::{{{URL:|}}}]]
+
| [[EventURL::{{{URL|}}}]]
 
|-
 
|-
 
! Fee:
 
! Fee:
| [[EventFee::{{{Fee:|}}}]]
+
| [[EventFee::{{{Fee|}}}]]
 
|-
 
|-
 
! Short description:
 
! Short description:
| [[EventDescription::{{{Short description:|}}}]]
+
| [[EventDescription::{{{Short description|}}}]]
 
|}
 
|}
  
 
[[Category:Events]]
 
[[Category:Events]]
 
</includeonly>
 
</includeonly>

Revision as of 14:54, 20 March 2018

This is the "Event" template. It should be called in the following format:

{{Event
|State=
|Start date=
|Start time=
|End date=
|End time=
|Contact=
|Kind=
|Location=
|URL=
|Fee=
|Short description=
}}

Edit the page to see the template text.