Difference between revisions of "Template:Transient extended infobox"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) (Undo revision 50464 by SurtrFan8511 (talk)) Tag: Undo |
SurtrFan8511 (talk | contribs) (Separating element icon from weapon icon) |
||
(2 intermediate revisions by one other user 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 570: | 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 815: | 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 889: | 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> |
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. |