Template:Infobox entity: Difference between revisions

Undo revision 2282448 by Phat0108 (talk) wholly superfluous parameters
m rebase dev changes onto prod
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|[[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|Classification|{{{classification}}} }} }}
<image source="1-3" />
{{ #if: {{{damage|}}} | {{Infobox row|Attack<br/>strength|{{{damage}}} }} }}
</section>
{{ #if: {{{size|}}} | {{Infobox row|[[Hitbox|Hitbox size]]|{{{size}}} }} }}
<section>
{{ #if: {{{speed|}}} | {{Infobox row|[[Attribute#movementSpeed|Speed]]|{{{speed}}} }} }}
<label>{{{group2}}}</label>
{{ #if: {{{knockbackresistance|}}} | {{Infobox row|[[Attribute#knockbackResistance|Knockback<br/>resistance]]|{{{knockbackresistance}}} }} }}
<image source="2-1" />
{{ #if: {{{spawn|}}} | {{Infobox row|[[Spawn]]|{{{spawn}}} }} }}
<image source="2-2" />
{{ #if: {{{equipment|}}} | {{Infobox row|[[Drops#Equipped items|Natural<br/>equipment]]|{{{equipment}}}|class=list-style-none}} }}
<image source="2-3" />
{{ #if: {{{usableitems|}}} | {{Infobox row|Usable items|{{{usableitems}}}|class=list-style-none}} }}
</section>
{{ #if: {{{rarity|}}} | {{Infobox row|[[MCE:Rarity|Rarity]]|{{{rarity}}} }} }}
<section>
| footer =
<label>{{{group3}}}</label>
{{#if: {{{notes|}}} | '''Notes'''<br />{{{notes}}} }}
<image source="3-1" />
}}<noinclude>
<image source="3-2" />
{{Documentation}}
<image source="3-3" />
<!-- Put categories/interwiki on the documentation page -->
</section>
</noinclude>
<section>
<label>{{{group4}}}</label>
<image source="4-1" />
<image source="4-2" />
<image source="4-3" />
</section>
<section>
<label>{{{group5}}}</label>
<image source="5-1" />
<image source="5-2" />
<image source="5-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" />
<image source="image3" />
<navigation>{{{extratext|}}}</navigation>
<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>Details</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>