Difference between revisions of "Template:Transient extended infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(Just comment it for now)
(One more try)
Line 1,012: Line 1,012:
       <td style="width:50px; padding: 0px;">[[File:Weapon Spread {{#var:charge skill weapon|}}.png|50px|link={{#var:charge skill weapon|}}]]{{#if:{{{charge skill multiplier|}}}|<br><div style='text-align:center'>{{{charge skill multiplier}}}x</div>}}</td>
       <td style="width:50px; padding: 0px;">[[File:Weapon Spread {{#var:charge skill weapon|}}.png|50px|link={{#var:charge skill weapon|}}]]{{#if:{{{charge skill multiplier|}}}|<br><div style='text-align:center'>{{{charge skill multiplier}}}x</div>}}</td>
     </tr>
     </tr>
     <!--<tr>
     <tr>
<td>{|class="mw-collapsible mw-collapsed"
      <td><table class="mw-collapsible mw-collapsed">
|-
<tr>
| Show applicable ARs
<td>
|-
Show applicable ARs
| {{#arrayprint:available ar|<br>|@@@@|{{AR Equipment|id=@@@@}}}}
</td>
|}</td>
</tr>
    </tr>-->
<tr>
<td>
{{#arrayprint:available ar|<br>|@@@@|{{AR Equipment|id=@@@@}}}}
</td>
</tr>
</table></td>
    </tr>
     </table>
     </table>
     <!--}}-->
     <!--}}-->
Line 1,138: Line 1,144:
<div>{{#if:{{{skin artwork|}}}|{{#tag:galleryscript|{{#ifexist:File:{{{artwork|}}}.png|{{{artwork}}}|{{#ifexist:File:{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_full.png|{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_full|}}}};{{{skin artwork|}}}|number={{#var:transientnumber}}}}|}}
<div>{{#if:{{{skin artwork|}}}|{{#tag:galleryscript|{{#ifexist:File:{{{artwork|}}}.png|{{{artwork}}}|{{#ifexist:File:{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_full.png|{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_full|}}}};{{{skin artwork|}}}|number={{#var:transientnumber}}}}|}}
{{#if:{{{cdn skin artwork|}}}|{{#tag:masterdataskins|{{{cdn skin artwork|}}}|selector-chara-relations=#charaRelations{{{chara id|0}}}|voice={{#var:transient voice filename|}}|selector-fg=div.transient{{#var:transientnumber}} > .artwork > img|selector-icon=td.icon.transient{{#var:transientnumber}} > img|flags={{#var:transient voice condition|}}}}{{#vardefine:transient voice filename|}}{{#vardefine:transient voice condition|}}|}}</div>
{{#if:{{{cdn skin artwork|}}}|{{#tag:masterdataskins|{{{cdn skin artwork|}}}|selector-chara-relations=#charaRelations{{{chara id|0}}}|voice={{#var:transient voice filename|}}|selector-fg=div.transient{{#var:transientnumber}} > .artwork > img|selector-icon=td.icon.transient{{#var:transientnumber}} > img|flags={{#var:transient voice condition|}}}}{{#vardefine:transient voice filename|}}{{#vardefine:transient voice condition|}}|}}</div>
</div></div>{{#ifexpr:{{{charge skill id|0}}}>0|{{#masterdata:Skill|{{{charge skill id|0}}}|format=blank}}}}{{#arraydefine:base skill 1 evo|}}{{#arraydefine:base skill 2 evo|}}{{#arraydefine:base skill 3 evo|}}{{#arraydefine:base skill 4 evo|}}{{#vardefine:has skill evo|}}<!--list available ARs at the end I guess--><!--
</div></div>{{#ifexpr:{{{charge skill id|0}}}>0|{{#masterdata:Skill|{{{charge skill id|0}}}|format=blank}}}}{{#arraydefine:base skill 1 evo|}}{{#arraydefine:base skill 2 evo|}}{{#arraydefine:base skill 3 evo|}}{{#arraydefine:base skill 4 evo|}}{{#vardefine:has skill evo|}}<!--


     auto categorization
     auto categorization

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