Template:Infobox item: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) correction |
Gammaton32 (talk | contribs) corrected, automated some parts |
||
| Line 4: | Line 4: | ||
-->{{#vardefine:item_en|{{#invoke:Lang|get_string|{{{key}}}|lang_code_override=en}}}}<!-- en | -->{{#vardefine:item_en|{{#invoke:Lang|get_string|{{{key}}}|lang_code_override=en}}}}<!-- en | ||
-->|<!-- If key is not provided, use {{{1}}} and assume its in english where it will be re-localized to current language in called functions | -->|<!-- If key is not provided, use {{{1}}} and assume its in english where it will be re-localized to current language in called functions | ||
-->{{#vardefine:item_key_or_en|{{{ | -->{{#vardefine:item_key_or_en|{{{1}}}}}<!-- en | ||
-->{{#vardefine:item_en|{{{ | -->{{#vardefine:item_en|{{{1}}}}}<!-- en | ||
-->}}<!-- | -->}}<!-- | ||
--><div class="infobox_item" style="float:right; display:inline-block; vertical-align:top;"> | --><div class="infobox_item" style="float:right; display:inline-block; vertical-align:top;"> | ||
{| style="text-align:left; border-collapse:collapse; width:312px; max-width:100%; height:30px; color: #FFEFD7; padding:12px; font-family:'Retail Demo Regular',serif; {{ | {| style="text-align:left; border-collapse:collapse; width:312px; max-width:100%; height:30px; color: #FFEFD7; padding:12px; font-family:'Retail Demo Regular',serif; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #80550F; | | Weapon = background-color: #80550F; | ||
| Vitality = background-color: #4D7214; | | Vitality = background-color: #4D7214; | ||
| Line 15: | Line 15: | ||
| background-color: #80550F;}}" | | background-color: #80550F;}}" | ||
! colspan="4"; style="width:280px; padding:5px 12px; text-align:center; font-size:24px; font-family:'Retail Demo Bold',serif; {{ | ! colspan="4"; style="width:280px; padding:5px 12px; text-align:center; font-size:24px; font-family:'Retail Demo Bold',serif; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #C97A03; | | Weapon = background-color: #C97A03; | ||
| Vitality = background-color: #659818; | | Vitality = background-color: #659818; | ||
| Line 81: | Line 81: | ||
|- | |- | ||
| colspan=2 style="text-align:right; width:50%; {{ | | colspan=2 style="text-align:right; width:50%; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = border-right:1px solid #C97A03; | | Weapon = border-right:1px solid #C97A03; | ||
| Vitality = border-right:1px solid #659818; | | Vitality = border-right:1px solid #659818; | ||
| Spirit = border-right:1px solid #8B56B4; | | Spirit = border-right:1px solid #8B56B4; | ||
| border-right:1px solid #C97A03;}}; padding-right:0.5em;" | {{#invoke:Dictionary|translate|Cost}} | | border-right:1px solid #C97A03;}}; padding-right:0.5em;" | {{#invoke:Dictionary|translate|Cost}} | ||
| colspan=2 style="padding-left:0.5em;" | {{Souls|{{{souls|}}}}} | | colspan=2 style="padding-left:0.5em;" | {{Souls|{{{souls|{{#invoke:ItemData|get_cost|{{#var:item_key_or_en}}}}}}}}} | ||
|- | |- | ||
| colspan=2 style="text-align:right; width:50%; {{ | | colspan=2 style="text-align:right; width:50%; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = border-right:1px solid #C97A03; | | Weapon = border-right:1px solid #C97A03; | ||
| Vitality = border-right:1px solid #659818; | | Vitality = border-right:1px solid #659818; | ||
| Spirit = border-right:1px solid #8B56B4; | | Spirit = border-right:1px solid #8B56B4; | ||
| border-right:1px solid #C97A03;}}; padding-right:0.5em;" | {{#invoke:Dictionary|translate|Tier}} | | border-right:1px solid #C97A03;}}; padding-right:0.5em;" | {{#invoke:Dictionary|translate|Tier}} | ||
| colspan=2 style="padding-left:0.5em;" | {{{item_tier|}}} | | colspan=2 style="padding-left:0.5em;" | {{{item_tier|{{#invoke:ItemData|get_prop|{{#var:item_key_or_en}}|Tier}}}}} | ||
|- | |- | ||
| colspan=2 style="text-align:right; width:50%; {{ | | colspan=2 style="text-align:right; width:50%; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = border-right:1px solid #C97A03; | | Weapon = border-right:1px solid #C97A03; | ||
| Vitality = border-right:1px solid #659818; | | Vitality = border-right:1px solid #659818; | ||
| Line 103: | Line 103: | ||
| border-right:1px solid #C97A03;}}; padding-right:0.5em;" | {{#invoke:Dictionary|translate|Shop bonus}} | | border-right:1px solid #C97A03;}}; padding-right:0.5em;" | {{#invoke:Dictionary|translate|Shop bonus}} | ||
| colspan=2 style="padding-left:0.5em;" | {{ | | colspan=2 style="padding-left:0.5em;" | {{ | ||
#switch: {{{item_type}}}/{{{item_tier|1}}}| | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}}/{{{item_tier|1}}}| | ||
| Weapon/1 = +6% {{#invoke:Lang|get_string|WeaponPower_label}} | | Weapon/1 = +6% {{#invoke:Lang|get_string|WeaponPower_label}} | ||
| Weapon/2 = +10% {{#invoke:Lang|get_string|WeaponPower_label}} | | Weapon/2 = +10% {{#invoke:Lang|get_string|WeaponPower_label}} | ||
| Line 121: | Line 121: | ||
{{#ifeq:{{{has_components|}}}|true| | {{#ifeq:{{{has_components|}}}|true| | ||
! colspan="4" style="text-align:left; padding:0 12px; font-weight:bold; font-size:16px; font-family:'Retail Demo Bold',serif; {{ | ! colspan="4" style="text-align:left; padding:0 12px; font-weight:bold; font-size:16px; font-family:'Retail Demo Bold',serif; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #9E630C; color: #DCCFC6; | | Weapon = background-color: #9E630C; color: #DCCFC6; | ||
| Vitality = background-color: #203500; color: #C7C9C6; | | Vitality = background-color: #203500; color: #C7C9C6; | ||
| Line 129: | Line 129: | ||
{{#if:{{{item_description|}}}| | {{#if:{{{item_description|}}}| | ||
{{!}} colspan="4" style="text-align:left; padding:0 12px; color:#FFEFD7; {{ | {{!}} colspan="4" style="text-align:left; padding:0 12px; color:#FFEFD7; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #80550F; | | Weapon = background-color: #80550F; | ||
| Vitality = background-color: #4D7214; | | Vitality = background-color: #4D7214; | ||
| Line 137: | Line 137: | ||
{{#if:{{{item_stat1|}}}| | {{#if:{{{item_stat1|}}}| | ||
{{!}} colspan=4 style="text-align:left; padding:2px 12px; {{ | {{!}} colspan=4 style="text-align:left; padding:2px 12px; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #80550F; | | Weapon = background-color: #80550F; | ||
| Vitality = background-color: #4D7214; | | Vitality = background-color: #4D7214; | ||
| Line 145: | Line 145: | ||
{{#if:{{{item_stat2|}}}| | {{#if:{{{item_stat2|}}}| | ||
{{!}} colspan=4 style="text-align:left; padding:2px 12px; {{ | {{!}} colspan=4 style="text-align:left; padding:2px 12px; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #80550F; | | Weapon = background-color: #80550F; | ||
| Vitality = background-color: #4D7214; | | Vitality = background-color: #4D7214; | ||
| Line 153: | Line 153: | ||
{{#if:{{{item_stat3|}}}| | {{#if:{{{item_stat3|}}}| | ||
{{!}} colspan=4 style="text-align:left; padding:2px 12px; {{ | {{!}} colspan=4 style="text-align:left; padding:2px 12px; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #80550F; | | Weapon = background-color: #80550F; | ||
| Vitality = background-color: #4D7214; | | Vitality = background-color: #4D7214; | ||
| Line 161: | Line 161: | ||
{{#if:{{{item_stat4|}}}| | {{#if:{{{item_stat4|}}}| | ||
{{!}} colspan=4 style="text-align:left; padding:2px 12px; {{ | {{!}} colspan=4 style="text-align:left; padding:2px 12px; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #80550F; | | Weapon = background-color: #80550F; | ||
| Vitality = background-color: #4D7214; | | Vitality = background-color: #4D7214; | ||
| Line 169: | Line 169: | ||
{{#if:{{{item_stat5|}}}| | {{#if:{{{item_stat5|}}}| | ||
{{!}} colspan=4 style="text-align:left; padding:2px 12px; {{ | {{!}} colspan=4 style="text-align:left; padding:2px 12px; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #80550F; | | Weapon = background-color: #80550F; | ||
| Vitality = background-color: #4D7214; | | Vitality = background-color: #4D7214; | ||
| Line 177: | Line 177: | ||
{{#if:{{{item_stat6|}}}| | {{#if:{{{item_stat6|}}}| | ||
{{!}} colspan=4 style="text-align:left; padding:2px 12px; {{ | {{!}} colspan=4 style="text-align:left; padding:2px 12px; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #80550F; | | Weapon = background-color: #80550F; | ||
| Vitality = background-color: #4D7214; | | Vitality = background-color: #4D7214; | ||
| Line 185: | Line 185: | ||
{{#if:{{{item_stat7|}}}| | {{#if:{{{item_stat7|}}}| | ||
{{!}} colspan=4 style="text-align:left; padding:2px 12px; {{ | {{!}} colspan=4 style="text-align:left; padding:2px 12px; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #80550F; | | Weapon = background-color: #80550F; | ||
| Vitality = background-color: #4D7214; | | Vitality = background-color: #4D7214; | ||
| Line 193: | Line 193: | ||
{{#ifeq:{{{has_passive1|}}}|true| | {{#ifeq:{{{has_passive1|}}}|true| | ||
! colspan={{#expr:4-{{#if:{{{passive1_cooldown|}}}|1|0}}}} style="text-align:left; padding:2px 12px; {{ | ! colspan={{#expr:4-{{#if:{{{passive1_cooldown|}}}|1|0}}}} style="text-align:left; padding:2px 12px; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #583B0E; color: #C4B49E; | | Weapon = background-color: #583B0E; color: #C4B49E; | ||
| Vitality = background-color: #354F11; color: #BDB59D; | | Vitality = background-color: #354F11; color: #BDB59D; | ||
| Line 205: | Line 205: | ||
{{#if:{{{passive1_stat1|}}}| | {{#if:{{{passive1_stat1|}}}| | ||
{{{!}}- style="text-align:left; width:300px; max-width:280px; border-radius:8px; margin:6px auto; {{ | {{{!}}- style="text-align:left; width:300px; max-width:280px; border-radius:8px; margin:6px auto; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #67430A; | | Weapon = background-color: #67430A; | ||
| Vitality = background-color: #3D5B0E; | | Vitality = background-color: #3D5B0E; | ||
| Line 234: | Line 234: | ||
{{#ifeq:{{{has_passive2|}}}|true| | {{#ifeq:{{{has_passive2|}}}|true| | ||
! colspan={{#expr:4-{{#if:{{{passive2_cooldown|}}}|1|0}}}} style="text-align:left; padding:2px 12px; {{ | ! colspan={{#expr:4-{{#if:{{{passive2_cooldown|}}}|1|0}}}} style="text-align:left; padding:2px 12px; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #583B0E; color: #C4B49E; | | Weapon = background-color: #583B0E; color: #C4B49E; | ||
| Vitality = background-color: #354F11; color: #BDB59D; | | Vitality = background-color: #354F11; color: #BDB59D; | ||
| Line 246: | Line 246: | ||
{{#if:{{{passive2_stat1|}}}| | {{#if:{{{passive2_stat1|}}}| | ||
{{{!}}- style="text-align:left; width:300px; max-width:280px; border-radius:8px; margin:6px auto; {{ | {{{!}}- style="text-align:left; width:300px; max-width:280px; border-radius:8px; margin:6px auto; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #67430A; | | Weapon = background-color: #67430A; | ||
| Vitality = background-color: #3D5B0E; | | Vitality = background-color: #3D5B0E; | ||
| Line 272: | Line 272: | ||
{{#ifeq:{{{has_active1|}}}|true| | {{#ifeq:{{{has_active1|}}}|true| | ||
! colspan={{#expr:4-{{#if:{{{active1_cooldown|}}}|1|0}}}} style="text-align:left; padding:2px 12px; {{ | ! colspan={{#expr:4-{{#if:{{{active1_cooldown|}}}|1|0}}}} style="text-align:left; padding:2px 12px; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #583B0E; | | Weapon = background-color: #583B0E; | ||
| Vitality = background-color: #354F11; | | Vitality = background-color: #354F11; | ||
| Line 284: | Line 284: | ||
{{#if:{{{active1_stat1|}}}| | {{#if:{{{active1_stat1|}}}| | ||
{{{!}}- style="text-align:left; width:300px; max-width:280px; border-radius:8px; margin:6px auto; {{ | {{{!}}- style="text-align:left; width:300px; max-width:280px; border-radius:8px; margin:6px auto; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #67430A; | | Weapon = background-color: #67430A; | ||
| Vitality = background-color: #3D5B0E; | | Vitality = background-color: #3D5B0E; | ||
| Line 315: | Line 315: | ||
{{#if:{{{active2_stat1|}}}| | {{#if:{{{active2_stat1|}}}| | ||
{{{!}}- style="text-align:left; width:300px; max-width:280px; border-radius:8px; margin:6px auto; {{ | {{{!}}- style="text-align:left; width:300px; max-width:280px; border-radius:8px; margin:6px auto; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #67430A; | | Weapon = background-color: #67430A; | ||
| Vitality = background-color: #3D5B0E; | | Vitality = background-color: #3D5B0E; | ||
| Line 341: | Line 341: | ||
{{#ifeq:{{{has_iscomponentof|}}}|true| | {{#ifeq:{{{has_iscomponentof|}}}|true| | ||
! colspan="4" style="text-align:left; padding:0 12px; font-weight:bold; font-size:16px; font-family:'Retail Demo Bold',serif; {{ | ! colspan="4" style="text-align:left; padding:0 12px; font-weight:bold; font-size:16px; font-family:'Retail Demo Bold',serif; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #704A0C; color: #D1CBC6; | | Weapon = background-color: #704A0C; color: #D1CBC6; | ||
| Vitality = background-color: #436310; color: #CACFC7; | | Vitality = background-color: #436310; color: #CACFC7; | ||
| Line 349: | Line 349: | ||
{{#if:{{{sound1|}}}| | {{#if:{{{sound1|}}}| | ||
{{!}} colspan=4 style="text-align:center; padding:2px 12px; {{ | {{!}} colspan=4 style="text-align:center; padding:2px 12px; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}}}}}} | ||
| Weapon = background-color: #C97A03; | | Weapon = background-color: #C97A03; | ||
| Vitality = background-color: #659818; | | Vitality = background-color: #659818; | ||