Template:Event: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
Line 208: Line 208:
{{DISPLAYTITLE: {{{Event display name|}}}}}
{{DISPLAYTITLE: {{{Event display name|}}}}}
[[Category:Events]]
[[Category:Events]]
{{#ifexpr: {{#time: Ymd | {{{Date End|}}} }}<{{#time: Ymd|now}}|[[Category:Past Events]]|[[Category:Upcoming Events]]}}
{{#ifexpr: 0{{#time: Ymd|{{{Date Start|}}}}}<={{#time: Ymd|now}} and 0{{#time: Ymd|{{{Date End|}}}}}>={{#time: Ymd|now}}
| [[Category:Current Events]]
| {{#ifexpr: {{#time: Ymd|{{{Date Start|}}}}}>{{#time: Ymd|now}}
| [[Category:Upcoming Events]]
}} {{#ifexpr: {{#time: Ymd|{{{Date End|}}}}}<{{#time: Ymd|now}}
| [[Category:Past Events]]
}}
}}
</includeonly>
</includeonly>

Revision as of 00:07, November 24, 2022