Difference between revisions of "Template:Event infobox"

Jump to navigation Jump to search
should adjust timestamps to japan time
(should adjust timestamps to japan time)
Line 31: Line 31:
   }}{{#vardefine:duration array piece end|{{#replace:{{#var:duration array piece end}}|@|}}
   }}{{#vardefine:duration array piece end|{{#replace:{{#var:duration array piece end}}|@|}}
}}{{#if:{{#var:duration}}|
}}{{#if:{{#var:duration}}|
   {{#vardefine:duration|{{#var:duration}};{{#var:duration array piece name}}!{{#time:c|{{#var:duration array piece start}}}}->{{#time:c|{{#var:duration array piece end}}}}}}
   {{#vardefine:duration|{{#var:duration}};{{#var:duration array piece name}}!{{#replace:{{#time:c|{{#var:duration array piece start}}}}|+00:00|+09:00}}->{{#replace:{{#time:c|{{#var:duration array piece end}}}}|+00:00|+09:00}}}}
   |{{#vardefine:duration|{{#var:duration array piece name}}!{{#time:c|{{#var:duration array piece start}}}}->{{#time:c|{{#var:duration array piece end}}}}}}
   |{{#vardefine:duration|{{#var:duration array piece name}}!{{#replace:{{#time:c|{{#var:duration array piece start}}}}|+00:00|+09:00}}->{{#replace:{{#time:c|{{#var:duration array piece end}}}}|+00:00|+09:00}}}}
}}{{#ifexpr:{{#time: U|now}} >= {{#time:U|{{#var:duration array piece start}}}} and {{#time: U|now}} <= {{#time: U|{{#var:duration array piece end}}}}|
}}{{#ifexpr:{{#time: U|now}} >= {{#time:U|{{#var:duration array piece start}}}} and {{#time: U|now}} <= {{#time: U|{{#var:duration array piece end}}}}|
   {{#vardefine:is active|true}}
   {{#vardefine:is active|true}}

Navigation menu