Template:Infobox entity: Difference between revisions

Added transparency field for experience orb.
Optimised
Line 3: Line 3:
| imagearea= {{#ifeq:{{{base|Item}}}|Item|
| imagearea= {{#ifeq:{{{base|Item}}}|Item|
[[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{BASEPAGENAME}}.png | {{BASEPAGENAME}}.png | No image.svg}} }}|150px|center]]
[[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{BASEPAGENAME}}.png | {{BASEPAGENAME}}.png | No image.svg}} }}|150px|center]]
{{ #ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage}}} }}.png]]</span></div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{BASEPAGENAME}}.png]]<span class="grid-input">[[File:Grid {{BASEPAGENAME}}.png]]</span></div> }} }}
{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto"><span style="position: relative">[[File:Grid layout None (small).png]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage}}} }}.png}}]]</span></span> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | <div style="padding-top: 1em; margin: 0 auto"><span style="position: relative">[[File:Grid layout None (small).png]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{BASEPAGENAME}} }}.png]]</span></span> }} }}
   }}{{
   }}{{
   #ifeq: {{lc: {{{invimage2}}} }} | none | | {{#if: {{{invimage2|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage2}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage2}}} }}.png]]</span></div></div> }}
   #ifeq: {{lc: {{{invimage2}}} }} | none | | {{#if: {{{invimage2|}}} | <span style="position: relative">[[File:Grid layout None (small).png]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage2}}} }}.png]]</span></span> }}
   }}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | </div> }} }} }}
   }}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | </div> }} }} }}
|<!-- end Item picture code, begin Block -->
|<!-- end Item picture code, begin Block -->
Line 12: Line 12:
}}{{
}}{{
   #if: {{{image3|}}} | <div style="padding-top: 1em">[[File:{{{image3}}}|150px|center]]</div>
   #if: {{{image3|}}} | <div style="padding-top: 1em">[[File:{{{image3}}}|150px|center]]</div>
}}{{
}}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto"><span style="position: relative">[[File:Grid layout None (small).png]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage}}} }}.png}}]]</span></span> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | <div style="padding-top: 1em; margin: 0 auto"><span style="position: relative">[[File:Grid layout None (small).png]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{BASEPAGENAME}} }}.png]]</span></span> }} }}
  #ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="display: table-row"><div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage}}} }}.png]]</span></div></div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="display: table-row"><div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{BASEPAGENAME}}.png]]<span class="grid-input">[[File:Grid {{BASEPAGENAME}}.png]]</span></div></div> }} }}
   }}{{
   }}{{
   #ifeq: {{lc: {{{invimage2}}} }} | none | | {{#if: {{{invimage2|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage2}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage2}}} }}.png]]</span></div></div> }}
   #ifeq: {{lc: {{{invimage2}}} }} | none | | {{#if: {{{invimage2|}}} | <span style="position: relative">[[File:Grid layout None (small).png]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage2}}} }}.png]]</span></span> }}
   }}{{
   }}{{
   #ifeq: {{lc: {{{invimage3}}} }} | none | | {{#if: {{{invimage3|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage3}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage3}}} }}.png]]</span></div></div> }}
   #ifeq: {{lc: {{{invimage3}}} }} | none | | {{#if: {{{invimage3|}}} | <span style="position: relative">[[File:Grid layout None (small).png]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage3}}} }}.png]]</span></span> }}
   }}{{
   }}{{
   #ifeq: {{lc: {{{invimage4}}} }} | none | | {{#if: {{{invimage4|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage4}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage4}}} }}.png]]</span></div></div> }}
   #ifeq: {{lc: {{{invimage4}}} }} | none | | {{#if: {{{invimage4|}}} | <span style="position: relative">[[File:Grid layout None (small).png]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage4}}} }}.png]]</span></span> }}
   }}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div></div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | </div></div> }} }} }}
   }}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | </div> }} }} }}
<!--end Block picture code and #if-->
<!--end Block picture code and #if-->
}}
}}