Template:Event: Difference between revisions
Jump to navigation
Jump to search
Darenwelsh (talk | contribs) (move #set: calls up to first part of template) |
Darenwelsh (talk | contribs) (use variables for date calcs, display those instead of SMW query values) |
||
Line 8: | Line 8: | ||
-->{{#set:Short NName={{#ifeq:{{{mwstake-meeting|}}}|Yes|MWstake Meeting|{{{title}}}}}}}<!-- | -->{{#set:Short NName={{#ifeq:{{{mwstake-meeting|}}}|Yes|MWstake Meeting|{{{title}}}}}}}<!-- | ||
-->{{#set:MWstake Meeting={{#ifeq:{{{mwstake-meeting|}}}|Yes|Yes|No}}}}<!-- | -->{{#set:MWstake Meeting={{#ifeq:{{{mwstake-meeting|}}}|Yes|Yes|No}}}}<!-- | ||
-->{{# | -->{{#vardefine:StartDate|{{{start-date}}} {{#if:{{{start-hour|}}}{{{start-minute|}}}|{{#if:{{{start-hour|}}}|{{{start-hour}}}|00}}:{{#if:{{{start-minute|}}}|{{{start-minute}}}|00}} UTC}}}}{{#set:Start Date={{#var:StartDate}}}}<!-- | ||
-->{{# | -->{{#vardefine:EndDate|{{#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:End Date={{#var:EndDate}}}}<!-- | ||
-->{{#set:Date={{{start-date}}}}}<!-- | -->{{#set:Date={{{start-date}}}}}<!-- | ||
-->{{#arraymap:{{{url|}}}|,|@@@@|{{#set:Event URL=@@@@}}}}<!-- | -->{{#arraymap:{{{url|}}}|,|@@@@|{{#set:Event URL=@@@@}}}}<!-- | ||
Line 19: | Line 19: | ||
-->{| class="wikitable" | -->{| class="wikitable" | ||
{{Optional Table Row|[[Image:Blank.png|24px|link=]] Date (UTC)|{{# | {{Optional Table Row|[[Image:Blank.png|24px|link=]] Date (UTC)|{{#var:StartDate}} - {{#var:EndDate}}}} | ||
{{Optional Table Row|[[Image:Blank.png|24px|link=]] URL|{{{url|}}}}} | {{Optional Table Row|[[Image:Blank.png|24px|link=]] URL|{{{url|}}}}} | ||
{{Optional Table Row|[[Image:Tag.png|24px|link=]] Tags|{{{tags|}}}|{{#invoke:Utilities|parseMultiple|{{{tags}}}|Tag Link|,}}}} | {{Optional Table Row|[[Image:Tag.png|24px|link=]] Tags|{{{tags|}}}|{{#invoke:Utilities|parseMultiple|{{{tags}}}|Tag Link|,}}}} |
Revision as of 15:49, 28 August 2018