Template:Infobox entity: Difference between revisions

Template page
No edit summary
No edit summary
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#invoke:infobox|infobox
<!--------- Infobox -------
| invimage = none
--><includeonly>
| rows =
{{Infobox|
{{ #if: {{{health|}}} | {{Infobox row|{{#ifeq:{{NAMESPACE}}|Minecraft Earth|[[MCE:Health|Health points]]|[[Health|Health points]]}}|{{{health}}} }} }}
|bodyclass = mw-collapsible floatright
{{ #if: {{{armor|}}} | {{Infobox row|[[Armor|Armor points]]|{{{armor}}} }} }}
|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|400px]]|{{#ifexist: File:{{PAGENAME}}.gif|[[File:{{PAGENAME}}.gif|400px]]|[[File:{{PAGENAME}}.png|400px]]}}}}
{{ #if: {{{behavior|}}} | {{Infobox row|Behavior|{{{behavior}}} }} }}
|imagerowclass1 = infobox-image
{{ #if: {{{classification|}}} | {{Infobox row|{{tooltip|Classification|Java Edition only}}|{{{classification}}} }} }}
 
{{ #if: {{{family|}}} | {{Infobox row|{{tooltip|Family|Bedrock Edition only}}|{{{family}}} }} }}
<!-- title -->
{{ #if: {{{damage|}}} | {{Infobox row|Attack<br/>strength|{{{damage}}} }} }}
|header1 = {{{name|{{PAGENAME}}}}}
{{ #if: {{{size|}}} | {{Infobox row|[[Hitbox|Hitbox size]]|{{{size}}} }} }}
|rowclass1 = infobox-title
{{ #if: {{{speed|}}} | {{Infobox row|[[Attribute#movementSpeed|Speed]]|{{{speed}}} }} }}
 
{{ #if: {{{knockbackresistance|}}} | {{Infobox row|[[Attribute#knockbackResistance|Knockback<br/>resistance]]|{{{knockbackresistance}}} }} }}
|label3 = Behavior
{{ #if: {{{spawn|}}} | {{Infobox row|[[Spawn]]|{{{spawn}}} }} }}
|data3 = {{{behavior|Passive}}}
{{ #if: {{{equipment|}}} | {{Infobox row|[[Drops#Equipped items|Natural<br/>equipment]]|{{{equipment}}}|class=list-style-none}} }}
|rowclass3 = data-type infobox-data infobox-col1
{{ #if: {{{usableitems|}}} | {{Infobox row|Usable items|{{{usableitems}}}|class=list-style-none}} }}
 
{{ #if: {{{rarity|}}} | {{Infobox row|[[MCE:Rarity|Rarity]]|{{{rarity}}} }} }}
|label4 = Classification
| footer =
|data4 = {{{class|}}}
{{#if: {{{notes|}}} | '''Notes'''<br />{{{notes}}} }}
|rowclass4 = data-type infobox-data infobox-col1
}}<noinclude>
 
{{Documentation}}
|header5 = {{#if:{{{health|}}}{{{armor|}}}{{{speed|}}}|Stats}}
<!-- Put categories/interwiki on the documentation page -->
|rowclass5 = infobox-header
</noinclude>
 
<!-- Health -->
|label6 = Health points
|data6 = {{{hp|1}}}
|rowclass6 = data-type infobox-data infobox-col1
 
<!-- Armor -->
|label7 = Armor
|data7 = {{{armor|0}}}
|rowclass7 = data-type infobox-data infobox-col1
 
|header8 = {{#if:{{{biome|}}}{{{structure|}}}|Spawn}}
|rowclass8 = infobox-header
 
<!-- Biome -->
|label9 = Biome
|data9 = {{L2MCW|{{{biome|None}}}}}
|rowclass9 = data-type infobox-data infobox-col1
 
<!-- Structure -->
|label11 = Structure
|data11 = {{{structure|None}}}
|rowclass11 = data-type infobox-data infobox-col1
 
<!-- Usable items -->
|label10 = Usable items
|data10 = {{{items|}}}
|rowclass10 = data-type infobox-data infobox-col1
}}
</includeonly><!-------------------
Short description
{CLASS>TYPE} {LOCATIONTYPE} in the {SYSTEM} system
-----------------
--><includeonly>{{Short description|{{{name|{{PAGENAME}}}}} is a {{{behavior|}}} mob on {{SITENAME}}.}}</includeonly><!-- Categories
--><includeonly>[[Category:Mobs]]</includeonly>
<includeonly>{{#if:{{{behavior|}}}|[[Category:{{{behavior}}} mobs]]}}</includeonly><!---
SEO
---
--><includeonly>{{#vardefine:infoboxseo|1}}{{#seo:
|title = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} Mob - {{SITENAME}}
|site_name = {{SITENAME}}
|type = article
|locale = {{PAGELANGUAGE}}
|image = {{#if:{{{image|}}}|{{{image}}}|{{PAGENAME}}.png}}
}}</includeonly><noinclude>{{/doc}}</noinclude>

Latest revision as of 19:26, 8 June 2024