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

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly><onlyinclude>{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> |
<includeonly><onlyinclude>{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> |{{#subobject:equipment{{#vardefineecho:equipmentumber|{{#expr:{{#var:equipmentnumber|-1}}+1}}}}
{{#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 12: Line 11:
}}
}}
}}<!-- end subobject
}}<!-- end subobject
-->
-->{{#ifeq:{{#var:equipmentnumber|0}}|0|{{#css:
{{#ifeq:{{#var:equipmentnumber|0}}|0|{{#css:
table.equipment-infobox {
table.equipment-infobox {
     float: right;
     float: right;
Line 43: Line 41:
     background-color: #e4e4ff;
     background-color: #e4e4ff;
}
}
}}}}
}}}}<table class="equipment-infobox" id="equipment{{#var:equipmentnumber|0}}">
 
<table class="equipment-infobox" id="equipment{{#var:equipmentnumber|0}}">
     <tr>
     <tr>
       <th colspan=3>{{Star|{{{rarity|}}}}} {{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon_equip/equip_icon_{{{filename|none}}}.png|width=60|height=60}} {{#ifeq:{{{en name|}}}||{{{name|}}}|{{{en name|}}}}} </th>
       <th colspan=3>{{Star|{{{rarity|}}}}} {{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon_equip/equip_icon_{{{filename|none}}}.png|width=60|height=60}} {{#ifeq:{{{en name|}}}||{{{name|}}}|{{{en name|}}}}} </th>

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