Template:Infobox item: Difference between revisions

Clubby789 (talk | contribs)
m Add cooldown icon to active items
Pillose (talk | contribs)
hide empty cells. link component item
Line 44: Line 44:
  | Vitality = background-color: #203500; color: #C7C9C6;
  | Vitality = background-color: #203500; color: #C7C9C6;
  | Spirit = background-color: #372248; color: #C9C7CB;
  | Spirit = background-color: #372248; color: #C9C7CB;
  | background-color: #9E630C; color: #DCCFC6;}}" {{
  | background-color: #9E630C; color: #DCCFC6;}} {{
#ifeq: {{{has_components|}}}|true
#ifeq: {{{has_components|}}}|true
|
|
"
  {{!}}-  
  {{!}}-  
  ! Components: <br> {{{component1_name}}}
  ! Components: <br> {{Item|{{{component1_name}}}}}
| }}
| display: none;"}}
|}
|}


Line 57: Line 58:
  | Vitality = background-color: #4D7214;
  | Vitality = background-color: #4D7214;
  | Spirit = background-color: #623585;
  | Spirit = background-color: #623585;
  | background-color: #80550F;}}" {{
  | background-color: #80550F;}} {{
#if: {{{item_stat1|}}}
#if: {{{item_stat1|}}}
|
|
"
  {{!}}-  
  {{!}}-  
  ! {{{item_stat1}}}
  ! {{{item_stat1}}}
| }}
| display: none;"}}
{{#if: {{{item_stat2|}}}
{{#if: {{{item_stat2|}}}
|
|
Line 97: Line 99:
  | Vitality = background-color: #354F11; color: #BDB59D;
  | Vitality = background-color: #354F11; color: #BDB59D;
  | Spirit = background-color: #43265B; color: #C1B2A8;
  | Spirit = background-color: #43265B; color: #C1B2A8;
  | background-color: #583B0E; color: #C4B49E;}}" {{
  | background-color: #583B0E; color: #C4B49E;}} {{
#ifeq: {{{has_passive1|}}}|true
#ifeq: {{{has_passive1|}}}|true
|
|
"
  {{!}}-  
  {{!}}-  
  {{!}} ''Passive'' {{!}}{{!}} style="text-align:right; width:50px; max-width:80px; background-color: #0C1414; color: #FFEFD7" {{!}} {{{passive1_cooldown}}}
  {{!}} ''Passive'' {{!}}{{!}} style="text-align:right; width:50px; max-width:80px; background-color: #0C1414; color: #FFEFD7" {{!}} {{{passive1_cooldown}}}
| }}
| display: none;"}}
|}
|}


Line 112: Line 115:
  | Vitality = background-color: #4D7214;
  | Vitality = background-color: #4D7214;
  | Spirit = background-color: #623585;
  | Spirit = background-color: #623585;
  | background-color: #80550F;}}" {{
  | background-color: #80550F;}} {{
#if: {{{passive1_description|}}}
#if: {{{passive1_description|}}}
|
|
"
  {{!}}-
  {{!}}-
  ! {{{passive1_description}}}
  ! {{{passive1_description}}}
| }}
| display: none;"}}


<div style="margin-left:0.5em; margin-right:0.5em;">
<div style="margin-left:0.5em; margin-right:0.5em;">
Line 125: Line 129:
  | Vitality = background-color: #3D5B0E;
  | Vitality = background-color: #3D5B0E;
  | Spirit = background-color: #4D2869;
  | Spirit = background-color: #4D2869;
  | background-color: #67430A;}}" {{
  | background-color: #67430A;}} {{
#if: {{{passive1_stat1|}}}
#if: {{{passive1_stat1|}}}
|
|
"
  {{!}}-  
  {{!}}-  
  ! {{{passive1_stat1}}}
  ! {{{passive1_stat1}}}
| }}
| display: none;"}}
{{#if: {{{passive1_stat2|}}}
{{#if: {{{passive1_stat2|}}}
|
|
Line 161: Line 166:
  | Vitality = background-color: #354F11; color: #BDB59D;
  | Vitality = background-color: #354F11; color: #BDB59D;
  | Spirit = background-color: #43265B; color: #C1B2A8;
  | Spirit = background-color: #43265B; color: #C1B2A8;
  | background-color: #583B0E; color: #C4B49E;}}" {{
  | background-color: #583B0E; color: #C4B49E;}} {{
#ifeq: {{{has_passive2|}}}|true
#ifeq: {{{has_passive2|}}}|true
|
|
"
  {{!}}-  
  {{!}}-  
  {{!}} ''Passive'' {{!}}{{!}} style="text-align:right; width:50px; max-width:80px; background-color: #0C1414; color: #FFEFD7" {{!}} {{{passive2_cooldown|}}}
  {{!}} ''Passive'' {{!}}{{!}} style="text-align:right; width:50px; max-width:80px; background-color: #0C1414; color: #FFEFD7" {{!}} {{{passive2_cooldown|}}}
| }}
| display: none;"}}
|}
|}
</div>
</div>
Line 175: Line 181:
  | Vitality = background-color: #4D7214;
  | Vitality = background-color: #4D7214;
  | Spirit = background-color: #623585;
  | Spirit = background-color: #623585;
  | background-color: #80550F;}}" {{
  | background-color: #80550F;}} {{
#if: {{{passive2_description|}}}
#if: {{{passive2_description|}}}
|
|
"
  {{!}}-  
  {{!}}-  
  ! {{{passive2_description}}}
  ! {{{passive2_description}}}
| }}
| display: none;"}}


<div style="margin-left:0.5em; margin-right:0.5em;">
<div style="margin-left:0.5em; margin-right:0.5em;">
Line 188: Line 195:
  | Vitality = background-color: #3D5B0E;
  | Vitality = background-color: #3D5B0E;
  | Spirit = background-color: #4D2869;
  | Spirit = background-color: #4D2869;
  | background-color: #67430A;}}" {{
  | background-color: #67430A;}} {{
#if: {{{passive2_stat1|}}}
#if: {{{passive2_stat1|}}}
|
|
"
  {{!}}-  
  {{!}}-  
  ! {{{passive2_stat1}}}
  ! {{{passive2_stat1}}}
| }}
| display: none;"}}
{{#if: {{{passive2_stat2|}}}
{{#if: {{{passive2_stat2|}}}
|
|
Line 224: Line 232:
  | Vitality = background-color: #354F11;
  | Vitality = background-color: #354F11;
  | Spirit = background-color: #43265B;
  | Spirit = background-color: #43265B;
  | background-color: #583B0E;}}" {{
  | background-color: #583B0E;}} {{
#ifeq: {{{has_active1|}}}|true
#ifeq: {{{has_active1|}}}|true
|
|
"
  {{!}}-  
  {{!}}-  
  {{!}} '''Active''' {{!}}{{!}} style="text-align:right; width:50px; max-width:80px; background-color: #0C1414; color: #FFEFD7" {{!}} <span><span>[[File:Cooldown Icon.png|20px]]</span>{{{active1_cooldown}}}</span>
  {{!}} '''Active''' {{!}}{{!}} style="text-align:right; width:50px; max-width:80px; background-color: #0C1414; color: #FFEFD7" {{!}} <span><span>[[File:Cooldown Icon.png|20px]]</span>{{{active1_cooldown}}}</span>
| }}
| display: none;"}}
|}
|}
</div>
</div>
Line 238: Line 247:
  | Vitality = background-color: #4D7214;
  | Vitality = background-color: #4D7214;
  | Spirit = background-color: #623585;
  | Spirit = background-color: #623585;
  | background-color: #80550F;}}" {{
  | background-color: #80550F;}} {{
#if: {{{active1_description|}}}
#if: {{{active1_description|}}}
|
|
"
  {{!}}-  
  {{!}}-  
  ! {{{active1_description}}}
  ! {{{active1_description}}}
| }}
| display: none;"}}


<div style="margin-left:0.5em; margin-right:0.5em;">
<div style="margin-left:0.5em; margin-right:0.5em;">
Line 251: Line 261:
  | Vitality = background-color: #3D5B0E;
  | Vitality = background-color: #3D5B0E;
  | Spirit = background-color: #4D2869;
  | Spirit = background-color: #4D2869;
  | background-color: #67430A;}}" {{
  | background-color: #67430A;}} {{
#if: {{{active1_stat1|}}}
#if: {{{active1_stat1|}}}
|
|
"
  {{!}}-  
  {{!}}-  
  ! {{{active1_stat1}}}
  ! {{{active1_stat1}}}
| }}
| display: none;"}}
{{#if: {{{active1_stat2|}}}
{{#if: {{{active1_stat2|}}}
|
|
Line 286: Line 297:
  | Vitality = background-color: #436310; color: #CACFC7;
  | Vitality = background-color: #436310; color: #CACFC7;
  | Spirit = background-color: #552D74; color: #CCC8D2;
  | Spirit = background-color: #552D74; color: #CCC8D2;
  | background-color: #704A0C; color: #D1CBC6;}}" {{
  | background-color: #704A0C; color: #D1CBC6;}} {{
#ifeq: {{{has_iscomponentof|}}}|true
#ifeq: {{{has_iscomponentof|}}}|true
|
|
"
  {{!}}-  
  {{!}}-  
  {{!}} IS COMPONENT OF: <br> {{{iscomponentof1_name}}}
  {{!}} IS COMPONENT OF: <br> {{Item|{{{iscomponentof1_name}}}}}
| }}
| display: none;"}}
|}
|}