Template:Infobox item: Difference between revisions

GDoe5 (talk | contribs)
mNo edit summary
GDoe5 (talk | contribs)
#if were not working to filter out sections where no data is found
Line 45: Line 45:
  | Spirit = background-color: #372248; color: #C9C7CB;
  | Spirit = background-color: #372248; color: #C9C7CB;
  | background-color: #9E630C; color: #DCCFC6;}}" {{
  | background-color: #9E630C; color: #DCCFC6;}}" {{
#if: {{{has_components}}}
#if: {{{has_components|}}}
|
|
  {{!}}-  
  {{!}}-  
Line 58: Line 58:
  | Spirit = background-color: #623585;
  | Spirit = background-color: #623585;
  | background-color: #80550F;}}" {{
  | background-color: #80550F;}}" {{
#if: {{{item_stat1}}}
#if: {{{item_stat1|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{item_stat1}}}
  ! {{{item_stat1}}}
| }}
| }}
{{#if: {{{item_stat2}}}
{{#if: {{{item_stat2|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{item_stat2}}}
  ! {{{item_stat2}}}
| }}
| }}
{{#if: {{{item_stat3}}}
{{#if: {{{item_stat3|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{item_stat3}}}
  ! {{{item_stat3}}}
| }}
| }}
{{#if: {{{item_stat4}}}
{{#if: {{{item_stat4|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{item_stat4}}}
  ! {{{item_stat4}}}
| }}
| }}
{{#if: {{{item_stat5}}}
{{#if: {{{item_stat5|}}}
|
|
  {{!}}-  
  {{!}}-  
Line 98: Line 98:
  | Spirit = background-color: #43265B; color: #C1B2A8;
  | Spirit = background-color: #43265B; color: #C1B2A8;
  | background-color: #583B0E; color: #C4B49E;}}" {{
  | background-color: #583B0E; color: #C4B49E;}}" {{
#if: {{{has_passive1}}}
#if: {{{has_passive1|}}}
|
|
  {{!}}-  
  {{!}}-  
Line 113: Line 113:
  | Spirit = background-color: #623585;
  | Spirit = background-color: #623585;
  | background-color: #80550F;}}" {{
  | background-color: #80550F;}}" {{
#if: {{{passive1_description}}}
#if: {{{passive1_description|}}}
|
|
  {{!}}-
  {{!}}-
Line 126: Line 126:
  | Spirit = background-color: #4D2869;
  | Spirit = background-color: #4D2869;
  | background-color: #67430A;}}" {{
  | background-color: #67430A;}}" {{
#if: {{{passive1_stat1}}}
#if: {{{passive1_stat1|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{passive1_stat1}}}
  ! {{{passive1_stat1}}}
| }}
| }}
{{#if: {{{passive1_stat2}}}
{{#if: {{{passive1_stat2|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{passive1_stat2}}}
  ! {{{passive1_stat2}}}
| }}
| }}
{{#if: {{{passive1_stat3}}}
{{#if: {{{passive1_stat3|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{passive1_stat3}}}
  ! {{{passive1_stat3}}}
| }}
| }}
{{#if: {{{passive1_stat4}}}
{{#if: {{{passive1_stat4|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{passive1_stat4}}}
  ! {{{passive1_stat4}}}
| }}
| }}
{{#if: {{{passive1_stat5}}}
{{#if: {{{passive1_stat5|}}}
|
|
  {{!}}-  
  {{!}}-  
Line 162: Line 162:
  | Spirit = background-color: #43265B; color: #C1B2A8;
  | Spirit = background-color: #43265B; color: #C1B2A8;
  | background-color: #583B0E; color: #C4B49E;}}" {{
  | background-color: #583B0E; color: #C4B49E;}}" {{
#if: {{{has_passive2}}}
#if: {{{has_passive2|}}}
|
|
  {{!}}-  
  {{!}}-  
  {{!}} ''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|}}}
| }}
| }}
|}
|}
Line 176: Line 176:
  | Spirit = background-color: #623585;
  | Spirit = background-color: #623585;
  | background-color: #80550F;}}" {{
  | background-color: #80550F;}}" {{
#if: {{{passive2_description}}}
#if: {{{passive2_description|}}}
|
|
  {{!}}-  
  {{!}}-  
Line 189: Line 189:
  | Spirit = background-color: #4D2869;
  | Spirit = background-color: #4D2869;
  | background-color: #67430A;}}" {{
  | background-color: #67430A;}}" {{
#if: {{{passive2_stat1}}}
#if: {{{passive2_stat1|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{passive2_stat1}}}
  ! {{{passive2_stat1}}}
| }}
| }}
{{#if: {{{passive2_stat2}}}
{{#if: {{{passive2_stat2|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{passive2_stat2}}}
  ! {{{passive2_stat2}}}
| }}
| }}
{{#if: {{{passive2_stat3}}}
{{#if: {{{passive2_stat3|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{passive2_stat3}}}
  ! {{{passive2_stat3}}}
| }}
| }}
{{#if: {{{passive2_stat4}}}
{{#if: {{{passive2_stat4|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{passive2_stat4}}}
  ! {{{passive2_stat4}}}
| }}
| }}
{{#if: {{{passive2_stat5}}}
{{#if: {{{passive2_stat5|}}}
|
|
  {{!}}-  
  {{!}}-  
Line 225: Line 225:
  | Spirit = background-color: #43265B;
  | Spirit = background-color: #43265B;
  | background-color: #583B0E;}}" {{
  | background-color: #583B0E;}}" {{
#if: {{{has_active1}}}
#if: {{{has_active1|}}}
|
|
  {{!}}-  
  {{!}}-  
  {{!}} '''Active''' {{!}}{{!}} style="text-align:right; width:50px; max-width:80px; background-color: #0C1414; color: #FFEFD7" {{!}} {{{passive2_cooldown}}}
  {{!}} '''Active''' {{!}}{{!}} style="text-align:right; width:50px; max-width:80px; background-color: #0C1414; color: #FFEFD7" {{!}} {{{active1_cooldown}}}
| }}
| }}
|}
|}
Line 239: Line 239:
  | Spirit = background-color: #623585;
  | Spirit = background-color: #623585;
  | background-color: #80550F;}}" {{
  | background-color: #80550F;}}" {{
#if: {{{active1_description}}}
#if: {{{active1_description|}}}
|
|
  {{!}}-  
  {{!}}-  
Line 252: Line 252:
  | Spirit = background-color: #4D2869;
  | Spirit = background-color: #4D2869;
  | background-color: #67430A;}}" {{
  | background-color: #67430A;}}" {{
#if: {{{active1_stat1}}}
#if: {{{active1_stat1|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{active1_stat1}}}
  ! {{{active1_stat1}}}
| }}
| }}
{{#if: {{{active1_stat2}}}
{{#if: {{{active1_stat2|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{active1_stat2}}}
  ! {{{active1_stat2}}}
| }}
| }}
{{#if: {{{active1_stat3}}}
{{#if: {{{active1_stat3|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{active1_stat3}}}
  ! {{{active1_stat3}}}
| }}
| }}
{{#if: {{{active1_stat4}}}
{{#if: {{{active1_stat4|}}}
|
|
  {{!}}-  
  {{!}}-  
  ! {{{active1_stat4}}}
  ! {{{active1_stat4}}}
| }}
| }}
{{#if: {{{active1_stat5}}}
{{#if: {{{active1_stat5|}}}
|
|
  {{!}}-  
  {{!}}-  
Line 287: Line 287:
  | Spirit = background-color: #552D74; color: #CCC8D2;
  | Spirit = background-color: #552D74; color: #CCC8D2;
  | background-color: #704A0C; color: #D1CBC6;}}" {{
  | background-color: #704A0C; color: #D1CBC6;}}" {{
#if: {{{has_components}}}
#if: {{{has_components|}}}
|
|
  {{!}}-  
  {{!}}-