Template:Infobox entity/doc: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
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''
|}
|}



Revision as of 16:43, 19 September 2011

Template:Doc/start Template:Entity This template provides a uniform design for entities pages.

{{Entity
|title= 
|image=
|imagesize=
|image2= 
|image2size=
|image3=
|image3size=
|health=
|damage=
|spawn=
|firstver=
|id=
|entityid=
|drops=

}}
Parameter Function Default value
title Optional value to use a different title instead of the page name {{BASEPAGENAME}}
image Image of the mob (should be approx. 150x150px) Can use None to force no image. {{BASEPAGENAME}}.png if it exists, otherwise No image.svg
imagesize Adjusts the size of the image 200px
image2 Second image for two-state mobs (also approx. 200x200px) None
image2size Adjusts the size of the secondary image 200px
image3 Third image for three-state mobs (also approx. 200x200px) None
image3size Adjusts the size of the third image 200px
health The mob's health ?
damage The damage hostile mobs cause to the player None
spawn Spawn details ?
score The score the mob gives on being killed in Survival Test None
firstver First version that it was seen in (eg. Alpha 1.0.17, classic 0.0.23a). None
id The entity's ID number as seen in Minecraft network traffic (0-255) None
entityid The entity's EntityID as seen in saved worlds None
drops What the mob drops None

See also

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

Template:Doc/end