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

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 41: Line 41:
| Has acquisition = {{{acquisition|}}}
| Has acquisition = {{{acquisition|}}}
}}
}}
}}{{#if:{{{illustrator|}}}|
  {{#vardefine:counter|0}}
  {{#arrayprint:illustrator
  | ###
  | @@@
  | {{#var:illustrator subobj {{#var:counter}}|-}};@@@;{{#var:illustrator en name {{#var:counter}}|@@@}}
    {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
  }}
}}<!-- end subobject
}}<!-- end subobject
-->{{#ifeq:{{#var:equipmentnumber|0}}|0|{{#css:
-->{{#ifeq:{{#var:equipmentnumber|0}}|0|{{#css:
Line 90: Line 82:
     </tr>
     </tr>
     <tr>
     <tr>
       <td colspan=3>{{{illustrator|}}}</td>
       <td colspan=3>{{#vardefine:counter|0}}{{#if: {{{illustrator|}}}
  | {{#arrayprint:illustrator
    |,&#32;
    |@@@
    | {{#if: {{#var:illustrator subobj {{#var:counter}}|}}
      | [[{{#var:illustrator subobj {{#var:counter}}}}|{{#var:illustrator en name {{#var:counter}}|@@@ }}]]
      | @@@
      }}
      {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
    }}
  | &mdash;&mdash;
  }}</td>
     </tr>
     </tr>
}}
}}

Revision as of 13:25, 30 September 2019

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.