Template:Infobox entity: Difference between revisions

No edit summary
m 173 revisions imported
 
(14 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<onlyinclude><infobox>
{{#invoke:infobox|infobox
<title source="title"><default>{{BASEPAGENAME}}</default></title>
| invimage = none
<panel>
| rows =
<section>
{{ #if: {{{health|}}} | {{Infobox row|{{#ifeq:{{NAMESPACE}}|Earth|[[MCE:Health|Health points]]|[[Health|Health points]]}}|{{{health}}} }} }}
<label>{{{group}}}</label>
{{ #if: {{{armor|}}} | {{Infobox row|[[Armor|Armor points]]|{{{armor}}} }} }}
<image source="1-1" />
{{ #if: {{{behavior|}}} | {{Infobox row|Behavior|{{{behavior}}} }} }}
<image source="1-2" />
{{ #if: {{{classification|}}} | {{Infobox row|{{#ifeq:{{NAMESPACE}}|Earth|Classification|{{tooltip|Classification|Java Edition only}}}}|{{{classification}}} }} }}
<image source="1-3" />
{{ #if: {{{family|}}} | {{Infobox row|{{tooltip|Family|Bedrock Edition only}}|{{{family}}} }} }}
</section>
{{ #if: {{{damage|}}} | {{Infobox row|Attack<br/>strength|{{{damage}}} }} }}
<section>
{{ #if: {{{size|}}} | {{Infobox row|[[Hitbox|Hitbox size]]|{{{size}}} }} }}
<label>{{{group2}}}</label>
{{ #if: {{{speed|}}} | {{Infobox row|[[Attribute#movementSpeed|Speed]]|{{{speed}}} }} }}
<image source="2-1" />
{{ #if: {{{knockbackresistance|}}} | {{Infobox row|[[Attribute#knockbackResistance|Knockback<br/>resistance]]|{{{knockbackresistance}}} }} }}
<image source="2-2" />
{{ #if: {{{spawn|}}} | {{Infobox row|[[Spawn]]|{{{spawn}}} }} }}
<image source="2-3" />
{{ #if: {{{equipment|}}} | {{Infobox row|[[Drops#Equipped items|Natural<br/>equipment]]|{{{equipment}}}|class=list-style-none}} }}
</section>
{{ #if: {{{usableitems|}}} | {{Infobox row|Usable items|{{{usableitems}}}|class=list-style-none}} }}
<section>
{{ #if: {{{rarity|}}} | {{Infobox row|[[MCE:Rarity|Rarity]]|{{{rarity}}} }} }}
<label>{{{group3}}}</label>
| footer =
<image source="3-1" />
{{#if: {{{notes|}}} | '''Notes'''<br />{{{notes}}} }}
<image source="3-2" />
}}<noinclude>
<image source="3-3" />
{{Documentation}}
</section>
<!-- Put categories/interwiki on the documentation page -->
<section>
</noinclude>
<label>{{{group4}}}</label>
<image source="4-1" />
<image source="4-2" />
<image source="4-3" />
</section>
</panel>
<image source="image"><default>{{
#if: {{PROTECTIONEXPIRY:edit|File:{{BASEPAGENAME}}.png}} <!-- Don't use #ifexist, because it creates red links -->
| {{#if:{{{group|}}}||File:{{BASEPAGENAME}}.png}}
}}</default></image>
<image source="image2" />
<navigation>{{{extratext|}}}</navigation>
<data source="invimage">
<label>Spawn Egg</label><format><span class="invslot">{{InvSprite|{{{invimage}}}}}</span></format><default><span class="invslot">{{InvSprite|{{BASEPAGENAME}}}}</span></default>
</data>
<data source="health"><label>[[Health]]</label></data>
<data source="classification"><label>Classification</label></data>
<data source="behavior">
<label>Behavior</label>
<default>''Does not exist''</default>
</data>
<data source="spawn"><label>[[Spawn]]</label></data>
<data source="damage"><label>[[Damage]]</label></data>
<data source="equipment"><label>[[Drops#Equipped items|Natural<br />equipment]]</label></data>
<data source="usableitems"><label>Usable items</label></data>
<data source="rarity"><label>[[MCE:Rarity|Rarity]]</label></data>
<group collapse="closed">
<header>Secondary information</header>
<data source="size"><label>Size</label></data>
<data source="armor"><label>[[Armor]]</label></data>
<data source="speed"><label>Speed</label></data>
<data source="knockbackresistance"><label>Knockback</label></data>
</group>
</infobox></onlyinclude><noinclude>{{Documentation}}</noinclude>