Difference between revisions of "Template:Event infobox"

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}}!{{#time:U|{{#var:duration array piece start}}}}->{{#time:U|{{#var:duration array piece end}}}}}}
   {{#vardefineecho: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}}}}}}
   |{{#vardefineecho: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}}|@|}}}}|
Line 55: Line 55:
| floats = true
| floats = true
| banners = 0
| banners = 0
}}
}}</includeonly><noinclude>
{{#var:duration}}</includeonly><noinclude>
== Description ==
== Description ==