Difference between revisions of "Template:Transient extended infobox"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) (Removed previous tests and added IDs to the properties to find them more easily) |
SurtrFan8511 (talk | contribs) |
||
Line 369: | Line 369: | ||
}} | }} | ||
--> | --> | ||
{{#vardefine:charge skill subobj| | {{#vardefine:charge skill subobj| | ||
{{#if: {{{ | {{#if: {{{charge skill id|}}} | ||
|{{#ask: | |{{#ask: | ||
[[Has game context::Skill]] | [[Has game context::Skill]] | ||
[[Has ID::{{{ | [[Has ID::{{{charge skill id|}}}]] | ||
[[Has effect ID::1]] | [[Has effect ID::1]] | ||
|link=none | |link=none | ||
Line 384: | Line 384: | ||
}} | }} | ||
{{#vardefine:charge skill en name| | <!--{{#vardefine:charge skill en name| | ||
{{#if: {{#var:charge skill subobj|}} | {{#if: {{#var:charge skill subobj|}} | ||
|{{#show: {{#var:charge skill subobj}} |?Has English name }} | |{{#show: {{#var:charge skill subobj}} |?Has English name }} | ||
Line 440: | Line 440: | ||
{{#vardefine:transient id|{{{id|{{#if:{{{jp title|}}}|{{#masterdata:Card|{{{jp title|}}}|id:name.title}}}}}}}}} | {{#vardefine:transient id|{{{id|{{#if:{{{jp title|}}}|{{#masterdata:Card|{{{jp title|}}}|id:name.title}}}}}}}}} | ||
{{#ifexpr:{{#var:transient id|}}<2|{{#vardefine:transient id|}}}} | {{#ifexpr:{{#var:transient id|}}<2|{{#vardefine:transient id|}}}} | ||
{{#vardefine:charge skill weapon|{{Weapons|{{#replace:{{{charge skill pattern|{{#ifeq:{{#var:weapon type}}|?||{{#var:weapon type}}}}}}}|Weapon Spread |}}}}}} | {{#vardefine:charge skill weapon|{{Weapons|{{#replace:{{{charge skill pattern|{{#ifeq:{{#var:weapon type}}|?||{{#var:weapon type}}}}}}}|Weapon Spread |}}}}}} | ||
Line 491: | Line 484: | ||
| Has base skill ={{#if:{{{base skill 3|}}}|{{#var:base skill 3 subobj|-}};2;{{{base skill 3}}};{{#var:base skill 3 en name|{{{base skill 3}}}}};{{#var:base skill 3 desc|[?] ? / ?%}};{{#var:base skill 3 raw desc|[?] ? / ?%}};{{{base skill 3 id}}}}} | | Has base skill ={{#if:{{{base skill 3|}}}|{{#var:base skill 3 subobj|-}};2;{{{base skill 3}}};{{#var:base skill 3 en name|{{{base skill 3}}}}};{{#var:base skill 3 desc|[?] ? / ?%}};{{#var:base skill 3 raw desc|[?] ? / ?%}};{{{base skill 3 id}}}}} | ||
| Has base skill ={{#if:{{{base skill 4|}}}|{{#var:base skill 4 subobj|-}};3;{{{base skill 4}}};{{#var:base skill 4 en name|{{{base skill 4}}}}};{{#var:base skill 4 desc|[?] ? / ?%}};{{#var:base skill 4 raw desc|[?] ? / ?%}};{{{base skill 4 id}}}}} | | Has base skill ={{#if:{{{base skill 4|}}}|{{#var:base skill 4 subobj|-}};3;{{{base skill 4}}};{{#var:base skill 4 en name|{{{base skill 4}}}}};{{#var:base skill 4 desc|[?] ? / ?%}};{{#var:base skill 4 raw desc|[?] ? / ?%}};{{{base skill 4 id}}}}} | ||
| Has charge skill ={{{charge skill name|}}};{{{charge skill jp name|}}};{{{charge skill description|}}};{{#var:charge skill weapon}};{{{charge skill id}}} | | Has charge skill ={{{charge skill name|}}};{{{charge skill jp name|}}};{{{charge skill description|}}};{{#var:charge skill weapon}};{{{charge skill id|}}} | ||
| Has illustrator ={{#if:{{{illustrator|}}}| | | Has illustrator ={{#if:{{{illustrator|}}}| | ||
{{#vardefine:counter|0}} | {{#vardefine:counter|0}} | ||
Line 985: | Line 978: | ||
<th>[[@@@@|{{#show:@@@@|?Has English name|link=none}}]]</th> | <th>[[@@@@|{{#show:@@@@|?Has English name|link=none}}]]</th> | ||
<td>{{#masterdata:SkillDescription|{{#show: @@@@ |?Has ID}}}}</td> | <td>{{#masterdata:SkillDescription|{{#show: @@@@ |?Has ID}}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 997: | Line 984: | ||
<table class="data"> | <table class="data"> | ||
<tr> | <tr> | ||
<th colspan="3">{{#if:{{{charge skill name|}}}|{{#if:{{{charge skill jp-en name|}}}|<u><span title="{{{charge skill jp-en name}}}">{{{charge skill name}}}</span></u>|{{{charge skill name}}}}}|?}}</th> | <th colspan="3">{{#if:{{{charge skill name|}}}|{{#if:{{{charge skill jp-en name|}}}|<u><span title="{{{charge skill jp-en name}}}">{{#if:{{#var:charge skill subobj}}|[[{{#var:charge skill subobj}}|{{{charge skill name}}}]]|{{{charge skill name}}}}}</span></u>|{{#if:{{#var:charge skill subobj}}|[[{{#var:charge skill subobj}}|{{{charge skill name}}}]]|{{{charge skill name}}}}}}}|?}}</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,122: | Line 1,109: | ||
<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 | </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 08:14, 6 April 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.