Template:Infobox item: Difference between revisions

No edit summary
No edit summary
 
(74 intermediate revisions by 24 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
| defaultimagesize = 160px
| defaultimageclass = pixel-image
| invimage = title
| rows =
| rows =
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }}
{{infobox row|class=list-style-none|label={{#ifeq:{{NAMESPACE}}|Earth|[[MCE:Rarity|Rarity]]|[[minecraft:Rarity|Rarity color]]}}|field={{{rarity|Common}}} }}
{{#if: {{{otherosonly|}}} | {{infobox row|label=Only available in|field={{{otherosonly}}} }} }}
{{#if: {{{durability|}}} | {{infobox row|label=[[Durability]]|field={{{durability}}} }} }}<includeonly>
{{#if: {{{durability|}}} | {{infobox row|label=[[Item durability|Durability]]|field={{{durability}}} }} }}
{{infobox row|label=[[minecraft:Renewable resource|Renewable]]|field={{ #if: {{{renewable|}}} | {{{renewable}}} | ? {{#if:{{{nocat|}}}||[[Category:Missing renewability]]}} }} }}
{{infobox row|label=[[Renewable resource|Renewable]]|field={{ #if: {{{renewable|}}} | {{{renewable}}} | ? }} }}
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? {{#if:{{{nocat|}}}||[[Category:Missing stackability]]}} }} }}</includeonly>
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? }} }}
{{ #if: {{{heals|}}} | {{infobox row|label=[[Food|Restores]]|field={{{heals}}} }} }}
{{#if: {{{experience|}}} | {{infobox row | label= [[Experience]] | field= {{{experience}}} }} }}
{{ #if: {{{effects|}}} | {{infobox row|label=[[Status effect]]s|field={{{effects}}} }} }}
{{#if: {{{rarity|}}} | {{infobox row|label=[[Rarity]]|field=[[File:Rarity {{{rarity}}}.png|x16px]] }} | {{infobox row|label=[[Rarity]]|field=[[Category:Items with invalid rarity]] }} }}
}}<noinclude>
{{#if: {{{firstver|}}} | {{infobox row|label=First appearance|field={{version link|{{{firstver}}}}} {{
    #if: {{{firstdev|}}} | ({{version link|{{{firstdev}}}}})
    }}{{#if: {{NAMESPACE}} || {{translation category|project=0|Update infobox history}} }}}}
  }}
{{#if: {{{sounds|}}} | {{infobox row|class=list-style-none|label=Sounds|field={{{sounds|}}}}} }}
{{#if: {{{multipledata|}}}
  | {{infobox row|label=[[Data values]]|field={{{multipledata}}} }}
  | {{#if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{data value|{{{data}}} }} }} }}
}}
{{#if: {{NAMESPACE}}
|
| {{#ifeq: {{lc: {{{nameid}}} }} | none
  |
  | {{infobox row|label=[[Data values|Name]]|field={{
    #if: {{{nameid|}}}
    | {{{nameid}}}
    | {{lc: {{#replace: {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} || _ }} }}
    }}}}
  }}
}}
}}{{
#if: {{{nocat|}}}{{NAMESPACE}} ||
{{#if: {{{type|}}} | {{ #ifeq: {{{type}}}| Items || {{translation category|{{{type}}}}} }} }}
{{translation category|project=0|{{
  #switch: {{lc: {{{renewable|}}} }}
  | yes = Renewable resources
  | no = Non-renewable resources
  | Resources with invalid renewability
  }}
}}}}</includeonly><noinclude>
<!-- categories/interwikis on the /doc subpage, not here -->
<!-- categories/interwikis on the /doc subpage, not here -->
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>