Difference between revisions of "Template:Event infobox"

no edit summary
(time logic cleanup)
Line 21: Line 21:
   |{{#vardefine:duration array piece name|Duration
   |{{#vardefine:duration array piece name|Duration
   }}{{#vardefine:duration array piece start|
   }}{{#vardefine:duration array piece start|
     {{#explode:{{#var:duration array piece}}}}|->|0}}
     {{#explode:{{#var:duration array piece}}|->|0}}
   }}{{#vardefine:duration array piece end|
   }}{{#vardefine:duration array piece end|
     {{#explode:{{#var:duration array piece}}}}|->|1}}
     {{#explode:{{#var:duration array piece}}|->|1}}
   }}{{#if:{{#var:duration array piece start|}}||{{#vardefine:duration array piece start|{{#time:U|December 2nd, 2018}}}}
   }}{{#if:{{#var:duration array piece start|}}||{{#vardefine:duration array piece start|{{#time:U|December 2nd, 2018}}}}
   }}{{#if:{{#var:duration array piece end|}}||{{#vardefine:duration array piece end|{{#time:U|December 31st, 3000}}}}
   }}{{#if:{{#var:duration array piece end|}}||{{#vardefine:duration array piece end|{{#time:U|December 31st, 3000}}}}