Difference between revisions of "Template:Transient extended infobox"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) m (Fixed a bug) |
SurtrFan8511 (talk | contribs) |
||
Line 192: | Line 192: | ||
{{#if: {{#var:base skill 1 subobj|}}| | {{#if: {{#var:base skill 1 subobj|}}| | ||
{{#if:{{#vardefineecho:base skill 1 evo|{{#show: {{#var:base skill 1 subobj}} |?Has evolved skill|link=none}}}}|{{#vardefine:has skill evo|true}}}} | <!--{{#if:{{#vardefineecho:base skill 1 evo|{{#show: {{#var:base skill 1 subobj}} |?Has evolved skill|link=none}}}}|{{#vardefine:has skill evo|true}}}}--> | ||
{{#if:{{#show: {{#var:base skill 1 subobj}} |?Has evolved skill|link=none}}|{{#arraydefine:base skill 1 evo|{{#show: {{#var:base skill 1 subobj}} |?Has evolved skill|link=none}} }}{{#vardefine:has skill evo|true}} }} | |||
}} | }} | ||
Line 240: | Line 241: | ||
{{#if: {{#var:base skill 2 subobj|}}| | {{#if: {{#var:base skill 2 subobj|}}| | ||
<!--{{#if:{{#vardefineecho:base skill 2 evo|{{#show: {{#var:base skill 2 subobj}} |?Has evolved skill|link=none}}}}|{{#vardefine:has skill evo|true}}}}--> | |||
{{#if:{{#show: {{#var:base skill 2 subobj}} |?Has evolved skill|link=none}}|{{#arraydefine:base skill 2 evo|{{#show: {{#var:base skill 1 subobj}} |?Has evolved skill|link=none}} }}{{#vardefine:has skill evo|true}} }} | |||
}} | }} | ||
Line 287: | Line 289: | ||
{{#if: {{#var:base skill 3 subobj|}}| | {{#if: {{#var:base skill 3 subobj|}}| | ||
{{#if:{{#vardefineecho:base skill 3 evo|{{#show: {{#var:base skill 3 subobj}} |?Has evolved skill|link=none}}}}|{{#vardefine:has skill evo|true}}}} | <!--{{#if:{{#vardefineecho:base skill 3 evo|{{#show: {{#var:base skill 3 subobj}} |?Has evolved skill|link=none}}}}|{{#vardefine:has skill evo|true}}}}--> | ||
{{#if:{{#show: {{#var:base skill 3 subobj}} |?Has evolved skill|link=none}}|{{#arraydefine:base skill 3 evo|{{#show: {{#var:base skill 3 subobj}} |?Has evolved skill|link=none}} }}{{#vardefine:has skill evo|true}} }} | |||
}} | }} | ||
Line 346: | Line 349: | ||
{{#if: {{#var:base skill 4 subobj|}}| | {{#if: {{#var:base skill 4 subobj|}}| | ||
{{#if:{{#vardefineecho:base skill 4 evo|{{#show: {{#var:base skill 4 subobj}} |?Has evolved skill|link=none}}}}|{{#vardefine:has skill evo|true}}}} | <!--{{#if:{{#vardefineecho:base skill 4 evo|{{#show: {{#var:base skill 4 subobj}} |?Has evolved skill|link=none}}}}|{{#vardefine:has skill evo|true}}}}--> | ||
{{#if:{{#show: {{#var:base skill 4 subobj}} |?Has evolved skill|link=none}}|{{#arraydefine:base skill 4 evo|{{#show: {{#var:base skill 4 subobj}} |?Has evolved skill|link=none}} }}{{#vardefine:has skill evo|true}} }} | |||
}} | }} | ||
Line 931: | Line 935: | ||
</table> | </table> | ||
{{#if: {{#var:has skill evo|}} | | {{#if: {{#var:has skill evo|}} | | ||
<table class="data> | <table class="data"> | ||
<tr> | <tr> | ||
<th colspan="3">[[Skill Evolution]](s)</th> | <th colspan="3">[[Skill Evolution]](s)</th> | ||
</tr> | </tr> | ||
<!-- {{#if: {{#var:base skill 1 evo|}} | | |||
<tr> | <tr> | ||
<th>[[{{#var:base skill 1 evo|}}|{{#var:base skill 1 en name|{{{base skill 1}}} }} Plus]]</th> | <th>[[{{#var:base skill 1 evo|}}|{{#var:base skill 1 en name|{{{base skill 1}}} }} Plus]]</th> | ||
Line 957: | Line 961: | ||
<th>[[{{#var:base skill 4 evo|}}|{{#var:base skill 4 en name|{{{base skill 4}}} }} Plus]]</th> | <th>[[{{#var:base skill 4 evo|}}|{{#var:base skill 4 en name|{{{base skill 4}}} }} Plus]]</th> | ||
<td>{{#masterdata:SkillDescription|{{#show: {{#var:base skill 4 evo}} |?Has ID}}}}</td> | <td>{{#masterdata:SkillDescription|{{#show: {{#var:base skill 4 evo}} |?Has ID}}}}</td> | ||
</tr> | |||
}}--> | |||
{{#arrayprint:base skill 1 evo||@@@@ | |||
|<tr> | |||
<th>[[@@@@|{{#show:@@@@|?Has English name|link=none}}]]</th> | |||
<td>{{#masterdata:SkillDescription|{{#show: @@@@ |?Has ID}}}}</td> | |||
</tr> | |||
}} | |||
{{#arrayprint:base skill 2 evo||@@@@ | |||
|<tr> | |||
<th>[[@@@@|{{#show:@@@@|?Has English name|link=none}}]]</th> | |||
<td>{{#masterdata:SkillDescription|{{#show: @@@@ |?Has ID}}}}</td> | |||
</tr> | |||
}} | |||
{{#arrayprint:base skill 3 evo||@@@@ | |||
|<tr> | |||
<th>[[@@@@|{{#show:@@@@|?Has English name|link=none}}]]</th> | |||
<td>{{#masterdata:SkillDescription|{{#show: @@@@ |?Has ID}}}}</td> | |||
</tr> | |||
}} | |||
{{#arrayprint:base skill 4 evo||@@@@ | |||
|<tr> | |||
<th>[[@@@@|{{#show:@@@@|?Has English name|link=none}}]]</th> | |||
<td>{{#masterdata:SkillDescription|{{#show: @@@@ |?Has ID}}}}</td> | |||
</tr> | </tr> | ||
}} | }} | ||
Line 1,094: | Line 1,122: | ||
<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}}}}{{# | </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:sse evo|}}{{#vardefine:has skill evo|}}<!-- | ||
auto categorization | auto categorization |
Revision as of 15:53, 28 February 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}}
To invoke this template properly, use (after the vardefines):
{{#masterdata:Card|CARDID}}
Consult other transient pages for additional undocumented options.