Difference between revisions of "Template:AR Equipment extended infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
m (oops)
Line 22: Line 22:
   }}
   }}
   {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
   {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
}}{{#subobject:equipment{{#vardefineecho:equipmentumber|{{#expr:{{#var:equipmentnumber|-1}}+1}}}}
}}{{#if:{{{id|}}}|{{#vardefine:ar skill id|{{formatnum|{{#ask:
[[Has key::AR skill linker]]
[[Has AR ID::{{{id|}}}]]
|?Has Skill ID|mainlabel=-|limit=1|headers=hide
}}|R}}}}{{#subobject:equipment{{#vardefineecho:equipmentumber|{{#expr:{{#var:equipmentnumber|-1}}+1}}}}
| Has game context = AR Equipment
| Has game context = AR Equipment
| Has Japanese name = {{{name|}}}
| Has Japanese name = {{{name|}}}
Line 110: Line 114:
{{#if:{{{skills|}}}|
{{#if:{{{skills|}}}|
     <tr>
     <tr>
       <th colspan=3>{{#ifexist:AR Equipment Skill:{{{id|}}}|[[AR Equipment Skill:{{{id|}}}|Skills]]|Skills}}</th>
       <th colspan=3>{{#ifexist:AR Equipment Skill:{{#var:ar skill id}}|[[AR Equipment Skill:{{#var:ar skill id}}|Skills]]|Skills}}</th>
     </tr>
     </tr>
     <tr>
     <tr>

Revision as of 13:55, 21 May 2020

Description

Both creates an infobox and defines a subobject for AR Equipment. Additional parameters include:

{{#vardefine:ar equipment acquisition|}}
{{#vardefine:ar equipment en name|}}
{{#vardefine:ar equipment en note|}}
{{#vardefine:ar equipment acquisition|}}

Like other extended infobox templates, invocation of this template is to be done through the corresponding {{#masterdata:Equip|ID}} extension call.