Template:Infobox item: Difference between revisions

Lacni (talk | contribs)
m Changed display of passive cooldown when no cooldown is specified to more resemble in-game graphics
Lacni (talk | contribs)
m Changed condition of display of passive stats box to not display when empty
Line 142: Line 142:
| display: none;"}}
| display: none;"}}
</div>
</div>
<div style="{{#ifeq:{{{has_passive1|}}}|true|display:inline-block|display:none;}}">
<div style="{{#if:{{{passive1_stat1|}}}|display:inline-block|display:none;}}">
{|- style="text-align:left; width:500px; max-width:480px; border-radius:8px; color: #FFEFD7; font-family: 'Retail Demo Regular'; margin-top: 6px; {{
{|- style="text-align:left; width:500px; max-width:480px; border-radius:8px; color: #FFEFD7; font-family: 'Retail Demo Regular'; margin-top: 6px; {{
#switch: {{{item_type}}}
#switch: {{{item_type}}}
Line 194: Line 194:
|}
|}
</div>
</div>
<div style="{{#ifeq:{{{has_passive2|}}}|true|display:inline|display:none;}}">
<div style="{{#if:{{{passive1_stat1|}}}|display:inline-block|display:none;}}">
{|- style="text-align:left; width:512px; max-width:512px; color: #FFEFD7; padding: 0 12px; {{#ifeq:{{{has_active1|}}}|false|border-radius: 0px 0px 8px 8px;|}};{{#ifeq:{{{has_iscomponentof|}}}|true|border-radius: 0px 0px 0px 0px;|}}{{
{|- style="text-align:left; width:512px; max-width:512px; color: #FFEFD7; padding: 0 12px; {{#ifeq:{{{has_active1|}}}|false|border-radius: 0px 0px 8px 8px;|}};{{#ifeq:{{{has_iscomponentof|}}}|true|border-radius: 0px 0px 0px 0px;|}}{{
#switch: {{{item_type}}}
#switch: {{{item_type}}}