Difference between revisions of "Template:Event infobox"

Jump to navigation Jump to search
no edit summary
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}}|
   {{#vardefineecho: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}}!{{#time:c|{{#var:duration array piece start}}}}->{{#time:c|{{#var:duration array piece end}}}}}}
   |{{#vardefineecho: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}}!{{#time:c|{{#var:duration array piece start}}}}->{{#time:c|{{#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}}}}|
}}{{#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}}
Line 40: Line 40:
   {{#sub:{{#var:duration array}}|{{#expr:{{#pos:{{#var:duration array}}|;}}+1}}}}
   {{#sub:{{#var:duration array}}|{{#expr:{{#pos:{{#var:duration array}}|;}}+1}}}}
}}
}}
}}}}{{#var:duration|}}{{#subobject:event{{#vardefineecho:eventnumber|{{#expr:{{#var:eventnumber|-1}}+1}}}}
}}}}{{#subobject:event{{#vardefineecho:eventnumber|{{#expr:{{#var:eventnumber|-1}}+1}}}}
| Has game context = Event
| Has game context = Event
| Has Japanese name ={{{jp name|}}}
| Has Japanese name ={{{jp name|}}}

Navigation menu