Difference between revisions of "Template:Event infobox"

Jump to navigation Jump to search
no edit summary
Line 29: Line 29:
   }}
   }}
}}{{#if:{{#var:duration}}|
}}{{#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}};{{#var:duration array piece name}}!{{#time:U|{{#replace:{{#var:duration array piece start}}|@|}}}}->{{#time:U|{{#replace:{{#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}}}}}}
   |{{#vardefine:duration|{{#var:duration array piece name}}!{{#time:U|{{#replace:{{#var:duration array piece start}}|@|}}}}->{{#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}}|@|}}}}|
}}{{#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