Template:Event: Difference between revisions

From MWStake
Jump to navigation Jump to search
(add watchers of Template:Event as watchers of all pages in Category:Events)
(move #set: calls up to first part of template)
Line 1: Line 1:
<noinclude>
<noinclude>
[[Category:Framework Pages]]
[[Category:Framework Pages]]
</noinclude><includeonly>
</noinclude><includeonly><!--
{| class="wikitable"
 
SET SMW PROPERTIES
 
-->{{#set:Name={{#var:name}}}}<!--
-->{{#set:Short NName={{#ifeq:{{{mwstake-meeting|}}}|Yes|MWstake Meeting|{{{title}}}}}}}<!--
-->{{#set:MWstake Meeting={{#ifeq:{{{mwstake-meeting|}}}|Yes|Yes|No}}}}<!--
-->{{#set:Start Date={{{start-date}}} {{#if:{{{start-hour|}}}{{{start-minute|}}}|{{#if:{{{start-hour|}}}|{{{start-hour}}}|00}}:{{#if:{{{start-minute|}}}|{{{start-minute}}}|00}} UTC}}}}<!--
-->{{#set:End Date={{#if:{{{end-date|}}}|{{{end-date}}}|{{{start-date}}}}} {{#if:{{{end-hour|}}}{{{end-minute|}}}|{{#if:{{{end-hour|}}}|{{{end-hour}}}|00}}:{{#if:{{{end-minute|}}}|{{{end-minute}}}|00}} UTC|{{#if:{{{start-hour|}}}{{{start-minute|}}}|{{#if:{{{start-hour|}}}|{{{start-hour}}}|00}}:{{#if:{{{start-minute|}}}|{{{start-minute}}}|00}} UTC}}}}}}<!--
-->{{#set:Date={{{start-date}}}}}<!--
-->{{#arraymap:{{{url|}}}|,|@@@@|{{#set:Event URL=@@@@}}}}<!--
-->{{#set:Title Icon={{#ifeq:{{{mwstake-meeting|}}}|Yes|Meeting.png|Calendar.png}}}}<!--
-->{{#set:Icon={{#ifeq:{{{mwstake-meeting|}}}|Yes|File:Meeting.png|File:Calendar.png}}}}<!--
-->{{#set:Color={{#ifeq:{{{mwstake-meeting|}}}|Yes|#009933|#0066FF}}}}<!--
 
CREATE TABLE
 
-->{| class="wikitable"
{{Optional Table Row|[[Image:Blank.png|24px|link=]] Date (UTC)|{{#show:{{FULLPAGENAME}}|?Start Date}} - {{#show:{{FULLPAGENAME}}|?End Date}}}}
{{Optional Table Row|[[Image:Blank.png|24px|link=]] Date (UTC)|{{#show:{{FULLPAGENAME}}|?Start Date}} - {{#show:{{FULLPAGENAME}}|?End Date}}}}
{{Optional Table Row|[[Image:Blank.png|24px|link=]] URL|{{{url|}}}}}
{{Optional Table Row|[[Image:Blank.png|24px|link=]] URL|{{{url|}}}}}
Line 11: Line 27:
<div style="display:none;">
<div style="display:none;">
{{#vardefine:name|{{#ifeq:{{{mwstake-meeting|}}}|Yes|{{#invoke:Utilities|datetime_utc|{{{start-date}}}}} MWstake Meeting|{{{title}}}}}}}
{{#vardefine:name|{{#ifeq:{{{mwstake-meeting|}}}|Yes|{{#invoke:Utilities|datetime_utc|{{{start-date}}}}} MWstake Meeting|{{{title}}}}}}}
{{#set:Name={{#var:name}}}}
 
{{#set:Short Name={{#ifeq:{{{mwstake-meeting|}}}|Yes|MWstake Meeting|{{{title}}}}}}}
{{#set:MWstake Meeting={{#ifeq:{{{mwstake-meeting|}}}|Yes|Yes|No}}}}
{{#if:{{{tags|}}}|{{#invoke:Utilities|parseMultiple|{{{tags}}}|Set Tag}}}}
{{#if:{{{tags|}}}|{{#invoke:Utilities|parseMultiple|{{{tags}}}|Set Tag}}}}
{{#if:{{{attendees|}}}|{{#invoke:Utilities|parseMultiple|{{{attendees}}}|Set Person}}}}
{{#if:{{{attendees|}}}|{{#invoke:Utilities|parseMultiple|{{{attendees}}}|Set Person}}}}
{{#set:Start Date={{{start-date}}} {{#if:{{{start-hour|}}}{{{start-minute|}}}|{{#if:{{{start-hour|}}}|{{{start-hour}}}|00}}:{{#if:{{{start-minute|}}}|{{{start-minute}}}|00}} UTC}}}}
 
{{#set:End Date={{#if:{{{end-date|}}}|{{{end-date}}}|{{{start-date}}}}} {{#if:{{{end-hour|}}}{{{end-minute|}}}|{{#if:{{{end-hour|}}}|{{{end-hour}}}|00}}:{{#if:{{{end-minute|}}}|{{{end-minute}}}|00}} UTC|{{#if:{{{start-hour|}}}{{{start-minute|}}}|{{#if:{{{start-hour|}}}|{{{start-hour}}}|00}}:{{#if:{{{start-minute|}}}|{{{start-minute}}}|00}} UTC}}}}}}
{{#set:Date={{{start-date}}}}}
{{#arraymap:{{{url|}}}|,|@@@@|{{#set:Event URL=@@@@}}}}
{{#set:Title Icon={{#ifeq:{{{mwstake-meeting|}}}|Yes|Meeting.png|Calendar.png}}}}
{{#set:Icon={{#ifeq:{{{mwstake-meeting|}}}|Yes|File:Meeting.png|File:Calendar.png}}}}
{{#set:Color={{#ifeq:{{{mwstake-meeting|}}}|Yes|#009933|#0066FF}}}}
{{DISPLAYTITLE:{{#var:name}}}}
{{DISPLAYTITLE:{{#var:name}}}}
{{DEFAULTSORT:{{#ifeq:{{{mwstake-meeting|}}}|Yes|MWstake Meeting|{{{title}}}}}}}
{{DEFAULTSORT:{{#ifeq:{{{mwstake-meeting|}}}|Yes|MWstake Meeting|{{{title}}}}}}}

Revision as of 15:39, 28 August 2018