Template:Infobox entity: Difference between revisions

m Fixed a parameter
m 173 revisions imported
 
(27 intermediate revisions by 12 users not shown)
Line 1: Line 1:
<onlyinclude><infobox>
{{#invoke:infobox|infobox
<title source="title"><default>{{BASEPAGENAME}}</default></title>
| invimage = none
<image source="image"><default>{{#ifexist: File:{{BASEPAGENAME}}.png|{{BASEPAGENAME}}.png}}</default></image>
| rows =
<image source="image2" />
{{ #if: {{{health|}}} | {{Infobox row|{{#ifeq:{{NAMESPACE}}|Earth|[[MCE:Health|Health points]]|[[Health|Health points]]}}|{{{health}}} }} }}
<navigation>{{{extratext|}}}</navigation>
{{ #if: {{{armor|}}} | {{Infobox row|[[Armor|Armor points]]|{{{armor}}} }} }}
<data source="health"><label>[[Health]]</label></data>
{{ #if: {{{behavior|}}} | {{Infobox row|Behavior|{{{behavior}}} }} }}
<data source="classification"><label>Classification</label></data>
{{ #if: {{{classification|}}} | {{Infobox row|{{#ifeq:{{NAMESPACE}}|Earth|Classification|{{tooltip|Classification|Java Edition only}}}}|{{{classification}}} }} }}
<data source="behavior">
{{ #if: {{{family|}}} | {{Infobox row|{{tooltip|Family|Bedrock Edition only}}|{{{family}}} }} }}
<label>Behavior</label>
{{ #if: {{{damage|}}} | {{Infobox row|Attack<br/>strength|{{{damage}}} }} }}
<default>''Does not exist''</default>
{{ #if: {{{size|}}} | {{Infobox row|[[Hitbox|Hitbox size]]|{{{size}}} }} }}
</data>
{{ #if: {{{speed|}}} | {{Infobox row|[[Attribute#movementSpeed|Speed]]|{{{speed}}} }} }}
<data source="spawn"><label>[[Spawn]]</label></data>
{{ #if: {{{knockbackresistance|}}} | {{Infobox row|[[Attribute#knockbackResistance|Knockback<br/>resistance]]|{{{knockbackresistance}}} }} }}
<data source="damage"><label>[[Damage]]</label></data>
{{ #if: {{{spawn|}}} | {{Infobox row|[[Spawn]]|{{{spawn}}} }} }}
<header>{{#if:{{{easydamage|}}}{{{jedamage|}}}{{{easyjedamage|}}}|[[Damage]]}}</header>
{{ #if: {{{equipment|}}} | {{Infobox row|[[Drops#Equipped items|Natural<br/>equipment]]|{{{equipment}}}|class=list-style-none}} }}
<header name="damagelabel">{{#if:{{{short}}}||{{#if:{{{easyjedamage|}}}|''[[Java Edition]]''}}}}</header>
{{ #if: {{{usableitems|}}} | {{Infobox row|Usable items|{{{usableitems}}}|class=list-style-none}} }}
<group layout="horizontal">
{{ #if: {{{rarity|}}} | {{Infobox row|[[MCE:Rarity|Rarity]]|{{{rarity}}} }} }}
<data source="jedamage"><label>''[[Java Edition]]''</label><format>{{#if:{{{short}}}||{{{jedamage}}}}}</format></data>
| footer =
<data source="bedamage"><label>[[Bedrock Edition]]</label><format>{{#if:{{{short}}}||{{{bedamage}}}}}</format></data>
{{#if: {{{notes|}}} | '''Notes'''<br />{{{notes}}} }}
<data source="easydamage"><label>Easy</label><format>{{#if:{{{short}}}||{{{easydamage}}}}}</format></data>
}}<noinclude>
<data source="normaldamage"><label>Normal</label><format>{{#if:{{{short}}}||{{{normaldamage}}}}}</format></data>
{{Documentation}}
<data source="harddamage"><label>Hard</label><format>{{#if:{{{short}}}||{{{harddamage}}}}}</format></data>
<!-- Put categories/interwiki on the documentation page -->
<data source="easyjedamage"><label>Easy</label><format>{{#if:{{{short}}}||{{{easyjedamage}}}}}</format></data>
</noinclude>
<data source="normaljedamage"><label>Normal</label><format>{{#if:{{{short}}}||{{{normaljedamage}}}}}</format></data>
<data source="hardjedamage"><label>Hard</label><format>{{#if:{{{short}}}||{{{hardjedamage}}}}}</format></data>
</group>
<header name="damagelabel">{{#if:{{{short}}}||{{#if:{{{easybedamage|}}}|[[Bedrock Edition]]}}}}</header>
<group layout="horizontal">
<data source="easybedamage"><label>Easy</label><format>{{#if:{{{short}}}||{{{easybedamage}}}}}</format></data>
<data source="normalbedamage"><label>Normal</label><format>{{#if:{{{short}}}||{{{normalbedamage}}}}}</format></data>
<data source="hardbedamage"><label>Hard</label><format>{{#if:{{{short}}}||{{{hardbedamage}}}}}</format></data>
</group>
    <panel>
<section>
<header name="damagelabel">{{#if:{{{short}}}|{{#if:{{{jedamage|}}}|''[[Java Edition]]''}}}}</header>
<data source="jedamage"><default>{{#if:{{{short}}}|{{{jedamage}}}}}</default></data>
<header name="damagelabel">{{#if:{{{short}}}|{{#if:{{{bedamage|}}}|[[Bedrock Edition]]}}}}</header>
<data source="bedamage"><format>{{#if:{{{short}}}|{{{bedamage}}}}}</format></data>
</section>
<section>
<label>Easy</label>
<data source="easydamage"><format>{{#if:{{{short}}}|{{{easydamage}}}}}</format></data>
</section>
<section>
<label>Normal</label>
<data source="normaldamage"><format>{{#if:{{{short}}}|{{{normaldamage}}}}}</format></data>
</section>
<section>
<label>Hard</label>
<data source="harddamage"><format>{{#if:{{{short}}}|{{{harddamage}}}}}</format></data>
</section>
<section>
<label>Easy</label>
<header name="damagelabel">{{#if:{{{short}}}|{{#if:{{{easyjedamage|}}}|''[[Java Edition]]''}}}}</header>
<data source="easyjedamage"><format>{{#if:{{{short}}}|{{{easyjedamage}}}}}</format></data>
<header name="damagelabel">{{#if:{{{short}}}|{{#if:{{{easybedamage|}}}|[[Bedrock Edition]]}}}}</header>
<data source="easybedamage"><format>{{#if:{{{short}}}|{{{easybedamage}}}}}</format></data>
</section>
<section>
<label>Normal</label>
<header name="damagelabel">{{#if:{{{short}}}|{{#if:{{{normaljedamage|}}}|''[[Java Edition]]''}}}}</header>
<data source="normaljedamage"><format>{{#if:{{{short}}}|{{{normaldamage}}}}}</format></data>
<header name="damagelabel">{{#if:{{{short}}}|{{#if:{{{normalbedamage|}}}|[[Bedrock Edition]]}}}}</header>
<data source="normalbedamage"><format>{{#if:{{{short}}}|{{{normalbedamage}}}}}</format></data>
</section>
<section>
<label>Hard</label>
<header name="damagelabel">{{#if:{{{short}}}|{{#if:{{{hardjedamage|}}}|''[[Java Edition]]''}}}}</header>
<data source="hardjedamage"><format>{{#if:{{{short}}}|{{{hardjedamage}}}}}</format></data>
<header name="damagelabel">{{#if:{{{short}}}|{{#if:{{{hardbedamage|}}}|[[Bedrock Edition]]}}}}</header>
<data source="hardbedamage"><format>{{#if:{{{short}}}|{{{hardbedamage}}}}}</format></data>
</section>
</panel>
<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>