Template:Infobox entity: Difference between revisions
No edit summary |
gah. i hoppe this works |
||
Line 1: | Line 1: | ||
<includeonly>{{infobox common | <includeonly>{{infobox common | ||
| title = {{ #if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} | | title = {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} | ||
| imagearea = [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{BASEPAGENAME}}.png | {{BASEPAGENAME}}.png | No image.svg}} }}|150px|center]]{{ | | {{#ifeq:{{{base|}}}|Item| | ||
#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage}}} }}.png]]</span></div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{BASEPAGENAME}}.png]]<span class="grid-input">[[File:Grid {{BASEPAGENAME}}.png]]</span></div> }} }} | imagearea = [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{BASEPAGENAME}}.png | {{BASEPAGENAME}}.png | No image.svg}} }}|150px|center]] | ||
{{ #ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage}}} }}.png]]</span></div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{BASEPAGENAME}}.png]]<span class="grid-input">[[File:Grid {{BASEPAGENAME}}.png]]</span></div> }} }} | |||
}}{{ | }}{{ | ||
#ifeq: {{lc: {{{invimage2}}} }} | none | | {{#if: {{{invimage2|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage2}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage2}}} }}.png]]</span></div></div> }} | #ifeq: {{lc: {{{invimage2}}} }} | none | | {{#if: {{{invimage2|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage2}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage2}}} }}.png]]</span></div></div> }} | ||
}}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | </div> }} }} }} | }}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | </div> }} }} }} | ||
|<!-- end Item picture code, begin Block --> | |||
imagearea = [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{BASEPAGENAME}}.png | {{BASEPAGENAME}}.png | No block image.png{{!}}link=File:{{BASEPAGENAME}}.png}} }}|150px|center]]{{ | |||
#if: {{{image2|}}} | <div style="padding-top: 1em">[[File:{{{image2}}}|150px|center]]</div> | |||
}}{{ | |||
#if: {{{image3|}}} | <div style="padding-top: 1em">[[File:{{{image3}}}|150px|center]]</div> | |||
}}{{ | |||
#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="display: table-row"><div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage}}} }}.png]]</span></div></div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="display: table-row"><div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{BASEPAGENAME}}.png]]<span class="grid-input">[[File:Grid {{BASEPAGENAME}}.png]]</span></div></div> }} }} | |||
}}{{ | |||
#ifeq: {{lc: {{{invimage2}}} }} | none | | {{#if: {{{invimage2|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage2}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage2}}} }}.png]]</span></div></div> }} | |||
}}{{ | |||
#ifeq: {{lc: {{{invimage3}}} }} | none | | {{#if: {{{invimage3|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage3}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage3}}} }}.png]]</span></div></div> }} | |||
}}{{ | |||
#ifeq: {{lc: {{{invimage4}}} }} | none | | {{#if: {{{invimage4|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage4}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage4}}} }}.png]]</span></div></div> }} | |||
}}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div></div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | </div></div> }} }} }} | |||
<!--end Block picture code and #if--> | |||
}} | |||
| rows = | | rows = | ||
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }} | {{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }} | ||
{{#ifeq: {{{base|}}} | Item | |||
| | |||
{{infobox row|label=Durability|field={{ #if: {{{durability|}}} | {{{durability}}} | N/A }} }} | {{infobox row|label=Durability|field={{ #if: {{{durability|}}} | {{{durability}}} | N/A }} }} | ||
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? }} }} | {{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? }} }} | ||
{{#if: {{{firstver|}}} | {{infobox row|label=[[Version history|First Appearance]]|field={{{firstver}}} }} }} | {{#if: {{{firstver|}}} | {{infobox row|label=[[Version history|First Appearance]]|field={{{firstver}}} }} }} | ||
{{#if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{dv|{{{data}}} }} }} }}{{#if: {{{multipledata|}}} | {{infobox row|label=[[Data values]]|field={{{multipledata}}} }} }} | {{#if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{dv|{{{data}}} }} }} }}{{#if: {{{multipledata|}}} | {{infobox row|label=[[Data values]]|field={{{multipledata}}} }} }} | ||
{{infobox row|label= | <!-- end Item data fields, begin Block--> | ||
| | |||
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }} | |||
{{ | |||
#switch: {{ lc: {{{type|solid}}} }} | |||
| solid block | solid | block = {{infobox row|label=Requirements|field={{ | |||
#switch: {{ lc: {{{dirt}}} }} | |||
| yes = Sunlight and dirt | |||
| no = None | |||
| sand = Sunlight and sand | |||
| #default = {{ #if: {{{dirt|}}} | {{{dirt}}} | ? }} | |||
}} }} | |||
}} | |||
{{infobox row|label=Physics|field={{ #if: {{{gravity|}}} | {{{gravity}}} | ? }} }} | |||
{{infobox row|label=[[Opacity|Transparency]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? }} }} | |||
{{infobox row|label=[[Light|Luminance]]|field={{ #if: {{{light|}}} | {{{light}}} | ? }} }} | |||
{{infobox row|label=[[Explosion#Blast_Resistance|Blast Resistance]] <sup>[{{fullurl|Template:Blast Resistance Values|action{{=}}edit|text=edit}}]</sup>|field={{ #if: {{{tntres|}}} | {{{tntres}}} | {{Blast Resistance Values | {{PAGENAME}} }} }} }} | |||
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|field={{ | |||
#switch: {{ lc: {{{tool|}}} }} | |||
| pick | pickaxe = [[File:Use-pickaxe.png|32px|link=Pickaxe]] | |||
| spade | shovel = [[File:Use-spade.png|32px|link=Shovel]] | |||
| axe = [[File:Use-axe.png|32px|link=Axe]] | |||
| hoe = [[File:Use-hoe.png|32px|link=Hoe]] | |||
| bucket | pail = [[File:Use-bucket.png|32px|link=Bucket]] | |||
| sword = [[File:Use-sword.png|32px|link=Sword]] | |||
| n/a | none = None | |||
| all | alltools | any | anytool = Any tool | |||
| #default = ? | |||
}}{{ | |||
#if: {{{tool2|}}} | {{ | |||
#switch: {{ lc: {{{tool2}}} }} | |||
| pick | pickaxe = [[File:Use-pickaxe.png|32px|link=Tools#Pickaxe|Pickaxe]] | |||
| spade | shovel = [[File:Use-spade.png|32px|link=Tools#Shovel|Shovel]] | |||
| axe = [[File:Use-axe.png|32px|link=Tools#Axe|Axe]] | |||
| hoe = [[File:Use-hoe.png|32px|link=Tools#Hoe|Hoe]] | |||
}} | |||
}} }} | |||
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | N/A }} }} | |||
{{ | |||
#switch: {{ lc: {{{type|fluid}}} }} | |||
| fluid = | |||
{{infobox row|label=Speed of fluid movement|field={{ #if: {{{fluidspeed|}}} | {{{fluidspeed}}} | ? }} }} | |||
{{infobox row|label=Speed of walking through|field={{ #if: {{{movespeed|}}} | {{{movespeed}}} | ? }} }} | |||
}} | |||
{{#if: {{{firstver|}}} | {{infobox row|label=First Appearance|field={{{firstver}}} }} }} | |||
<!--{{#if: {{{multiplevers|}}} | {{infobox row|label=First Appearances|field={{{multiplevers}}} }} }} | |||
nead confirmation to create a template for this to work--> | |||
{{#if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{dv|{{{data}}} }} }} }}{{#if: {{{multipledata|}}} | {{infobox row|label=[[Data values]]|field={{{multipledata}}} }} }} | |||
<!-- end Block data fields and #if--> | |||
}} | |||
{{infobox row|label=Created Entity ID|field={{ #if: {{{id|}}} | {{{id}}} | ? }} }} | |||
}} | }} | ||
{{#if:{{{type|}}}|[[Category:{{{type}}}{{!}}{{PAGENAME}}]]}} | {{#if:{{{type|}}}|[[Category:{{{type}}}{{!}}{{PAGENAME}}]]}} |
Revision as of 00:48, 28 June 2011
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
- Minecraft
{{Infobox biome}}
{{Infobox block}}
{{Infobox command}}
{{Infobox development phase}}
{{Infobox enchantment}}
{{Infobox effect}}
{{Infobox entity}}
{{Infobox fluid}}
{{Infobox item}}
{{Infobox item entity}}
{{Infobox structure}}
- Minecraft Earth
- Minecraft Dungeons
{{Infobox Dungeons cosmetic}}
{{Infobox Dungeons enchantment}}
{{Infobox Dungeons entity}}
{{Infobox Dungeons item}}
{{Infobox Dungeons mission}}
- Minecraft Legends
{{Infobox Legends biome}}
{{Infobox Legends entity}}
{{Infobox Legends resource}}
{{Infobox Legends mode}}
{{Infobox Legends skin}}
{{Infobox Legends structure}}
- Minecraft Story Mode
{{Infobox episode}}
- Other
{{Infobox album}}
{{Infobox book}}
{{Infobox board game}}
{{Infobox company}}
{{Fallback infobox}}
{{Infobox guide}}
{{Infobox mash-up}}
{{Infobox music}}
{{Infobox person}}
{{Infobox profile}}
{{Infobox program}}
{{Infobox screen effect}}
{{Infobox server}}
{{Infobox skin pack}}
{{Infobox theme}}
{{Infobox version}}
{{Infobox video}}
{{Infobox website}}
{{Infobox world}}
- Meta
{{Infobox}}
{{Infobox row}}
{{Infobox header}}
- Module:Infobox
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:Шаблон:Сутність
An infobox for an entity.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | title name | Name of the entity, if different from the page name. | String | optional |
Image size | imagesize | Override the image size.
| Unknown | optional |
Image | image | Image of the entity, if different from the page name. | File | optional |
Version added | addedVersion added | The first version(s) that this entity appeared in the game.
| Unknown | optional |
Date added | addedDate | The date(s) the entity was first added into the game.
| Date | optional |
Event introduced | introducedEvent | The wikilinked event that introduced this entity, if at all.
| Page name | optional |
Event introduced date | introducedEventDate | The date of the event that introduced the entity.
| Date | optional |
Version removed | removedVersion removed | The version the entity was removed
| Unknown | optional |
Date removed | removedDate | The date of the version the entity was removed.
| Date | optional |
Health | health | The amount of health the entity has for each difficulty.
| Unknown | suggested |
Armor | armor protection | Amount of armor points the entity has.
| Unknown | suggested |
Behavior | behavior | Behavior(s) of the entity. | String | suggested |
Classification | classification | Classification(s) of the entity in Java Edition. | String | suggested |
Family | family | The entity's families in Bedrock Edition. | String | suggested |
Damage | damage dmg | The amount of damage caused to a player on attack.
| Unknown | suggested |
Hitbox size | size | The entity's hitbox height and width. | Unknown | optional |
Movement speed | speed | The movement speed attribute of the entity.
| Number | optional |
Knockback resistance | knockbackresistance kb | The knockback resistance attribute of the enitity.
| Number | optional |
Spawning | spawn | Details on how and where the entity spawns, if at all.
| Unknown | optional |
Equipment | equipment equip | Equipment that may be dropped, if at all.
| Unknown | optional |
Items | usableitems | Items that can be used on the entity. | Unknown | optional |
Network traffic ID | networkid packet | The ID of the entity found in network traffic, if different from the internal ID.
| Number | optional |
Entity rarity | rarity | The rarity of the entity in Minecraft Earth
| String | optional |
Additional notes | notes | no description | String | optional |