Difference between revisions of "Template:Transient infobox"

Jump to navigation Jump to search
dont break
(dont break)
Line 1: Line 1:
<includeonly>{{#if: <!-- define vars -->
<includeonly>{{#vardefine:transient id|{{{id|{{#if:{{{jp title|}}}|{{#masterdata:Card|{{{jp title|}}}|id:name.title}}}}}}}}}
{{#ifexpr:{{#var:transient id|}}<2|{{#vardefine:transient id|}}}}{{#if:{{#var:transient id|}}|{{
#if:{{{en title|}}}|{{#vardefine:transient en title|{{{en title|}}}}}}}{{
#if:{{{en name|}}}|{{#vardefine:transient en name|{{{en name|}}}}}}}{{
#if:{{{charge skill name|}}}|{{#vardefine:transient en jingi|{{{charge skill name|}}}}}}}{{
#if:{{{charge skill description|}}}|{{#vardefine:transient en jingi description|{{{charge skill description|}}}}}}}
{{#mastertable:Card|{{#vardefine:transient id}}}}
|{{#if: <!-- define vars -->


{{#vardefine:energy|{{#switch:{{lc:{{{energy|{{{element|}}}}}}}}
{{#vardefine:energy|{{#switch:{{lc:{{{energy|{{{element|}}}}}}}}
Line 301: Line 308:
}}
}}
{{#vardefine:strategy|{{#ifexist:{{{en name|}}}/Strategy|{{{en name|}}}/Strategy|}}}}
{{#vardefine:strategy|{{#ifexist:{{{en name|}}}/Strategy|{{{en name|}}}/Strategy|}}}}
{{#vardefine:transient id|{{{id|{{#if:{{{jp title|}}}|{{#masterdata:Card|{{{jp title|}}}|id:name.title}}}}}}}}}
{{#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 853: Line 858:
|og:image={{filepath:{{#ifexist:File:{{{icon|}}}.png|{{{icon}}}.png|{{#ifexist:File:{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_icon.png|{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_icon.png|{{#ifexist:File:{{{en name}}}_{{{rarity}}}star_icon.png|{{{en name}}}_{{{rarity}}}star_icon.png|}}}}}}}}
|og:image={{filepath:{{#ifexist:File:{{{icon|}}}.png|{{{icon}}}.png|{{#ifexist:File:{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_icon.png|{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_icon.png|{{#ifexist:File:{{{en name}}}_{{{rarity}}}star_icon.png|{{{en name}}}_{{{rarity}}}star_icon.png|}}}}}}}}
|og:title={{{en name|{{{jp name|}}}}}} - Tokyo Afterschool Summoners Wiki
|og:title={{{en name|{{{jp name|}}}}}} - Tokyo Afterschool Summoners Wiki
}}}}}}</includeonly><noinclude>
}}}}}}}}</includeonly><noinclude>
== Description ==
== Description ==


Navigation menu