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: {{{Date Start|}}}|
<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>
<div class="moha-infobox-section">
   <div>Date Start</div>
<div class="moha-infobox-section-header">{{PAGENAME}}</div>
  <div>{{#time: M j, Y|{{{Date Start|}}}}}</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>
}}<!-- -->{{#if: {{{Date End|}}}|
<div>
  <div>Date End</div>
  <div>{{#time: M j, Y|{{{Date End|}}}}}</div>
</div>
</div>
}}<!-- -->{{#if: {{{Total days adjusted|}}}|
}}
<div>
  <div>Total days adjusted</div>
  <div>{{{Total days adjusted|}}}</div>
</div>
</div>
}}<!-- -->{{#if: {{{Type of Event|}}}|
<div>
  <div>Type of Event</div>
  <div>{{{Type of Event|}}}</div>
</div>
</div>
}}<!-- -->{{#if: {{{Event location|}}}|
<div class="moha-infobox-section">
<div>
<div class="moha-infobox-section-header">Event Info</div>
  <div>Location</div>
<div class="moha-infobox-section-body">
  <div>{{{Event location|}}}</div>
<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
      }}
      |&#32;&middot;&#32;
    }}</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 &middot; Contact</div>
<div class="moha-infobox-section-body">
<table>
{{{Resources|}}}
</table>
</div>
</div>
}}<!-- -->
<div>
  <div>{{#ifeq:{{{Is public|}}|Yes|Public event}}</div>
  <div>Ticket price: {{{Event ticket price|}}}</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|}}}



Revision as of 19:39, October 12, 2022