Difference between revisions of "Template:Transient extended infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(Attempt at an optimization)
Line 437: Line 437:
}}
}}
{{#ifeq:{{#var:availability|}}|Current|
{{#ifeq:{{#var:availability|}}|Current|
{{#arraydefine:no restriction ar|{{#ask:
{{#arraydefine:available ar|{{#ask:
  [[Has game context::AR Equipment]]
  [[Has game context::AR Equipment]]
  [[Has restrictions::No restrictions]]
  [[Has restrictions::No restrictions||{{{en name|{{{jp name|?}}}}}}||{{Weapon type|{{#var:weapon type|?}}}}||{{Energy|{{#var:energy|?}}}}]]
|?Has ID #|mainlabel=-|link=none|headers=hide
|?Has ID #|mainlabel=-|link=none|headers=hide
}}}}{{#arraydefine:transient ar|{{#ask:
}}}}{{#arraysort:available ar|asc}}
[[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}}{{#arraysort:available ar|asc}}
}}
}}
{{#vardefine:strategy|{{#ifexist:{{{en name|}}}/Strategy|{{{en name|}}}/Strategy|}}}}
{{#vardefine:strategy|{{#ifexist:{{{en name|}}}/Strategy|{{{en name|}}}/Strategy|}}}}

Revision as of 04:05, 4 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.