Template:Infobox item: Difference between revisions

Grelgn (talk | contribs)
Fix border radius
Grelgn (talk | contribs)
mNo edit summary
Line 46: Line 46:
}}</div>
}}</div>
|}
|}
<div style="{{#ifeq:{{{has_components|}}}|true|display:inline|display:none}}">
<div style="{{#ifeq:{{{has_components|}}}|true|display:inline|display:none;}}">
{|- style="text-align:left; width:512px; max-width:512px; height:28px; padding: 0 12px; {{
{|- style="text-align:left; width:512px; max-width:512px; height:28px; padding: 0 12px; {{
#switch: {{{item_type}}}
#switch: {{{item_type}}}
Line 107: Line 107:
| }}
| }}
|}
|}
<div style="text-align:left; border-collapse:collapse; width:512px; max-width:512px; {{#ifeq:{{{has_passive1|}}}|true|display:inline|display:none}} {{
<div style="text-align:left; border-collapse:collapse; width:512px; max-width:512px; {{#ifeq:{{{has_passive1|}}}|true|display:inline|display:none;}} {{
#switch: {{{item_type}}}
#switch: {{{item_type}}}
  | Weapon = background-color: #FF00B6; color: #C4B49E;
  | Weapon = background-color: #FF00B6; color: #C4B49E;
Line 128: Line 128:


</div>
</div>
<div style="{{#ifeq:{{{has_passive1|}}}|true|display:inline|display:none}}">
<div style="{{#ifeq:{{{has_passive1|}}}|true|display:inline|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;|}}{{
{|- style="text-align:left; width:512px; max-width:512px; color: #FFEFD7; padding: 0 12px; {{#ifeq:{{{has_active1|}}}|false|border-radius: 0px 0px 8px 8px;|}}{{
#switch: {{{item_type}}}
#switch: {{{item_type}}}
Line 142: Line 142:
| display: none;"}}
| display: none;"}}
</div>
</div>
<div style="{{#ifeq:{{{has_passive1|}}}|true|display:inline-block|display:none}}">
<div style="{{#ifeq:{{{has_passive1|}}}|true|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 179: Line 179:
</div>
</div>


<div style="{{#ifeq:{{{has_passive2|}}}|true|display:inline|display:none}}">
<div style="{{#ifeq:{{{has_passive2|}}}|true|display:inline|display:none;}}">
{|- style="text-align:left; border-collapse:collapse; width:512px; max-width:512px; {{
{|- style="text-align:left; border-collapse:collapse; width:512px; max-width:512px; {{
#switch: {{{item_type}}}
#switch: {{{item_type}}}
Line 194: Line 194:
|}
|}
</div>
</div>
<div style="{{#ifeq:{{{has_passive2|}}}|true|display:inline|display:none}}">
<div style="{{#ifeq:{{{has_passive2|}}}|true|display:inline|display:none;}}">
{|- style="text-align:left; border-collapse:collapse; width:512px; max-width:512px; color: #FFEFD7; {{
{|- style="text-align:left; border-collapse:collapse; width:512px; max-width:512px; color: #FFEFD7; {{
#switch: {{{item_type}}}
#switch: {{{item_type}}}
Line 208: Line 208:
| display: none;"}}
| display: none;"}}
</div>
</div>
<div style="margin-left:0.5em; margin-right:0.5em; {{#ifeq:{{{has_passive2|}}}|true|display:inline-block|display:none}}">
<div style="margin-left:0.5em; margin-right:0.5em; {{#ifeq:{{{has_passive2|}}}|true|display:inline-block|display:none;}}">
{|- style="text-align:left; width:480px; max-width:480px; border-radius:8px; color: #FFEFD7; {{
{|- style="text-align:left; width:480px; max-width:480px; border-radius:8px; color: #FFEFD7; {{
#switch: {{{item_type}}}
#switch: {{{item_type}}}
Line 244: Line 244:
|}
|}
</div>
</div>
<div style="{{#ifeq:{{{has_active1|}}}|true|display:inline|display:none}}">
<div style="{{#ifeq:{{{has_active1|}}}|true|display:inline|display:none;}}">
{|- style="text-align:left; border-collapse:collapse; width:512px; max-width:512px; color: #FFEFD7; font-weight: bold; {{
{|- style="text-align:left; border-collapse:collapse; width:512px; max-width:512px; color: #FFEFD7; font-weight: bold; {{
#switch: {{{item_type}}}
#switch: {{{item_type}}}
Line 259: Line 259:
|}
|}
</div>
</div>
<div style="{{#ifeq:{{{has_active1|}}}|true|display:inline|display:none}}">
<div style="{{#ifeq:{{{has_active1|}}}|true|display:inline|display:none;}}">
{|- style="text-align:left; width:512px; padding: 0 12px; {{#ifeq:{{{has_iscomponentof|}}}|false|border-radius: 0px 0px 8px 8px;|}} max-width:512px; color: #FFEFD7; {{
{|- style="text-align:left; width:512px; padding: 0 12px; {{#ifeq:{{{has_iscomponentof|}}}|false|border-radius: 0px 0px 8px 8px;|}} max-width:512px; color: #FFEFD7; {{
#switch: {{{item_type}}}
#switch: {{{item_type}}}
Line 272: Line 272:
  ! <span style="font-family: 'Retail Demo Regular';">{{{active1_description}}}</span>
  ! <span style="font-family: 'Retail Demo Regular';">{{{active1_description}}}</span>
| display: none;"}}
| display: none;"}}
<div style="margin-top: 6px; {{#ifeq:{{{has_active1|}}}|true|display:inline-block|display:none}}">
<div style="margin-top: 6px; {{#ifeq:{{{has_active1|}}}|true|display:inline-block|display:none;}}">
{|- style="text-align:left; width:480px; max-width:480px; border-radius:5px; color: #FFEFD7; font-family: 'Retail Demo Regular'; {{
{|- style="text-align:left; width:480px; max-width:480px; border-radius:5px; color: #FFEFD7; font-family: 'Retail Demo Regular'; {{
#switch: {{{item_type}}}
#switch: {{{item_type}}}
Line 308: Line 308:
|}
|}
</div>
</div>
<div style="{{#ifeq:{{{has_iscomponentof|}}}|true|display:inline|display:none}}">
<div style="{{#ifeq:{{{has_iscomponentof|}}}|true|display:inline|display:none;}}">
{|- style="text-align:left; width:512px; max-width:512px; padding: 0 12px; border-radius: 0px 0px 8px 8px; {{
{|- style="text-align:left; width:512px; max-width:512px; padding: 0 12px; border-radius: 0px 0px 8px 8px; {{
#switch: {{{item_type}}}
#switch: {{{item_type}}}