Difference between revisions of "Template:Transient extended infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(Fixed categorization for genders)
(monkaW)
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:no restriction ar|{{#ask:
[[Has game context::AR Equipment]]
[[Has restrictions::No restrictions]]
|?Has ID #|mainlabel=-|link=none|headers=hide
}}}}{{#arraydefine:transient ar|{{#ask:
[[Has game context::AR Equipment]]
[[Has restrictions::{{{en name|{{{jp name|?}}}}}}]]
|?Has ID #|mainlabel=-|link=none|headers=hide
}}}}{{#arraydefine:weapon ar|{{#ask:
[[Has game context::AR Equipment]]
[[Has restrictions::{{Weapon type|{{#var:weapon type|?}}}}]]
|?Has ID #|mainlabel=-|link=none|headers=hide
}}}}{{#arraydefine:attribute ar|{{#ask:
[[Has game context::AR Equipment]]
[[Has restrictions::{{Energy|{{#var:energy|?}}}}]]
|?Has ID #|mainlabel=-|link=none|headers=hide
}}}}{{#arrayunion:available ar|no restriction ar|transient ar|weapon ar|attribute ar}}
}}
}}
{{#vardefine:strategy|{{#ifexist:{{{en name|}}}/Strategy|{{{en name|}}}/Strategy|}}}}
{{#vardefine:strategy|{{#ifexist:{{{en name|}}}/Strategy|{{{en name|}}}/Strategy|}}}}
Line 1,101: Line 1,120:
     <tr>
     <tr>
       <th colspan="3">Partial Entry</th>
       <th colspan="3">Partial Entry</th>
    </tr>
    </table>
  |}}
  {{#if:{{#arrayprint:available ar|}}|
    <table class="data transientInfo{{#var:transientnumber}}">
    <tr>
      <th colspan="3">{|class="mw-collapsible mw-collapsed"
      |-
      | Show applicable ARs
      |-
      | {{#arrayprint:available ar|<br>|@@@@|{{AR Equipment|id=@@@@}}}}
      |}</th>
     </tr>
     </tr>
     </table>
     </table>

Revision as of 09:28, 1 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.