Difference between revisions of "Template:Event infobox"

Jump to navigation Jump to search
no edit summary
Line 4: Line 4:
   {{#vardefine:duration array|{{{duration|}}}
   {{#vardefine:duration array|{{{duration|}}}
}}{{#vardefine:duration loop|1
}}{{#vardefine:duration loop|1
}}{{#vardefine:duration earliest start|99999999999
}}{{#vardefine:duration earliest start|December 31, 3000
}}{{#vardefine:duration latest end|0
}}{{#vardefine:duration latest end|December 2nd, 2016
}}{{#while:|{{#var:duration loop}}|
}}{{#while:|{{#var:duration loop}}|
{{#vardefine:duration array piece|
{{#vardefine:duration array piece|
Line 27: Line 27:
     }}{{#vardefine:duration array piece end|
     }}{{#vardefine:duration array piece end|
       {{#explode:{{#var:duration array piece}}|->|1}}
       {{#explode:{{#var:duration array piece}}|->|1}}
     }}{{#if:{{#var:duration array piece start|}}||{{#vardefine:duration array piece start|{{#time:c|December 2nd, 2018}}}}
     }}{{#if:{{#var:duration array piece start|}}||{{#vardefine:duration array piece start|{{#time:c|December 2nd, 2016}}}}
     }}{{#if:{{#var:duration array piece end|}}||{{#vardefine:duration array piece end|{{#time:c|December 31st, 3000}}}}
     }}{{#if:{{#var:duration array piece end|}}||{{#vardefine:duration array piece end|{{#time:c|December 31st, 3000}}}}
     }}
     }}

Navigation menu