Difference between revisions of "Template:Transient extended infobox"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) |
SurtrFan8511 (talk | contribs) (Separating element icon from weapon icon) |
||
(13 intermediate revisions by 3 users not shown) | |||
Line 13: | Line 13: | ||
| 9 | 無限 | infinity | infinite | mugen = 無限 | | 9 | 無限 | infinity | infinite | mugen = 無限 | ||
| 10 | 零 | zero | null = 零 | | 10 | 零 | zero | null = 零 | ||
| 11 | 神 | god = 神 | |||
|#default = ? | |#default = ? | ||
}} | }} | ||
Line 48: | Line 49: | ||
{{#vardefine:energy filename|{{#switch:{{#var:energy}} | {{#vardefine:energy filename|{{#switch:{{#var:energy}} | ||
| 全 = | | 全 = ui_button_elm_none | ||
| 火 = | | 火 = ui_button_elm_fire | ||
| 水 = | | 水 = ui_button_elm_water | ||
| 木 = | | 木 = ui_button_elm_earth | ||
| 天 = | | 天 = ui_button_elm_light | ||
| 冥 = | | 冥 = ui_button_elm_dark | ||
| 魔 = | | 魔 = ui_button_elm_evil | ||
| 英雄 = | | 英雄 = ui_button_elm_hero | ||
| 世界 = | | 世界 = ui_button_elm_world | ||
| 無限 = | | 無限 = ui_button_elm_infinity | ||
| 零 = | | 零 = ui_button_elm_zero | ||
| 神 = icon_element_god | |||
| #default = none | | #default = none | ||
}} | }} | ||
Line 450: | Line 452: | ||
{{#vardefine:guild|{{#var:transient en affiliation|{{{guild|}}}}}}} | {{#vardefine:guild|{{#var:transient en affiliation|{{{guild|}}}}}}} | ||
{{#vardefine:school|{{#var:transient en school|{{{school|}}}}}}} | {{#vardefine:school|{{#var:transient en school|{{{school|}}}}}}} | ||
{{#vardefine:group|{{#var:transient en group|}}}} | |||
{{#vardefine:release date|{{#var:transient release date|{{{release date|2016-12-01}}}}}}} | {{#vardefine:release date|{{#var:transient release date|{{{release date|2016-12-01}}}}}}} | ||
{{#vardefine:release version|{{#var:transient release version|{{{release version|0.0.0}}}}}}} | {{#vardefine:release version|{{#var:transient release version|{{{release version|0.0.0}}}}}}} | ||
Line 494: | Line 497: | ||
| Has guild = {{#var:guild}} | | Has guild = {{#var:guild}} | ||
| Has school = {{#var:school}} | | Has school = {{#var:school}} | ||
| Has group = {{#var:group}} | |||
| Has release date = {{#var:release date}} | | Has release date = {{#var:release date}} | ||
| Has release version = {{#var:release version}} | | Has release version = {{#var:release version}} | ||
Line 568: | Line 572: | ||
div.transient-infobox > div > .header .weapon-attribute { | div.transient-infobox > div > .header .weapon-attribute { | ||
<!-- position: relative; | |||
top: -27px; | top: -27px;--> | ||
display: flex; | |||
} | } | ||
<!-- | |||
div.transient-infobox > div > .header .weapon-attribute > img { | div.transient-infobox > div > .header .weapon-attribute > img { | ||
position: absolute; | position: absolute; | ||
} | } | ||
--> | |||
<!--div.transient-infobox > div > -->.header .caption { | <!--div.transient-infobox > div > -->.header .caption { | ||
color: #000000; | color: #000000; | ||
Line 813: | Line 818: | ||
width: 100px; | width: 100px; | ||
background-color: #fcbde4; | background-color: #fcbde4; | ||
} | |||
/* god */ | |||
div.god > .header { | |||
background-color: #32b4b4; | |||
} | |||
div.god > .body .data tr > th { | |||
background-color: #55C9C9; | |||
} | |||
div.god > .body .data tr > th + th { | |||
width: 100px; | |||
background-color: #85E0E0; | |||
} | } | ||
Line 887: | Line 906: | ||
{{#if:{{#var:transient cdn icon|}}||{{#vardefine:transient cdn icon|{{{cdn icon|}}}}}}} | {{#if:{{#var:transient cdn icon|}}||{{#vardefine:transient cdn icon|{{{cdn icon|}}}}}}} | ||
<td class="icon transient{{#var:transientnumber}}">{{#if:{{#var:transient no cdn|}}|[[File:{{{icon}}}.png|60px]]|{{#if:{{#var:transient cdn icon|}}|{{#tag:mediator|{{#var:transient cdn icon|}}|width=60|height=60|loading=lazy}}|{{#ifexist:File:{{{icon|}}}.png|[[File:{{{icon}}}.png|60px]]|{{#ifexist:File:{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_icon.png|[[File:{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_icon.png|60px]]|{{#ifexist:File:{{{en name}}}_{{{rarity}}}star_icon.png|[[File:{{{en name}}}_{{{rarity}}}star_icon.png|60px]]|[[File:Unknown icon.png|60px]]}}}}}}}}}}</td>{{#vardefine:transient cdn icon|}} | <td class="icon transient{{#var:transientnumber}}">{{#if:{{#var:transient no cdn|}}|[[File:{{{icon}}}.png|60px]]|{{#if:{{#var:transient cdn icon|}}|{{#tag:mediator|{{#var:transient cdn icon|}}|width=60|height=60|loading=lazy}}|{{#ifexist:File:{{{icon|}}}.png|[[File:{{{icon}}}.png|60px]]|{{#ifexist:File:{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_icon.png|[[File:{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_icon.png|60px]]|{{#ifexist:File:{{{en name}}}_{{{rarity}}}star_icon.png|[[File:{{{en name}}}_{{{rarity}}}star_icon.png|60px]]|[[File:Unknown icon.png|60px]]}}}}}}}}}}</td>{{#vardefine:transient cdn icon|}} | ||
<td class="weapon-attribute">{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/ui/button/ | <td class="weapon-attribute">{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/ui/button/{{#var:energy filename|ui_button_elm_none}}.png|width=60|height=60|loading=lazy}}{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_weapon_{{#var:weapon type filename|nothing}}.png|width=60|height=60|loading=lazy}}</td><td class="caption"> | ||
<div class="name">[{{#if:{{{en title|}}}|{{#if:{{{jp-en title|}}}|<u><span title="{{{jp-en title|}}}">{{{en title}}}</span></u>|{{{en title}}}}}|?}}] {{#if:{{{id|}}}|[https://app.housamo.xyz/cards/{{{id}}}/ {{{en name|?}}}]|{{{en name|?}}}}}<!--{{#ifeq:{{{surname|―}}}|―||{{{surname}}}}}--></div> | <div class="name">[{{#if:{{{en title|}}}|{{#if:{{{jp-en title|}}}|<u><span title="{{{jp-en title|}}}">{{{en title}}}</span></u>|{{{en title}}}}}|?}}] {{#if:{{{id|}}}|[https://app.housamo.xyz/cards/{{{id}}}/ {{{en name|?}}}]|{{{en name|?}}}}}<!--{{#ifeq:{{{surname|―}}}|―||{{{surname}}}}}--></div> | ||
<div class="sub">【{{#if:{{{jp title|}}}|{{{jp title}}}|?}}】{{#if:{{{jp name|}}}|{{#ifeq:{{{surname|―}}}|―||{{{surname}}}}}{{{jp name}}}|{{#ifeq: {{#var:availability}} | Unobtainable | |?}}}}</div> | <div class="sub">【{{#if:{{{jp title|}}}|{{{jp title}}}|?}}】{{#if:{{{jp name|}}}|{{#ifeq:{{{surname|―}}}|―||{{{surname}}}}}{{{jp name}}}|{{#ifeq: {{#var:availability}} | Unobtainable | |?}}}}</div> | ||
Line 938: | Line 957: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th>{{Tooltip|Max HP|+ | <th>{{Tooltip|Max HP|+20 Lv, +2000 HP}}</th> | ||
<td>{{#expr: {{{hp|0}}}+{{{hp growth|0}}}*({{#var:max lv|0}}+ | <td>{{#expr: {{{hp|0}}}+{{{hp growth|0}}}*({{#var:max lv|0}}+20-1) + 2000 }}</td> | ||
<th>{{Tooltip|Max ATK|+ | <th>{{Tooltip|Max ATK|+20 Lv, +2000 ATK}}</th> | ||
<td>{{#expr: {{{atk|0}}}+{{{atk growth|0}}}*({{#var:max lv|0}}+ | <td>{{#expr: {{{atk|0}}}+{{{atk growth|0}}}*({{#var:max lv|0}}+20-1) + 2000 }}</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
Line 969: | Line 988: | ||
<!-- {{#if: {{#var:base skill 1 subobj|}}|{{#if:{{#show: {{#var:base skill 1 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 1 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}--> | <!-- {{#if: {{#var:base skill 1 subobj|}}|{{#if:{{#show: {{#var:base skill 1 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 1 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}--> | ||
<tr> | <tr> | ||
<th data-spread="{{#var:base skill 1 range|0 0 0 0}}">{{#if: {{#var:base skill 1 subobj|}} | [[{{#var:base skill 1 subobj|}}|{{#var:base skill 1 en name|{{{base skill 1}}} }}]] | {{#if:{{{base skill 1|}}}|[[{{{base skill 1}}}]] ({{{base skill 1 id|}}})|?}} }}</th> | <th data-spread="{{#var:base skill 1 range|0 0 0 0}}">{{#if: {{#var:base skill 1 subobj|}} | [[{{#var:base skill 1 subobj|}}|{{#var:base skill 1 en name|{{{base skill 1}}} }}]] | {{#if:{{{base skill 1|}}}|[[{{{base skill 1}}}]] ({{{base skill 1 id|}}}){{#ifeq:{{#var:availability|}}|Current|[[Category:Transients with missing skill pages]]}}|?}} }}</th> | ||
<td>{{#var:base skill 1 desc| ? }}</td> | <td>{{#var:base skill 1 desc| ? }}</td> | ||
</tr> | </tr> | ||
<!-- {{#if: {{#var:base skill 2 subobj|}}|{{#if:{{#show: {{#var:base skill 2 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 2 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}--> | <!-- {{#if: {{#var:base skill 2 subobj|}}|{{#if:{{#show: {{#var:base skill 2 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 2 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}--> | ||
<tr> | <tr> | ||
<th data-spread="{{#var:base skill 2 range|0 0 0 0}}">{{#if: {{#var:base skill 2 subobj|}} | [[{{#var:base skill 2 subobj|}}|{{#var:base skill 2 en name|{{{base skill 2}}} }}]] | {{#if:{{{base skill 2|}}}|[[{{{base skill 2}}}]] ({{{base skill 2 id|}}})|?}} }}</th> | <th data-spread="{{#var:base skill 2 range|0 0 0 0}}">{{#if: {{#var:base skill 2 subobj|}} | [[{{#var:base skill 2 subobj|}}|{{#var:base skill 2 en name|{{{base skill 2}}} }}]] | {{#if:{{{base skill 2|}}}|[[{{{base skill 2}}}]] ({{{base skill 2 id|}}}){{#ifeq:{{#var:availability|}}|Current|[[Category:Transients with missing skill pages]]}}|?}} }}</th> | ||
<td>{{#var:base skill 2 desc| ? }}</td> | <td>{{#var:base skill 2 desc| ? }}</td> | ||
</tr> | </tr> | ||
<!-- {{#if: {{#var:base skill 3 subobj|}}|{{#if:{{#show: {{#var:base skill 3 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 3 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}--> | <!-- {{#if: {{#var:base skill 3 subobj|}}|{{#if:{{#show: {{#var:base skill 3 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 3 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}--> | ||
<tr> | <tr> | ||
<th data-spread="{{#var:base skill 3 range|0 0 0 0}}">{{#if: {{#var:base skill 3 subobj|}} | [[{{#var:base skill 3 subobj|}}|{{#var:base skill 3 en name|{{{base skill 3}}} }}]] | {{#if:{{{base skill 3|}}}|[[{{{base skill 3}}}]] ({{{base skill 3 id|}}})|?}} }}</th> | <th data-spread="{{#var:base skill 3 range|0 0 0 0}}">{{#if: {{#var:base skill 3 subobj|}} | [[{{#var:base skill 3 subobj|}}|{{#var:base skill 3 en name|{{{base skill 3}}} }}]] | {{#if:{{{base skill 3|}}}|[[{{{base skill 3}}}]] ({{{base skill 3 id|}}}){{#ifeq:{{#var:availability|}}|Current|[[Category:Transients with missing skill pages]]}}|?}} }}</th> | ||
<td>{{#var:base skill 3 desc| ? }}</td> | <td>{{#var:base skill 3 desc| ? }}</td> | ||
</tr> | </tr> | ||
<!-- {{#if: {{#var:base skill 4 subobj|}}|{{#if:{{#show: {{#var:base skill 4 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 4 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}--> | <!-- {{#if: {{#var:base skill 4 subobj|}}|{{#if:{{#show: {{#var:base skill 4 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 4 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}--> | ||
<tr> | <tr> | ||
<th data-spread="{{#var:base skill 4 range|0 0 0 0}}">{{#if: {{#var:base skill 4 subobj|}} | [[{{#var:base skill 4 subobj|}}|{{#var:base skill 4 en name|{{{base skill 4}}} }}]] | {{#if:{{{base skill 4|}}}|[[{{{base skill 4}}}]] ({{{base skill 4 id|}}})|?}} }}</th> | <th data-spread="{{#var:base skill 4 range|0 0 0 0}}">{{#if: {{#var:base skill 4 subobj|}} | [[{{#var:base skill 4 subobj|}}|{{#var:base skill 4 en name|{{{base skill 4}}} }}]] | {{#if:{{{base skill 4|}}}|[[{{{base skill 4}}}]] ({{{base skill 4 id|}}}){{#ifeq:{{#var:availability|}}|Current|[[Category:Transients with missing skill pages]]}}|?}} }}</th> | ||
<td>{{#var:base skill 4 desc| ? }}</td> | <td>{{#var:base skill 4 desc| ? }}</td> | ||
</tr> | </tr> | ||
Line 1,045: | Line 1,064: | ||
<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}}}">{{#if:{{#var:charge skill subobj}}|[[{{#var:charge skill subobj}}|{{{charge skill name}}}]]|{{{charge skill name}}} ({{{charge skill id|}}})}}</span></u>|{{#if:{{#var:charge skill subobj}}|[[{{#var:charge skill subobj}}|{{{charge skill name}}}]]|{{{charge skill name}}} ({{{charge skill id|}}})}}}}|?}}</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}}} ({{{charge skill id|}}})}}</span></u>|{{#if:{{#var:charge skill subobj}}|[[{{#var:charge skill subobj}}|{{{charge skill name}}}]]|{{{charge skill name}}} ({{{charge skill id|}}}){{#ifeq:{{#var:availability|}}|Current|[[Category:Transients with missing charge skill pages]]}}}}}}|?}}</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,111: | Line 1,130: | ||
{{#if:{{{sex|}}}| | {{#if:{{{sex|}}}| | ||
<tr> | <tr> | ||
<th>{{Tooltip|Gender|As defined in the game data, might not be accurate to | <th>{{Tooltip|Sex/Gender|As defined in the game data, might not be accurate to official localization}}</th> | ||
<td>{{#switch:{{lc:{{{sex|}}}}} | <td>{{#switch:{{lc:{{{sex|}}}}} | ||
| man = Male | | man = Male | ||
Line 1,136: | Line 1,155: | ||
<th>School</th> | <th>School</th> | ||
<td>{{#ifeq:{{{school|}}}|Unknown|Unknown|{{{school}}}}}</td> | <td>{{#ifeq:{{{school|}}}|Unknown|Unknown|{{{school}}}}}</td> | ||
</tr> | |||
}} | |||
{{#if:{{#var:group}}| | |||
<tr> | |||
<th>Group/Affiliation</th> | |||
<td>{{Affiliation|{{#var:group}}}}</td> | |||
</tr> | </tr> | ||
}} | }} | ||
Line 1,156: | Line 1,181: | ||
</tr> | </tr> | ||
}} | }} | ||
{{#ifeq:{{#var:release date}}|2016- | {{#ifeq:{{#var:release date}}|2016-12-01|<!--default value, skip-->| | ||
<tr> | <tr> | ||
<th>Release Date</th> | <th>Release Date</th> | ||
<td>{{#var: | <td>{{#var:release date}} {{#ifeq:{{#var:release version}}|0.0.0|<!--default value, skip-->|(v{{#var:release version}})}}</td> | ||
</tr> | </tr> | ||
}} | }} |
Latest revision as of 12:20, 14 July 2024
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 en group|Affiliation Name}} {{#vardefine:transient gate|Gate Name}} {{#vardefine:transient jp en research file|Translation for Japanese Research File}} {{#vardefine:transient release date|2016-12-01}} {{#vardefine:transient release version|1.0.0}} {{#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}}
Example:
Example
[Burning Jotunn] [1]
【黒炎の巨人】スルト
|
|
Research Files
| ||
| ||
|
Relation | From Others | To Others | |
---|---|---|---|
Like | → | → | |
Dislike | → | → |
Consult other transient pages for additional undocumented options.
The above documentation is transcluded from Template:Transient extended infobox/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |