Template:Event: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="d-none" hidden>
<div class="d-none" hidden>
{{#arraydefine: years
  |{{#time: Y|{{{Date Start|}}}}};{{#time: Y|{{{Date End|}}}}}
  |;
  |unique
}}
{{#set:
{{#set:
|Event name={{FULLPAGENAME}}
|Event name={{FULLPAGENAME}}
Line 7: Line 12:
|Date Start={{{Date Start|}}}
|Date Start={{{Date Start|}}}
|Date End={{{Date End|}}}
|Date End={{{Date End|}}}
|Year number={{#arrayprint: years|;}}|+sep=;
|Doors={{{Doors|}}}
|Doors={{{Doors|}}}
|Event description={{{Event description|}}}
|Event description={{{Event description|}}}
Line 98: Line 104:
}}
}}
       }}
       }}
  }}<!--
-->{{#if: {{{Open hours|}}}|<tr>
<td>Schedule</td>
<td><ul>
{{{Open hours|}}}
</ul></td>
</tr>
   }}<!--
   }}<!--


Line 355: Line 369:
   |class=mt-0 w-100 smwtable sortable
   |class=mt-0 w-100 smwtable sortable
   |headers=plain
   |headers=plain
   |mainlabel=Title
   |mainlabel=-
  |?Date Published#-F[m.d.y]=Date
  |?=Title
  |?Article author=Author(s)
   |?Additional category=Category
   |?Additional category=Category
}}
}}
Line 368: Line 385:
| {{#ifexpr: {{#time: Ymd|{{{Date Start|}}}}}>{{#time: Ymd|now}}
| {{#ifexpr: {{#time: Ymd|{{{Date Start|}}}}}>{{#time: Ymd|now}}
| [[Category:Upcoming Events]]
| [[Category:Upcoming Events]]
}} {{#ifexpr: {{#time: Ymd|{{{Date End|}}}}}<{{#time: Ymd|now}}
}} {{#ifexpr: {{#time: Ymd235959|{{{Date End|}}}}}<{{#time: Ymd000000|now}}
| [[Category:Past Events]]
| [[Category:Past Events]]
}}
}}
}}
}}
</includeonly>
</includeonly>

Latest revision as of 00:42, June 23, 2024