Difference between revisions of "Template:Event infobox"

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

Navigation menu