Template:Event: Difference between revisions

From MoHA Wiki
No edit summary
m (Text replacement - "Opportunity type" to "Opportunity format")
 
(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 320: Line 334:
   [[Associated Event::{{#ask: [[{{PAGENAME}}]]|link=none}}]]
   [[Associated Event::{{#ask: [[{{PAGENAME}}]]|link=none}}]]
   |mainlabel=Opportunity
   |mainlabel=Opportunity
   |?Opportunity type=Opportunity type
   |?Opportunity format=Opportunity format
   |?Opportunity short description=Description
   |?Opportunity short description=Description
   |?Opportunity start date=Start
   |?Opportunity start date=Start
Line 371: 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 09:32, July 28, 2024