Template:Infobox entity: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<!--------- Infobox --------->
<!--------- Infobox --------->
{{Infobox|
<!-- IMG -->
|bodyclass = mw-collapsible floatright
|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|400px]]|[[File:MissingMob.png|400px]]}}
|imagerowclass1 = infobox-image
<!-- Header -->
|header1 = {{{name|{{PAGENAME}}}}}
|rowclass1 = infobox-title
<!-- Header -->
|header2 = Stats
|rowclass2 = infobox-title
|label3 = Health points
|data3 = {{{hp|0}}}
|rowclass3 = data-coords infobox-data infobox-col1
|label4 = Armor
|data4 = {{{Armor|5}}}
|rowclass4 = data-coords infobox-data infobox-col1


{{Infobox
| invimage = none
| rows =
{{infobox row|label='''Base mob'''|field={{#if: {{{basemob|}}} | <span class="plainlinks">[https://minecraft.wiki/w/{{{basemob}}} {{{basemob}}}]</span> | ? }} }}
{{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Health_points Health points]</span>'''|field={{#if: {{{health|}}} | {{{health}}} | ? }} }}
{{ #if: {{{armor|}}} | {{Infobox row|'''Armor'''|{{{armor}}} }} }}
{{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Spawn Spawn]</span>'''|field={{#if: {{{spawn|}}} | {{{spawn}}} | ? }} }}
{{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Mob#Behavior Behavior]</span>'''|field={{#if: {{{behavior|}}} | {{{behavior}}} | ? }} }}
{{ #if: {{{damage|}}} | {{Infobox row|'''Attack<br/>strength'''|{{{damage}}} }} }}
{{ #if: {{{speed|}}} | {{Infobox row|'''<span class="plainlinks">[https://minecraft.wiki/w/Attribute#movementSpeed Speed]</span>'''|{{{speed}}} }} }}
{{ #if: {{{equipment|}}} | {{Infobox row|'''Natural<br/>equipment'''|{{{equipment}}} }} }}
{{ #if: {{{effects|}}} | {{Infobox row|'''Effects'''|{{{effects}}} }} }}
{{ #if: {{{drops|}}} | {{Infobox row|'''[[{{PAGENAME}}#Loot|Drops]]'''|{{{drops}}} }} }}
{{#if: {{{command|}}} | {{Infobox row|label='''Command'''|field=<div style="max-height:100px; overflow-y: scroll; border: 1px solid #ccc; padding: 5px; max-width:200px; word-wrap: break-word">{{{command|}}}</div>}} }}
{{#if: {{{notes|}}} | {{Infobox row|label='''Notes'''|field={{{notes|}}} }} }}
}}
}}
<templatedata>
 
{
<includeonly>{{Infobox|
"params": {
 
"health": {
|label2 = Location
"description": "The total health of the entity",
|data2 = <span class="data-world">{{{active|}}} server</span>{{#if:{{{active|}}}|{{nbsp}}{{nbsp}}{{nbsp}}{{nbsp}}<span class="data-located">on [[{{SITENAME}}:About| {{SITENAME}}]]}}</span>
"example": "{{hp|10}}",
|rowclass2 = data-location infobox-subtitle infobox-data infobox-col1
"required": true
 
},
|label3 = Version
"armor": {
|data3 = {{{version|{{Home/settings|versionReal}}}}}
"description": "The total armor points of the entity.",
|rowclass3 = data-coords infobox-data infobox-col2
"example": "{{Armor|5}",
 
"suggested": true
|label4 = Command
},
|data4 = {{#if: {{{command|}}}{{{name}}} | <div style="overflow-x: scroll;">{{CMD|server {{{command|{{{name|{{PAGENAME}}}}}}}}}}</div> | }}
"behavior": {
|rowclass4 = data-warp infobox-data infobox-col2
"description": "The behavior of the entity. Can it, and why can it attack you.",
 
"example": "Passive/Neutral/Hostile",
|label5     = Established
"required": true
|data5 = {{#if: {{{established|}}}|{{#time: F j, Y|{{{established|}}}}}<br><span style="font-weight: 300;">({{Time ago|{{{established|}}}}})</span>|}}
},
|rowclass5 = data-founded infobox-data infobox-col2
"damage": {
 
"description": "How much damage in hearts can it inflict you",
|header6 = {{#if:{{{worlds|}}}{{{mode|}}}|Details}}
"example": "Easy : {{hp|2}} to {{hp|10}}<br>Normal : {{hp|4}} to {{hp|012}}<br>Hard : {{hp|6}} to {{hp|14}}",
|rowclass6 = infobox-header
"default": "Easy : {{hp|0}} to {{hp|0}}<br>\nNormal : {{hp|0}} to {{hp|0}}<br>\nHard : {{hp|0}} to {{hp|0}}",
 
"suggested": true
|label7 = Worlds
},
|data7 = {{{worlds|}}}
"spawn": {
|rowclass7 = data-type infobox-data infobox-col2
"description": "List of where or how the entity can appear.",
 
"example": "{{Link|...}}<br>{{Link|...}}<br>",
|label8 = Gamemode
"required": true
|data8 = {{{mode|}}}
},
|rowclass8 = data-type infobox-data infobox-col2
"notes": {
 
"description": "Additional notes about the entity"
|header20 = {{#if:{{{restricted|}}}{{{limit|}}}|Access}}
},
|rowclass20 = infobox-header
"drops": {
 
"description": "List of what the entity can drop.",
|label21 = Restrictions
"example": "{{Link|...}}<br>{{Link|...}}<br>",
|data21 = {{{restricted|}}}
"suggested": true
|rowclass21 = data-shops infobox-data infobox-col2
},
 
"speed": {
|label22 = Player limit
"description": "Speed value of the entity, leave empty if unknown",
|data22 = {{{limit|}}}
"example": "0.55",
|rowclass22 = data-services infobox-data infobox-col2
"suggested": true
 
},
|header60 = {{#if:{{{worldmapurl|}}}|{{Infobox buttons|type=server|worldmapurl={{{worldmapurl|}}}}}}}|<span></span>
"equipment": {
|rowclass60 = infobox-button-bar
"description": "Armor or item the entity is equipped with.",
 
"example": "{{Link|...}}<br>{{Link|...}}<br>"
}}</includeonly>
},
 
"effects": {
"description": "Permanent potion effects of the entity.",
"example": "{{EffectLink|id=effect_name|Effect link|Effect name}}<br>{{EffectLink|id=effect_name|Effect link|Effect name}}"
},
"basemob": {
"description": "Vanilla mob the custom entity is using",
"example": "Piglin",
"required": true
},
"pageimage": {
"description": "Forced .png or .gif set to appear for the page popup and SEO. Obligatory if \" ; \" is used in the \"image\" string."
},
"image": {
"description": "Forces an image not based on the title of the page, useful for putting a GIF. You can also create a diaporama by putting \";\" between the images names."
},
"command": {
"description": "Summon function command for the entity if available",
"suggested": true
}
},
"description": "Use this template for Entities/Mobs and their info/stats. Do not add a string for unknown info.",
"paramOrder": [
"image",
"pageimage",
"basemob",
"health",
"armor",
"spawn",
"behavior",
"damage",
"speed",
"equipment",
"effects",
"drops",
"command",
"notes"
]
}
</templatedata></noinclude>
<!-------------------
<!-------------------
Short description
Short description

Revision as of 19:11, 25 May 2024

File:MissingMob.png
Infobox entity
Stats
Health points0
Armor5









Template:Infobox entity/doc