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 | {{#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|}}} | < | #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: {{{invimage2}}} }} | none | | {{#if: {{{invimage2|}}} | < | #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|}}} | < | #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|}}} | < | #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|}}} | | }}{{#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--> | ||
}} | }} | ||