Template:Infobox item: Difference between revisions

mNo edit summary
m 199 revisions imported
 
(149 intermediate revisions by 44 users not shown)
Line 1: Line 1:
<includeonly>{{infobox common
{{#invoke:infobox|infobox
| title = {{ #if: {{{name|}}} | {{{name}}} | {{BASEPAGENAME}} }}
| defaultimagesize = 160px
| imagearea =
| defaultimageclass = pixel-image
[[File:{{ #if: {{{image|}}} | {{{image}}} | No image.png }}|150px|center]]
| invimage = title
{{ #if: {{{invimage|}}} | <div style="padding-top: 10px">[[File:{{{invimage}}}|36px|center]]</div> }}
| rows =
| rows =
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }}
{{infobox row|class=list-style-none|label={{#ifeq:{{NAMESPACE}}|Earth|[[MCE:Rarity|Rarity]]|[[Rarity|Rarity color]]}}|field={{{rarity|Common}}} }}
{{infobox row|label=Durability|field={{ #if: {{{durability|}}} | {{{durability}}} | N/A }} }}
{{#if: {{{durability|}}} | {{infobox row|label=[[Durability]]|field={{{durability}}} }} }}<includeonly>
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? }} }}
{{infobox row|label=[[Renewable resource|Renewable]]|field={{ #if: {{{renewable|}}} | {{{renewable}}} | ? {{#if:{{{nocat|}}}||[[Category:Missing renewability]]}} }} }}
{{ #if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{dv|{{{data}}} }} }} }}
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? {{#if:{{{nocat|}}}||[[Category:Missing stackability]]}} }} }}</includeonly>
{{ #if: {{{multipledata|}}} | {{infobox row|label=[[Data values|Data values]]|field={{{multipledata}}} }} }}
{{ #if: {{{heals|}}} | {{infobox row|label=[[Food|Restores]]|field={{{heals}}} }} }}
}}{{#if:{{{type|}}}|[[Category:{{{type}}}{{!}}{{PAGENAME}}]]}}</includeonly><noinclude>
{{ #if: {{{effects|}}} | {{infobox row|label=[[Status effect]]s|field={{{effects}}} }} }}
{{/doc}}
}}<noinclude>
 
<!-- categories/interwikis on the /doc subpage, not here -->
[[Category:Infobox templates|I]]</noinclude>
{{Documentation}}
</noinclude>