Template:Event: Difference between revisions
From MoHA Wiki
No edit summary |
m (Text replacement - "Opportunity type" to "Opportunity format") |
||
(12 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 78: | Line 84: | ||
-->{{#if: {{{Date Start|}}}{{{Date End|}}} | -->{{#if: {{{Date Start|}}}{{{Date End|}}} | ||
|{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}}|{{#time: Ymd|{{{Date End|}}}}} | |{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}}|{{#time: Ymd|{{{Date End|}}}}} | ||
|<tr> | |{{#ifeq: {{#time: Hi|{{{Date Start|}}}}}|{{#time: Hi|{{{Date End|}}}}}||<tr> | ||
<td>Time</td> | <td>Time</td> | ||
<td>{{ | <td>{{Event dates | ||
|Date Start={{{Date Start|}}} | |||
|Date End={{{Date End|}}} | |||
}}</td> | |||
</tr> | </tr> | ||
}} | |||
|{{#if: {{{Date Start|}}} | |{{#if: {{{Date Start|}}} | ||
|<tr> | |<tr> | ||
<td>Start Time</td> | <td>Start Time</td> | ||
<td>{{#time: g: | <td>{{#time: g{{#ifexpr: 0{{#time:i|{{{Date Start|}}}}} = 0 ||:i}}a|{{{Date Start|}}}}}</td> | ||
</tr> | </tr> | ||
}}<!---->{{#if: {{{DateEnd|}}} | }}<!---->{{#if: {{{DateEnd|}}} | ||
|<tr> | |<tr> | ||
<td>End Time</td> | <td>End Time</td> | ||
<td>{{#time: g: | <td>{{#time: g{{#ifexpr: 0{{#time:i|{{{Date Start|}}}}} = 0 ||:i}}a|{{{Date End|}}}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
}} | }} | ||
}}<!-- | |||
-->{{#if: {{{Open hours|}}}|<tr> | |||
<td>Schedule</td> | |||
<td><ul> | |||
{{{Open hours|}}} | |||
</ul></td> | |||
</tr> | |||
}}<!-- | }}<!-- | ||
Line 316: | Line 334: | ||
[[Associated Event::{{#ask: [[{{PAGENAME}}]]|link=none}}]] | [[Associated Event::{{#ask: [[{{PAGENAME}}]]|link=none}}]] | ||
|mainlabel=Opportunity | |mainlabel=Opportunity | ||
|?Opportunity | |?Opportunity format=Opportunity format | ||
|?Opportunity short description=Description | |?Opportunity short description=Description | ||
|?Opportunity start date=Start | |?Opportunity start date=Start | ||
Line 338: | Line 356: | ||
|headers=plain | |headers=plain | ||
|limit=500 | |limit=500 | ||
}}<!-- | |||
### Articles | |||
-->{{#if: {{#ask: [[Category:Published articles]][[Associated Event::{{PAGENAME}}]]}} | |||
|<table cellspacing="3" class="with-header border-bottom-0 mt-3"><tr><td>'''Articles'''</td></tr></table> | |||
}} | |||
{{#ask: [[Category:Published articles]][[Associated Event::{{PAGENAME}}]] | |||
|format=table | |||
|limit=100 | |||
|searchlabel= | |||
|class=mt-0 w-100 smwtable sortable | |||
|headers=plain | |||
|mainlabel=- | |||
|?Date Published#-F[m.d.y]=Date | |||
|?=Title | |||
|?Article author=Author(s) | |||
|?Additional category=Category | |||
}} | }} | ||
</div> | </div> | ||
Line 349: | 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: | }} {{#ifexpr: {{#time: Ymd235959|{{{Date End|}}}}}<{{#time: Ymd000000|now}} | ||
| [[Category:Past Events]] | | [[Category:Past Events]] | ||
}} | }} | ||
}} | }} | ||
</includeonly> | </includeonly> |