Template:Event: Difference between revisions
From MoHA Wiki
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
|Event ticket price={{{Event ticket price|}}} | |Event ticket price={{{Event ticket price|}}} | ||
|Is public={{{Is public|}}} | |Is public={{{Is public|}}} | ||
|Event image={{#if:{{{Event image|}}}|File:{{PAGENAME:{{{Event image|}}}}}}} | |||
|Event image caption={{{Event image caption|}}} | |||
}} | }} | ||
</div> | </div> | ||
{{#if: {{{ | <div id="moha-infobox" class="col-12 col-md-5 col-lg-4 col-xl-3 mb-4 ml-0 ml-md-3 ml-lg-4"> | ||
<div class="moha-infobox-section"> | |||
<div | <div class="moha-infobox-section-header">{{PAGENAME}}</div> | ||
<div class="moha-infobox-section-body"> | |||
{{#if:{{{Event image|}}} | |||
|<div class="moha-infobox-image"> | |||
[[File:{{PAGENAME:{{{Event image|}}}}}|class=img-fluid|540px]] | |||
<div class="moha-infobox-image-caption"> | |||
{{{Event image caption|}}} | |||
</div> | </div> | ||
</div> | </div> | ||
}} | }} | ||
</div> | </div> | ||
</div> | </div> | ||
}}<!-- -->{{#if: {{{Event location|}}}| | <div class="moha-infobox-section"> | ||
<div> | <div class="moha-infobox-section-header">Event Info</div> | ||
<div class="moha-infobox-section-body"> | |||
<table> | |||
{{#if: {{{Date Start|}}}| | |||
<tr> | |||
<td>Date {{#if: {{{Date End|}}}|start}}</td> | |||
<td>{{#time: d.m.y|{{{Date Start|}}}}}</td> | |||
</tr> | |||
}}<!-- | |||
-->{{#if: {{{Date End|}}}| | |||
<tr> | |||
<td>Date end</td> | |||
<td>{{#time: d.m.y|{{{Date End|}}}}}</td> | |||
</tr> | |||
}}<!-- | |||
-->{{#ifexpr: 0{{{Total days adjusted|}}} > 1| | |||
<tr> | |||
<td>Total days</td> | |||
<td>{{{Total days adjusted|}}}</td> | |||
</tr> | |||
}}<!-- | |||
--><tr> | |||
<td>Kind of Event</td> | |||
<td>{{#arraymap:{{{Type of Event|}}} | |||
|; | |||
|@ | |||
|{{#queryformlink: form=Event types | |||
|link text=@ | |||
|Event types[Event type]=@ | |||
|_run=1 | |||
}} | |||
| ·  | |||
}}</td> | |||
</tr><!-- | |||
-->{{#switch: {{{Event location|}}} | |||
| | |||
|MoHA= | |||
|#default = <tr> | |||
<td>Location</td> | |||
<td>{{{Event location|}}}</td> | |||
</tr> | |||
}}<!-- | |||
-->{{#if: {{{Event ticket price|}}}| | |||
<tr> | |||
<td>Ticket price</td> | |||
<td>{{#ifexp: 0{{{Event ticket price|}}} = 0|Free|${{{Event ticket price|}}}}}</td> | |||
</tr> | |||
}}<!-- | |||
-->{{#if: {{{Resources|}}}| | |||
<div class="moha-infobox-section"> | |||
<div class="moha-infobox-section-header" style="text-align:center">Follow · Contact</div> | |||
<div class="moha-infobox-section-body"> | |||
<table> | |||
{{{Resources|}}} | |||
</table> | |||
</div> | </div> | ||
</div> | </div> | ||
}} | |||
<div>{{#ifeq:{{{Is public|}}|Yes|Public event}}</div> | |||
<div> | <div> | ||
<div>Description</div> | <div>Description</div> | ||
Line 72: | Line 126: | ||
| | | | ||
}} | }} | ||
</div> | |||
{{{Resources|}}} | {{{Resources|}}} | ||