Difference between revisions of "Template:Item"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{| class="infobox {{{class|}}}" | ||
<div style="position: relative; width: 36px; display: inline-block; padding-left: 2px; padding-right: 2px; padding-bottom: 1px"> | ! colspan="2" class="infoboxFirstHeader" | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} | ||
|- class="infoboxBlockImage" | |||
| colspan="2" | {{#ifeq:{{{image|}}}|None||[[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{BASEPAGENAME}}_ig.png | {{BASEPAGENAME}}_ig.png | Picture na.png{{!}}link=File:{{BASEPAGENAME}}.png}} }}|148px|center]]}} | |||
|- | |||
| colspan="2" | <div style="position: relative; width: 36px; display: inline-block; padding-left: 2px; padding-right: 2px; padding-bottom: 1px"> | |||
[[File:Grid layout None (small).png|link=|alt=]]{{#if:{{{invimage|}}}|<span style="left:3px; position:absolute; top:2px; z-index:1;">{{Gc|{{ucfirst:{{{invimage}}}}}}}</span>}} | [[File:Grid layout None (small).png|link=|alt=]]{{#if:{{{invimage|}}}|<span style="left:3px; position:absolute; top:2px; z-index:1;">{{Gc|{{ucfirst:{{{invimage}}}}}}}</span>}} | ||
Revision as of 10:30, 9 April 2015
Template:Item is a common infoblock template for items, not blocks
Parameters[edit]
Item | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Item {{Infobox |title= |image= |invimage= |invimage2= |invimage3= |invimage4= |armorrating= |armortoughness= |damage= |durability= |mininglevel= |stackable= |danger= |protection= |storageslots= |lstorage= |upgrades= |tier= |prevtier= |nexttier= |eu_use= |eu_use2= |storage= |eu_produce= |maxout= |uu= |firstappearance= |lastappearance= |id= }} Parameters with defaults as None aren't supposed to show when the Item's Infobox is on a page!
Example[edit]
|