Difference between revisions of "Template:Transient extended infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(Attempt at an optimization)
(Put the equippable ar template in)
Line 435: Line 435:
{{#if:{{{skill id 4|}}}|
{{#if:{{{skill id 4|}}}|
{{#vardefine:base skill 4 desc|{{#masterdata:Skill|{{{skill id 4}}}|effects}}}}{{#vardefine:base skill 4 raw desc|{{#replace:{{#tag:strip|{{#var:base skill 4 desc}}}}}}|;|\;}}
{{#vardefine:base skill 4 desc|{{#masterdata:Skill|{{{skill id 4}}}|effects}}}}{{#vardefine:base skill 4 raw desc|{{#replace:{{#tag:strip|{{#var:base skill 4 desc}}}}}}|;|\;}}
}}
{{#ifeq:{{#var:availability|}}|Current|
{{#arraydefine:available ar|{{#ask:
[[Has game context::AR Equipment]]
[[Has restrictions::No restrictions||{{{en name|{{{jp name|?}}}}}}||{{Weapon type|{{#var:weapon type|?}}}}||{{Energy|{{#var:energy|?}}}}]]
|?Has ID #|mainlabel=-|link=none|headers=hide
}}}}{{#arraysort:available ar|asc}}
}}
}}
{{#vardefine:strategy|{{#ifexist:{{{en name|}}}/Strategy|{{{en name|}}}/Strategy|}}}}
{{#vardefine:strategy|{{#ifexist:{{{en name|}}}/Strategy|{{{en name|}}}/Strategy|}}}}
Line 1,001: Line 994:
     </tr>
     </tr>
     {{#ifeq:{{#var:availability|}}|Current|<tr>
     {{#ifeq:{{#var:availability|}}|Current|<tr>
       <td colspan="3"><div class="toccolours mw-collapsible mw-collapsed" style="width:814px; overflow:auto;">
       <td colspan="3">{{Equippable AR Equipment|{{{en name|{{{jp name|?}}}}}};{{Weapon type|{{#var:weapon type|?}}}};{{Energy|{{#var:energy|?}}}}}}</td>
      <div style="font-weight:bold;line-height:1.6;">Show equippable ARs</div>
      <div class="mw-collapsible-content">
{{#arrayprint:available ar| |@@@@|{{AR Equipment icon|id=@@@@}}}}
      </div></div></td>
     </tr>}}
     </tr>}}
     </table>
     </table>

Revision as of 06:31, 5 July 2020

Description

This templates creates an infobox and subobject for a Transient. Please do not directly invoke this template.

An example to feed override parameters (such as translation names) are:

{{#vardefine:transient en name|Name}}
{{#vardefine:transient en title|Title}}
{{#vardefine:transient availability|Available}}
{{#vardefine:transient acquisition|Gacha}}
{{#vardefine:transient en jingi|Charge Skill Name}}
{{#vardefine:transient species|Species}}
{{#vardefine:transient gate|Gate Name}}
{{#vardefine:transient jp en research file|Translation for Japanese Research File}}

{{#vardefine:transient height|166}}
{{#vardefine:transient weight|96}}
{{#vardefine:transient summon date|8/7}}

To invoke this template properly, use (after the vardefines):

{{#masterdata:Card|CARDID}}

Consult other transient pages for additional undocumented options.