Template:Infobox item: Difference between revisions

added "street brawl" variable (work in progress)
made street brawl variable hide cost and tier
Line 20: Line 20:
| colspan=4 class="infobox-image" style="padding:5px; text-align:center;" | [[File:{{{item_icon|{{{item_name|{{#var:item_key_or_en}}}}}}}}.png|144px]]
| colspan=4 class="infobox-image" style="padding:5px; text-align:center;" | [[File:{{{item_icon|{{{item_name|{{#var:item_key_or_en}}}}}}}}.png|144px]]
|-
|-
| colspan=2 class="infobox-label" style="text-align:right; width:50%; {{
{{#ifeq:{{{street_brawl|}}}|true||
{{!}} colspan=2 class="infobox-label" style="text-align:right; width:50%; {{
#switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}|raw=true}}}}}
#switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}|raw=true}}}}}
  | Weapon = border-right:1px solid #C97A03;
  | Weapon = border-right:1px solid #C97A03;
Line 26: Line 27:
  | Spirit = border-right:1px solid #8B56B4;
  | Spirit = border-right:1px solid #8B56B4;
  | Seasonal = border-right:1px solid #466f84;
  | Seasonal = border-right:1px solid #466f84;
  | 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 class="infobox-value" style="padding-left:0.5em;" | {{Souls|{{{souls|{{#invoke:ItemData|get_cost|{{#var:item_key_or_en}}}}}}}}}
{{!}} colspan=2 class="infobox-value" style="padding-left:0.5em;" {{!}} {{Souls|{{{souls|{{#invoke:ItemData|get_cost|{{#var:item_key_or_en}}}}}}}}}
|-
{{!}}-
| colspan=2 class="infobox-label" style="text-align:right; width:50%; {{
{{!}} colspan=2 class="infobox-label" style="text-align:right; width:50%; {{
#switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}|raw=true}}}}}
#switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}|raw=true}}}}}
  | Weapon = border-right:1px solid #C97A03;
  | Weapon = border-right:1px solid #C97A03;
Line 35: Line 36:
  | Spirit = border-right:1px solid #8B56B4;
  | Spirit = border-right:1px solid #8B56B4;
  | Seasonal = border-right: 1px solid #466f84;
  | Seasonal = border-right: 1px solid #466f84;
  | 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 class="infobox-value" style="padding-left:0.5em;" | {{{item_tier|{{#invoke:ItemData|get_prop|{{#var:item_key_or_en}}|Tier}}}}}
{{!}} colspan=2 class="infobox-value" style="padding-left:0.5em;" {{!}} {{{item_tier|{{#invoke:ItemData|get_prop|{{#var:item_key_or_en}}|Tier}}}}}}}
|-
|-
{{#ifeq:{{{street_brawl|}}}|true|
{{#ifeq:{{{street_brawl|}}}|true|
! colspan=4 style=text-align:center; {{!}} {{#invoke:Lang|get_string|Citadel_Play_StreetBrawl_Title}}
! colspan=4 class="infobox-label" style=text-align:center; {{!}} {{#invoke:Lang|get_string|Citadel_Play_StreetBrawl_Title}}
}}
|}}
{{#if:{{{item_description}}}|
{{#if:{{{item_description}}}|
{{!}} colspan="4" class="infobox-description" style="text-align:left; padding:0 12px; color:#FFEFD7; {{
{{!}} colspan="4" class="infobox-description" style="text-align:left; padding:0 12px; color:#FFEFD7; {{