Difference between revisions of "Template:Event infobox"

no edit summary
Line 32: Line 32:
}}{{#if:{{#var:duration}}|
}}{{#if:{{#var:duration}}|
   {{#vardefine:duration|{{#var:duration}};{{#var:duration array piece name}}!{{#time:c|{{#var:duration array piece start}}}}->{{#time:c|{{#var:duration array piece end}}}}}}
   {{#vardefine:duration|{{#var:duration}};{{#var:duration array piece name}}!{{#time:c|{{#var:duration array piece start}}}}->{{#time:c|{{#var:duration array piece end}}}}}}
   |{{#vardefine:duration|{{#var:duration}};{{#var:duration array piece name}}!{{#time:c|{{#var:duration array piece start}}}}->{{#time:c|{{#var:duration array piece end}}}}}}
   |{{#vardefine:duration|{{#var:duration array piece name}}!{{#time:c|{{#var:duration array piece start}}}}->{{#time:c|{{#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}}}}|
}}{{#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}}