Template:Infobox entity/doc: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
m added exp, which was oddly missing
 
(41 intermediate revisions by 27 users not shown)
Line 1: Line 1:
{{doc/start}}
{{Documentation header}}
{{lua|Infobox}}
 
{{Entity}}
This template provides a uniform design for entities pages.
This template provides a uniform design for entities pages.
<pre width="30px">
<pre style="display:table">
{{Entity
{{Entity
|title=  
|title=  
|image=
|image=
|imagesize=
|imagesize=
|caption=
|addedVersion=
|image2=  
|addedDate=
|image2size=
|introducedEvent=
|caption2=
|introducedEventDate=
|image3=
|removedVersion=
|image3size=
|removedDate=
|caption3=
|health=
|health=
|armor=
|armor=
|behavior=
|classification=
|family=
|damage=
|damage=
|size=
|speed=
|knockbackresistance=
|spawn=
|spawn=
|firstver=
|firstdev=
|drops=
|commondrops=
|uncommondrops=
|raredrops=
|equipment=
|equipment=
|usableitems=
|usableitems=
|exp=
|networkid=
|sounds=
|rarity=
|id=
|notes=
|entityid=
}}</pre>
}}</pre>


{| style="background-color: transparent;"
{| class="wikitable"
! Parameter
! Parameter
! Function
! Function
Line 40: Line 37:
| <code>title</code> || Optional value to use a different title instead of the page name || <code><nowiki>{{BASEPAGENAME}}</nowiki></code>
| <code>title</code> || Optional value to use a different title instead of the page name || <code><nowiki>{{BASEPAGENAME}}</nowiki></code>
|-
|-
| <code>image</code> || Image of the mob (should be approx. 150x150px) Can use '''None''' to force no image. || <code><nowiki>{{{title}}}.png</nowiki></code> if it exists, otherwise [[:File:No image.svg|No image.svg]] (linking to the page where to upload the missing image)
| <code>image</code> || Image of the entity || <code><nowiki>{{{title}}}.png</nowiki></code> if it exists, otherwise [[:File:No image.svg|No image.svg]] (linking to the page where to upload the missing image)
|-
|-
| <code>imagesize</code> || Adjusts the size of the image || 200px
| <code>imagesize</code> || Adjusts the size of the image || 150px
|-
|-
| <code>caption</code> || Adds an image caption, displayed as a tooltip when the mouse cursor hovers over the image. || ''None''
| <code>image''N''</code> || Other images for multistate entities || ''None''
|-
|-
| <code>image2</code> || Second image for two-state mobs (also approx. 200x200px) || ''None''
| <code>image''N''size</code> || Adjusts the size of the corresponding image || 150px
|-
|-
| <code>image2size</code> || Adjusts the size of the second image || 200px
| <code>addedVersion</code> || The first version(s) this entity was introduced || ''None''
|-
|-
| <code>caption2</code> || Adds an image caption for the second image, displayed as a tooltip when the mouse cursor hovers over the image. || ''None''
| <code>addedDate</code> || The date(s) the entity was introduced || ''None''
|-
|-
| <code>image3</code> || Third image for three-state mobs (also approx. 200x200px) || ''None''
| <code>introducedEvent</code> || The event the entity was introduced || ''None''
|-
|-
| <code>image3size</code> || Adjusts the size of the third image || 200px
| <code>introducedEventDate</code> || The date of the event the entity was introduced || ''None''
|-
|-
| <code>caption3</code> || Adds an image caption for the third image, displayed as a tooltip when the mouse cursor hovers over the image. || ''None''
| <code>removedVersion</code> || The version the entity was removed || ''None''
|-
| <code>removedDate</code> || The date the entity was removed || ''None''
|-
|-
| <code>health</code> || The mob's health || ''None''
| <code>health</code> || The mob's health || ''None''
|-
|-
| <code>armor</code> || The mob's armor || ''None''
| <code>armor</code> || The mob's natural armor points || ''None''
|-
|-
| <code>damage</code> || The damage hostile mobs cause to the player || ''None''
| <code>damage</code> || The damage hostile mobs cause to the player || ''None''
|-
|-
| <code>spawn</code> || Spawn details || ''None''
| <code>size</code> || Hitbox height and width (see http://wiki.vg/Entities#Mobs) || ''None''
|-
|-
| <code>score</code> || The score the mob gives on being killed in [[Survival Test]] || ''None''
| <code>speed</code> || Movement speed attribute || ''None''
|-
|-
| <code>firstver</code> || First version that it was seen in (eg. Alpha 1.0.17, classic 0.0.23a).  || ''None''
| <code>knockbackresistance</code> || Knockback resistance attribute || ''None''
|-
|-
| <code>firstdev</code> || First development snapshot it was seen in, requires firstver. || ''None''
| <code>spawn</code> || Spawn details || ''None''
|-
| <code>drops</code> || What the entity drops when destroyed — only use this for drops where the [[Drops|drop type]] is unknown || ''None''
|-
| <code>commondrops</code> || The [[Drops#Common drops|common drops]] the entity may drop when destroyed || ''None''
|-
|-
| <code>uncommondrops</code> || The [[Drops#Uncommon drops|uncommon drops]] the entity may drop when destroyed || ''None''
| <code>equipment</code> || Equipment that may be dropped || ''None''
|-
|-
| <code>raredrops</code> || The [[Drops#Rare drops|rare drops]] the entity may drop when destroyed || ''None''
| <code>usableitems</code> || Items that can be used on the mob || ''None''
|-
|-
| <code>equipment</code> || The items the mob may [[Drops#Equipped items|spawn with]] || ''None''
| <code>networkid</code> || The ID number used in network traffic (0-255). || ''None''
|-
|-
| <code>usableitems</code> || The items the mob may equip || ''None''
| <code>rarity</code> || The color of this entity's name. See [[MCE:Rarity|rarity]] for more info. || ''None''
|-
|-
| <code>exp</code> || The experience the mob drop upon a player kill || ''None''
| <code>notes</code> || Additional notes || ''None''
|-
| <code>sounds</code> || The sound effects of the entity || ''None''
|-
| <code>id</code> || The entity's ID number as seen in Minecraft network traffic (0-255) || ''None''
|-
| <code>entityid</code> || The entity's EntityID as seen in saved worlds || ''None''
|}
|}


== See also ==
== See also ==
{{Infobox see also}}
{{Infobox see also}}
{{doc/end}}<noinclude>
<includeonly>
<!-- Template categories/interwiki here -->
[[Category:Infobox templates]]
 
[[de:Vorlage:Kreatur]]
[[es:Plantilla:Entidad]]
[[ko:틀:Entity]]
[[fr:Modèle:Entité]]
[[it:Template:Entità]]
[[ja:テンプレート:Entity]]
[[nl:Sjabloon:Entiteit]]
[[pt:Predefinição:Entidade]]
[[ru:Шаблон:Сущность]]
[[uk:Шаблон:Сутність]]
</includeonly>
<noinclude>
<!-- Documentation categories/interwiki here -->
[[de:Vorlage:Kreatur/Dokumentation]]
[[fr:Modèle:Entité/doc]]
[[fr:Modèle:Entité/doc]]
[[ja:テンプレート:Entity/doc]]
[[ko:틀:Entity/doc]]
[[nl:Sjabloon:Entiteit/doc]]
[[ru:Шаблон:Сущность/док]]
[[pt:Predefinição:Entidade/doc]]
[[uk:Шаблон:Сутність/док]]
</noinclude>
</noinclude>
<templatedata>
{
"params": {
"title": {
"aliases": [
"name"
],
"label": "Name",
"description": "Name of the entity, if different from the page name.",
"type": "string"
},
"image": {
"label": "Image",
"description": "Image of the entity, if different from the page name.",
"type": "wiki-file-name"
},
"imagesize": {
"label": "Image size",
"description": "Override the image size.",
"example": "150px"
},
"health": {
"label": "Health",
"description": "The amount of health the entity has for each difficulty.",
"example": "{{Hp|5}}",
"suggested": true
},
"armor": {
"aliases": [
"protection"
],
"label": "Armor",
"description": "Amount of armor points the entity has.",
"example": "{{Armor|2}}",
"suggested": true
},
"behavior": {
"label": "Behavior",
"description": "Behavior(s) of the entity.",
"type": "string",
"suggested": true
},
"classification": {
"label": "Classification",
"description": "Classification(s) of the entity in Java Edition.",
"type": "string",
"suggested": true
},
"family": {
"label": "Family",
"description": "The entity's families in Bedrock Edition.",
"type": "string",
"suggested": true
},
"damage": {
"aliases": [
"dmg"
],
"label": "Damage",
"description": "The amount of damage caused to a player on attack.",
"example": "{{Hp|5}}",
"suggested": true
},
"size": {
"label": "Hitbox size",
"description": "The entity's hitbox height and width."
},
"speed": {
"label": "Movement speed",
"description": "The movement speed attribute of the entity.",
"example": "55",
"type": "number"
},
"knockbackresistance": {
"aliases": [
"kb"
],
"label": "Knockback resistance",
"description": "The knockback resistance attribute of the enitity.",
"example": "0",
"type": "number"
},
"spawn": {
"label": "Spawning",
"description": "Details on how and where the entity spawns, if at all.",
"example": "Plains biome."
},
"equipment": {
"aliases": [
"equip"
],
"label": "Equipment",
"description": "Equipment that may be dropped, if at all.",
"example": "Diamond hoe"
},
"usableitems": {
"label": "Items",
"description": "Items that can be used on the entity."
},
"networkid": {
"aliases": [
"packet"
],
"label": "Network traffic ID",
"description": "The ID of the entity found in network traffic, if different from the internal ID.",
"example": "42",
"type": "number"
},
"rarity": {
"label": "Entity rarity",
"description": "The rarity of the entity in Minecraft Earth",
"example": "rare",
"type": "string"
},
"notes": {
"label": "Additional notes",
"type": "string"
},
"addedVersion": {
"aliases": [
"added"
],
"label": "Version added",
"description": "The first version(s) that this entity appeared in the game.",
"example": "15w24a"
},
"addedDate": {
"label": "Date added",
"description": "The date(s) the entity was first added into the game.",
"example": "{{Start date|2016|5|25}}",
"type": "date"
},
"introducedEvent": {
"label": "Event introduced",
"description": "The wikilinked event that introduced this entity, if at all.",
"example": "Minecon Live 2020",
"type": "wiki-page-name"
},
"introducedEventDate": {
"label": "Event introduced date",
"description": "The date of the event that introduced the entity.",
"example": "{{Start date|2020|05|19}}",
"type": "date"
},
"removedVersion": {
"aliases": [
"removed"
],
"label": "Version removed",
"description": "The version the entity was removed",
"example": "1.9"
},
"removedDate": {
"label": "Date removed",
"description": "The date of the version the entity was removed.",
"example": "{{End date|2011|05|19}}",
"type": "date"
}
},
"description": "An infobox for an entity.",
"format": "block",
"paramOrder": [
"title",
"imagesize",
"image",
"addedVersion",
"addedDate",
"introducedEvent",
"introducedEventDate",
"removedVersion",
"removedDate",
"health",
"armor",
"behavior",
        "classification",
        "family",
"damage",
"size",
"speed",
"knockbackresistance",
"spawn",
"equipment",
"usableitems",
"networkid",
        "rarity",
"notes"
]
}
</templatedata>

Latest revision as of 15:39, 25 May 2024

This is the documentation page. It should be transcluded into Template:Infobox entity. See Template:Documentation for more information.

This template provides a uniform design for entities pages.

{{Entity
|title= 
|image=
|imagesize=
|addedVersion=
|addedDate=
|introducedEvent=
|introducedEventDate=
|removedVersion=
|removedDate=
|health=
|armor=
|behavior=
|classification=
|family=
|damage=
|size=
|speed=
|knockbackresistance=
|spawn=
|equipment=
|usableitems=
|networkid=
|rarity=
|notes=
}}
Parameter Function Default value
title Optional value to use a different title instead of the page name {{BASEPAGENAME}}
image Image of the entity {{{title}}}.png if it exists, otherwise No image.svg (linking to the page where to upload the missing image)
imagesize Adjusts the size of the image 150px
imageN Other images for multistate entities None
imageNsize Adjusts the size of the corresponding image 150px
addedVersion The first version(s) this entity was introduced None
addedDate The date(s) the entity was introduced None
introducedEvent The event the entity was introduced None
introducedEventDate The date of the event the entity was introduced None
removedVersion The version the entity was removed None
removedDate The date the entity was removed None
health The mob's health None
armor The mob's natural armor points None
damage The damage hostile mobs cause to the player None
size Hitbox height and width (see http://wiki.vg/Entities#Mobs) None
speed Movement speed attribute None
knockbackresistance Knockback resistance attribute None
spawn Spawn details None
equipment Equipment that may be dropped None
usableitems Items that can be used on the mob None
networkid The ID number used in network traffic (0-255). None
rarity The color of this entity's name. See rarity for more info. None
notes Additional notes None

See also[edit source]

Minecraft
Minecraft Earth
Minecraft Dungeons
Minecraft Legends
Minecraft Story Mode
Other
Meta


de:Vorlage:Kreatur/Dokumentation fr:Modèle:Entité/doc ja:テンプレート:Entity/doc ko:틀:Entity/doc nl:Sjabloon:Entiteit/doc ru:Шаблон:Сущность/док pt:Predefinição:Entidade/doc uk:Шаблон:Сутність/док

An infobox for an entity.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Nametitle name

Name of the entity, if different from the page name.

Stringoptional
Image sizeimagesize

Override the image size.

Example
150px
Unknownoptional
Imageimage

Image of the entity, if different from the page name.

Fileoptional
Version addedaddedVersion added

The first version(s) that this entity appeared in the game.

Example
15w24a
Unknownoptional
Date addedaddedDate

The date(s) the entity was first added into the game.

Example
{{Start date|2016|5|25}}
Dateoptional
Event introducedintroducedEvent

The wikilinked event that introduced this entity, if at all.

Example
Minecon Live 2020
Page nameoptional
Event introduced dateintroducedEventDate

The date of the event that introduced the entity.

Example
{{Start date|2020|05|19}}
Dateoptional
Version removedremovedVersion removed

The version the entity was removed

Example
1.9
Unknownoptional
Date removedremovedDate

The date of the version the entity was removed.

Example
{{End date|2011|05|19}}
Dateoptional
Healthhealth

The amount of health the entity has for each difficulty.

Example
{{Hp|5}}
Unknownsuggested
Armorarmor protection

Amount of armor points the entity has.

Example
{{Armor|2}}
Unknownsuggested
Behaviorbehavior

Behavior(s) of the entity.

Stringsuggested
Classificationclassification

Classification(s) of the entity in Java Edition.

Stringsuggested
Familyfamily

The entity's families in Bedrock Edition.

Stringsuggested
Damagedamage dmg

The amount of damage caused to a player on attack.

Example
{{Hp|5}}
Unknownsuggested
Hitbox sizesize

The entity's hitbox height and width.

Unknownoptional
Movement speedspeed

The movement speed attribute of the entity.

Example
55
Numberoptional
Knockback resistanceknockbackresistance kb

The knockback resistance attribute of the enitity.

Example
0
Numberoptional
Spawningspawn

Details on how and where the entity spawns, if at all.

Example
Plains biome.
Unknownoptional
Equipmentequipment equip

Equipment that may be dropped, if at all.

Example
Diamond hoe
Unknownoptional
Itemsusableitems

Items that can be used on the entity.

Unknownoptional
Network traffic IDnetworkid packet

The ID of the entity found in network traffic, if different from the internal ID.

Example
42
Numberoptional
Entity rarityrarity

The rarity of the entity in Minecraft Earth

Example
rare
Stringoptional
Additional notesnotes

no description

Stringoptional