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

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 22: Line 22:
   }}
   }}
   {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
   {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
}}{{#if:{{{id|}}}|{{#vardefine:ar skill id|{{formatnum|{{#ask:
}}{{#subobject:equipment{{#vardefineecho:equipmentumber|{{#expr:{{#var:equipmentnumber|-1}}+1}}}}
[[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 49: Line 45:
}}
}}
}}<!-- end subobject
}}<!-- end subobject
-->{{#ifeq:{{#var:equipmentnumber|0}}|0|{{#css:
-->{{#if:{{{id|}}}|{{#vardefineecho:ar skill id|{{formatnum|{{#ask:
[[Has key::AR skill linker]]
[[Has AR ID::{{{id|}}}]]
|?Has Skill ID|mainlabel=-|limit=1|headers=hide
}}|R}}}}}}{{#ifeq:{{#var:equipmentnumber|0}}|0|{{#css:
table.equipment-infobox {
table.equipment-infobox {
     float: right;
     float: right;

Revision as of 13:58, 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.