Difference between revisions of "Template:Entity"

From TerraFirmaCraft Wiki
Jump to: navigation, search
m
 
Line 11: Line 11:
 
{{ #if: {{{damagetype|}}} | {{infobox row|label=[[Damage Type]]|field={{{damagetype}}} }} }}
 
{{ #if: {{{damagetype|}}} | {{infobox row|label=[[Damage Type]]|field={{{damagetype}}} }} }}
 
{{ #if: {{{spawn|}}} | {{infobox row|label=[[Climate|Spawn]]|field={{{spawn}}} }} }}
 
{{ #if: {{{spawn|}}} | {{infobox row|label=[[Climate|Spawn]]|field={{{spawn}}} }} }}
 +
{{ #if: {{{despawn|}}} | {{infobox row|label=[[Can Despawn]]|field={{{despawn}}} }} }}
 
{{ #if: {{{drops|}}} | {{infobox row|label=Drops|field={{{drops}}} }} }}
 
{{ #if: {{{drops|}}} | {{infobox row|label=Drops|field={{{drops}}} }} }}
 
{{ #if: {{{raredrops|}}} | {{infobox row|label=Rare Drops|field={{{raredrops}}} }} }}
 
{{ #if: {{{raredrops|}}} | {{infobox row|label=Rare Drops|field={{{raredrops}}} }} }}

Revision as of 20:55, 6 November 2014


Entity
No image.png

This template provides a uniform design for entities pages.

{{Entity
|title= 
|image=
|imagesize=
|image2= 
|image2size=
|image3=
|image3size=
|health=
|damage=
|damagetype=
|spawn=
|drops=
|raredrops=
|offspring=
}}
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. {{{title}}}.png if it exists, otherwise No image.png (linking to the page where to upload the missing image)
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 None
damage The damage hostile mobs cause to the player None
damagetype The damage type hostile mobs cause to the player None
spawn Spawn details None
drops What the entity drops None
raredrops The rare drops the entity may drop when killed None
offspring The number of offspring the entity gives birth to. None