Difference between revisions of "Template:Event infobox"

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