Difference between revisions of "Template:Event infobox"

Jump to navigation Jump to search
no edit summary
Line 27: Line 27:
   }}{{#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}}}}
  }}{{#if:{{#var:duration}}|
  {{#vardefineecho:duration|{{#var:duration}};{{#var:duration array piece name}}!{{#time:U|{{#var:duration array piece start}}}}->{{#time:U|{{#var:duration array piece end}}}}}}
  |{{#vardefineecho:duration|{{#var:duration array piece name}}!{{#time:U|{{#var:duration array piece start}}}}->{{#time:U|{{#var:duration array piece end}}}}}}
   }}
   }}
}}{{#if:{{#var:duration}}|
  {{#vardefine:duration|{{#var:duration}};{{#var:duration array piece name}}!{{#time:U|{{#var:duration array piece start}}}}->{{#time:U|{{#var:duration array piece end}}}}}}
  |{{#vardefine:duration|{{#var:duration array piece name}}!{{#time:U|{{#var:duration array piece start}}}}->{{#time:U|{{#var:duration array piece end}}}}}}
}}{{#ifexpr:{{#time: U|now}} >= {{#time:U|{{#replace:{{#var:duration array piece start}}|@|}}}} and {{#time: U|now}} <= {{#time: U|{{#replace:{{#var:duration array piece end}}|@|}}}}|
}}{{#ifexpr:{{#time: U|now}} >= {{#time:U|{{#replace:{{#var:duration array piece start}}|@|}}}} and {{#time: U|now}} <= {{#time: U|{{#replace:{{#var:duration array piece end}}|@|}}}}|
   {{#vardefine:is active|true}}
   {{#vardefine:is active|true}}

Navigation menu