Difference between revisions of "Template:Event"

From Hackerspace ACKspace
Jump to: navigation, search
m (removed Name field)
m (edit form button is displayed on the wrong page)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
+
<includeonly>{{#default_form:Event}}</includeonly>
This is the "Event" template.
+
{{#if: {{{End date|}}}
It should be called in the following format:
+
| {{#ifexpr: {{#timel: U | {{{End date}}}}} < {{#timel: U | {{#timel: Y-m-d}}}}
<pre>
+
  | {{InfoBox|Type=alert|Image=warning.png|Title=Attention:|Text=You are looking at an event that took place in the past}}
{{Event
+
  }}
|State=
+
| {{#if: {{{Start date|}}}
|Start date=
+
  | {{#ifexpr: {{#timel: U | {{{Start date}}}}} < {{#timel: U | {{#timel: Y-m-d}}}}
|End date=
+
    | {{InfoBox|Type=alert|Image=warning.png|Title=Attention:|Text=You are looking at an event that took place in the past}}
|Contact=
+
  }}
|Kind=
+
  }}
|Location=
 
|URL=
 
|Fee=
 
|Short description=
 
 
}}
 
}}
</pre>
+
{| 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;"
Edit the page to see the template text.
 
</noinclude><includeonly>
 
{| style="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>
 
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>Event: {{PAGENAME}}</big>
 +
|-
 +
! Featured:
 +
| {{#arraymap:{{{Featured|}}}|,|x|[[Featured::x]]}}
 
|-
 
|-
 
! State:
 
! State:
Line 25: Line 21:
 
! 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:
Line 49: Line 51:
  
 
[[Category:Events]]
 
[[Category:Events]]
</includeonly>
+
<noinclude>
 +
<templatedata>
 +
{
 +
"params": {
 +
"End date": {
 +
"type": "date"
 +
},
 +
"Start date": {
 +
"type": "date"
 +
},
 +
"Featured": {
 +
"type": "boolean"
 +
},
 +
"State": {},
 +
"Start time": {},
 +
"End time": {},
 +
"Contact": {
 +
"type": "wiki-user-name"
 +
},
 +
"Kind": {},
 +
"Location": {},
 +
"URL": {
 +
"type": "url"
 +
},
 +
"Fee": {},
 +
"Short description": {
 +
"type": "string"
 +
}
 +
},
 +
"description": "This is the \"Event\" template.\nEdit the page to see the template text."
 +
}
 +
</templatedata>
 +
</noinclude>

Latest revision as of 20:51, 2 June 2020


Event: Event
Featured:
State:
Start date:
Start time:
End date:
End time:
Contact:
Kind:
Location:
URL:
Fee:
Short description:

This is the "Event" template. Edit the page to see the template text.

Template parameters

ParameterDescriptionTypeStatus
End dateEnd date

no description

Default
empty
Example
empty
Auto value
empty
Dateoptional
Start dateStart date

no description

Default
empty
Example
empty
Auto value
empty
Dateoptional
FeaturedFeatured

no description

Default
empty
Example
empty
Auto value
empty
Booleanoptional
StateState

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Start timeStart time

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
End timeEnd time

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
ContactContact

no description

Default
empty
Example
empty
Auto value
empty
Useroptional
KindKind

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
LocationLocation

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
URLURL

no description

Default
empty
Example
empty
Auto value
empty
URLoptional
FeeFee

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Short descriptionShort description

no description

Default
empty
Example
empty
Auto value
empty
Stringoptional