Template:Infobox item: Difference between revisionsGive feedback
TheMilkMan (talk | contribs) Trying something to prevent needing overt booleans for component displays |
TheMilkMan (talk | contribs) No edit summary |
||
| Line 270: | Line 270: | ||
}} | }} | ||
|- | |- | ||
{{# | {{#if:{{{component1_name|}}}| | ||
! colspan="4" class="components-header" style="text-align:left; padding:0 12px; font-weight:bold; font-size:16px; font-family:'Retail Demo',serif; {{ | ! colspan="4" class="components-header" style="text-align:left; padding:0 12px; font-weight:bold; font-size:16px; font-family:'Retail Demo',serif; {{ | ||
#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}}}}} | ||
| Line 278: | Line 278: | ||
| background-color: #9E630C; color: #DCCFC6;}}" {{!}} <span style="text-transform: uppercase;">{{#invoke:Lang|get_string|Citadel_ComponentRequired}}</span><br/>{{ItemIcon|{{{component1_name}}}}}|}} | | background-color: #9E630C; color: #DCCFC6;}}" {{!}} <span style="text-transform: uppercase;">{{#invoke:Lang|get_string|Citadel_ComponentRequired}}</span><br/>{{ItemIcon|{{{component1_name}}}}}|}} | ||
|- | |- | ||
{{# | {{#if:{{{component2_name|}}}| | ||
{{!}}- | {{!}}- | ||
! colspan="4" class="components-header" style="text-align:left; padding:0 12px; font-weight:bold; font-size:16px; font-family:'Retail Demo',serif; {{ | ! colspan="4" class="components-header" style="text-align:left; padding:0 12px; font-weight:bold; font-size:16px; font-family:'Retail Demo',serif; {{ | ||
| Line 287: | Line 287: | ||
| background-color: #9E630C; color: #DCCFC6;}}" {{!}}{{ItemIcon|{{{component2_name}}}}}|}} | | background-color: #9E630C; color: #DCCFC6;}}" {{!}}{{ItemIcon|{{{component2_name}}}}}|}} | ||
|- | |- | ||
{{# | {{#if:{{{iscomponentof1_name|}}}| | ||
! colspan="4" class="is-component-of-header" style="text-align:left; padding:0 12px; font-weight:bold; font-size:16px; font-family:'Retail Demo', serif; {{ | ! colspan="4" class="is-component-of-header" style="text-align:left; padding:0 12px; font-weight:bold; font-size:16px; font-family:'Retail Demo', serif; {{ | ||
#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}}}}} | ||
| Line 294: | Line 294: | ||
| Spirit = background-color: #3a2231; color: #CCC8D2; | | Spirit = background-color: #3a2231; color: #CCC8D2; | ||
| background-color: #704A0C; color: #D1CBC6;}}" {{!}} <span style="text-transform: uppercase;">{{#invoke:Lang|get_string|Citadel_IsComponentOf}}</span><br/>{{ItemIcon|{{{iscomponentof1_name}}}}}|}} | | background-color: #704A0C; color: #D1CBC6;}}" {{!}} <span style="text-transform: uppercase;">{{#invoke:Lang|get_string|Citadel_IsComponentOf}}</span><br/>{{ItemIcon|{{{iscomponentof1_name}}}}}|}} | ||
{{# | {{#if:{{{iscomponentof2_name|}}}| | ||
{{!}}- | {{!}}- | ||
! colspan="4" class="is-component-of-header" style="text-align:left; padding:0 12px; font-weight:bold; font-size:16px; font-family:'Retail Demo', serif; {{ | ! colspan="4" class="is-component-of-header" style="text-align:left; padding:0 12px; font-weight:bold; font-size:16px; font-family:'Retail Demo', serif; {{ | ||
| Line 303: | Line 303: | ||
| background-color: #704A0C; color: #D1CBC6;}}" {{!}}{{ItemIcon|{{{iscomponentof2_name}}}}}|}} | | background-color: #704A0C; color: #D1CBC6;}}" {{!}}{{ItemIcon|{{{iscomponentof2_name}}}}}|}} | ||
|- | |- | ||
{{# | {{#if:{{{iscomponentof3_name|}}}| | ||
{{!}}- | {{!}}- | ||
! colspan="4" class="is-component-of-header" style="text-align:left; padding:0 12px; font-weight:bold; font-size:16px; font-family:'Retail Demo', serif; {{ | ! colspan="4" class="is-component-of-header" style="text-align:left; padding:0 12px; font-weight:bold; font-size:16px; font-family:'Retail Demo', serif; {{ | ||