Difference between revisions of "Template:Event infobox"

no edit summary
Line 37: Line 37:
   }}{{#ifexpr:{{#time: U|now}} >= {{#time:U|{{#var:duration array piece start}}}} and {{#time: U|now}} <= {{#time: U|{{#var:duration array piece end}}}}|
   }}{{#ifexpr:{{#time: U|now}} >= {{#time:U|{{#var:duration array piece start}}}} and {{#time: U|now}} <= {{#time: U|{{#var:duration array piece end}}}}|
     {{#vardefine:is active|true}}
     {{#vardefine:is active|true}}
   }}{{#vardefine:duration array piece start|{{#time:U|{{#var:duration array piece start}}}}
   }}{{#vardefineecho:duration array piece start|{{#time:U|{{#var:duration array piece start}}}}
   }}{{#vardefine:duration array piece end|{{#time:U|{{#var:duration array piece start}}}}
   }}{{#vardefineecho:duration array piece end|{{#time:U|{{#var:duration array piece start}}}}
   }}{{#ifexpr:{{#var:duration array piece start}} <= {{#var:duration earliest start}}|{{#vardefine:duration earliest start|{{#var:duration array piece start}}}}
   }}{{#ifexpr:{{#var:duration array piece start}} <= {{#var:duration earliest start}}|{{#vardefine:duration earliest start|{{#var:duration array piece start}}}}
   }}{{#ifexpr:{{#var:duration array piece end}} >= {{#var:duration latest end}}|{{#vardefine:duration latest end|{{#var:duration array piece end}}}}
   }}{{#ifexpr:{{#var:duration array piece end}} >= {{#var:duration latest end}}|{{#vardefine:duration latest end|{{#var:duration array piece end}}}}