Difference between revisions of "Template:Event infobox"

no edit summary
Line 45: Line 45:
   {{#sub:{{#var:duration array}}|{{#expr:{{#pos:{{#var:duration array}}|;}}+1}}}}
   {{#sub:{{#var:duration array}}|{{#expr:{{#pos:{{#var:duration array}}|;}}+1}}}}
}}
}}
}}}}{{#ifeq:{{#var:is active|false}}|true||{{#vardefine:is active|false}}}}{{#subobject:event{{#vardefineecho:eventnumber|{{#expr:{{#var:eventnumber|-1}}+1}}}}
}}}}{{#ifeq:{{#var:is active|false}}|true||{{#vardefine:is active|false}}}}{{ #if: {{{id|}}} | {{#masterdata:Event|{{{id|}}} }} }}{{#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|}}}
Line 59: Line 59:
| Latest duration = {{#var:duration latest end}}
| Latest duration = {{#var:duration latest end}}
| Is active = {{#var:is active}}
| Is active = {{#var:is active}}
{{ #if: {{{id|}}} | {{#masterdata:Event|{{{id|}}} }} }}
| Has ID = {{{id|}}}
| Has filename = {{{#var:event filename|}}
}}{{#ifeq:{{#var:is active|false}}|true|[[Category:Active events]]|[[Category:Inactive events]]}}
}}{{#ifeq:{{#var:is active|false}}|true|[[Category:Active events]]|[[Category:Inactive events]]}}
}}<!-- end subobject
}}<!-- end subobject