Template:Infobox entity: Difference between revisions

No edit summary
m 173 revisions imported
 
(169 intermediate revisions by 56 users not shown)
Line 1: Line 1:
<includeonly>{{infobox common
{{#invoke:infobox|infobox
| title = {{ #if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}
| invimage = none
| imagearea = [[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: {{{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: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | </div> }} }} }}
| rows =
| rows =
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }}
{{ #if: {{{health|}}} | {{Infobox row|{{#ifeq:{{NAMESPACE}}|Earth|[[MCE:Health|Health points]]|[[Health|Health points]]}}|{{{health}}} }} }}
{{infobox row|label=Durability|field={{ #if: {{{durability|}}} | {{{durability}}} | N/A }} }}
{{ #if: {{{armor|}}} | {{Infobox row|[[Armor|Armor points]]|{{{armor}}} }} }}
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? }} }}
{{ #if: {{{behavior|}}} | {{Infobox row|Behavior|{{{behavior}}} }} }}
{{#if: {{{firstver|}}} | {{infobox row|label=[[Version history|First Appearance]]|field={{{firstver}}} }} }}
{{ #if: {{{classification|}}} | {{Infobox row|{{#ifeq:{{NAMESPACE}}|Earth|Classification|{{tooltip|Classification|Java Edition only}}}}|{{{classification}}} }} }}
{{#if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{dv|{{{data}}} }} }} }}{{#if: {{{multipledata|}}} | {{infobox row|label=[[Data values]]|field={{{multipledata}}} }} }}
{{ #if: {{{family|}}} | {{Infobox row|{{tooltip|Family|Bedrock Edition only}}|{{{family}}} }} }}
{{infobox row|label=Internal Entity ID|field={{ #if: {{{id|}}} | {{{id}}} | ? }} }}
{{ #if: {{{damage|}}} | {{Infobox row|Attack<br/>strength|{{{damage}}} }} }}
}}
{{ #if: {{{size|}}} | {{Infobox row|[[Hitbox|Hitbox size]]|{{{size}}} }} }}
{{#if:{{{type|}}}|[[Category:{{{type}}}{{!}}{{PAGENAME}}]]}}
{{ #if: {{{speed|}}} | {{Infobox row|[[Attribute#movementSpeed|Speed]]|{{{speed}}} }} }}
</includeonly><noinclude>
{{ #if: {{{knockbackresistance|}}} | {{Infobox row|[[Attribute#knockbackResistance|Knockback<br/>resistance]]|{{{knockbackresistance}}} }} }}
{{/doc}}
{{ #if: {{{spawn|}}} | {{Infobox row|[[Spawn]]|{{{spawn}}} }} }}
 
{{ #if: {{{equipment|}}} | {{Infobox row|[[Drops#Equipped items|Natural<br/>equipment]]|{{{equipment}}}|class=list-style-none}} }}
[[Category:Infobox templates|I]]</noinclude>
{{ #if: {{{usableitems|}}} | {{Infobox row|Usable items|{{{usableitems}}}|class=list-style-none}} }}
{{ #if: {{{rarity|}}} | {{Infobox row|[[MCE:Rarity|Rarity]]|{{{rarity}}} }} }}
| footer =
{{#if: {{{notes|}}} | '''Notes'''<br />{{{notes}}} }}
}}<noinclude>
{{Documentation}}
<!-- Put categories/interwiki on the documentation page -->
</noinclude>