Template:Infobox entity/doc: Difference between revisions

added entityid field, distinguished it from id field
replaced template with mobs template + firstver
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
{{Entity}}
{{Entity}}
This template provides a uniform design for items that create an in-game Entity, but are not mobs. For mobs, use [[Template:Mob]] instead.
This template provides a uniform design for entities pages.
<pre width="30px">
<pre width="30px">
{{Entity
{{Entity
|base=
|title=  
|title=
|image=
|image=
|invimage=
|imagesize=
|invimage2=
|image2=  
|type=
|image2size=
|durability=
|image3=
|stackable=
|image3size=
|data=
|health=
|damage=
|spawn=
|firstver=
|firstver=
|id=
|id=
|entityid=
|entityid=
|drops=
}}</pre>
}}</pre>
Please note that if the item has multiple data values, use <code><nowiki>|multipledata=</nowiki></code> instead. See below:


{| class=grid style="background-color: transparent;"
{| class=grid style="background-color: transparent;"
! Parameter
! Parameter
! Function
! Function
! Default/Example value
! Default value
|-
| <code>title</code> || Optional value to use a different title instead of the page name || <code><nowiki>{{BASEPAGENAME}}</nowiki></code>
|-
|-
| <code>base</code> || Selects whether to base template off of Block or Item. || Item
| <code>image</code> || Image of the mob (should be approx. 150x150px) Can use '''None''' to force no image. || <code><nowiki>{{BASEPAGENAME}}.png</nowiki></code> if it exists, otherwise [[:File:No image.svg|No image.svg]]
|-
|-
| <code>title</code> || Optional value to use a different name instead of the page name || <code><nowiki>{{BASEPAGENAME}}</nowiki></code>
| <code>imagesize</code> || Adjusts the size of the image || 200px
|-
|-
| <code>image</code> || Image of the block (should be approx. 150x150px) || <code><nowiki>{{BASEPAGENAME}}.png</nowiki></code> if it exists, otherwise [[:File:No image.svg|No image.svg]]
| <code>image2</code> || Second image for two-state mobs (also approx. 200x200px) || ''None''
|-
|-
| <code>invimage</code> || Image for object in inventory. Can use '''None''' to force no invimage.  Uses styling and images from [[Template:Grid/Available images]] || <code><nowiki>Grid {{BASEPAGENAME}}.png</nowiki></code> if it exists, otherwise ''None''
| <code>image2size</code> || Adjusts the size of the secondary image || 200px
|-
|-
| <code>invimage2</code> || Second image for two-state objects in inventory. Uses styling and images from [[Template:Grid/Available images]] || ''None''
| <code>image3</code> || Third image for three-state mobs (also approx. 200x200px) || ''None''
|-
|-
| <code>type</code> || Type (Weapon, Ranged Weapon, Craftable Item, Tool, etc. ) || ?
| <code>image3size</code> || Adjusts the size of the third image || 200px
|-
|-
| <code>durability</code> || How durable the item is || N/A
| <code>health</code> || The mob's health || ?
|-
|-
| <code>stackable</code> || Stackable || ?
| <code>damage</code> || The damage hostile mobs cause to the player || ''None''
|-
|-
| <code>data</code> || Single decimal data value || ''None''
| <code>spawn</code> || Spawn details || ?
|-
|-
| <code>multipledata</code> || Multiple decimal data values, use {{tl|dv}} || ''None''
| <code>score</code> || The score the mob gives on being killed in [[Survival Test]] || ''None''
|-
|-
| <code>firstver</code> || First version that it was seen in (eg. Alpha 1.0.17, classic 0.0.23a).  || ''None''
| <code>firstver</code> || First version that it was seen in (eg. Alpha 1.0.17, classic 0.0.23a).  || ''None''
|-
|-
| <code>id</code> || Entity's ID number as seen in network traffic || ?
| <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''
|-
|-
| <code>entityid</code> || Entity's EntityID as seen in saved games || ?
| <code>drops</code> || What the mob drops || ''None''
|}
|}