Difference between revisions of "Template:Entity"
From TerraFirmaCraft Plus Wiki
Line 5: | Line 5: | ||
}}{{ | }}{{ | ||
#if: {{{image3|}}} | <div style="padding-top: 1em">[[File:{{{image3}}}|{{ #if: {{{image3size|}}} | {{{image3size}}} | 150px }}|center]]</div> | #if: {{{image3|}}} | <div style="padding-top: 1em">[[File:{{{image3}}}|{{ #if: {{{image3size|}}} | {{{image3size}}} | 150px }}|center]]</div> | ||
+ | }}{{ | ||
+ | #if: {{{image4|}}} | <div style="padding-top: 1em">[[File:{{{image4}}}|{{ #if: {{{image4size|}}} | {{{image4size}}} | 150px }}|center]]</div> | ||
+ | }}{{ | ||
+ | #if: {{{image5|}}} | <div style="padding-top: 1em">[[File:{{{image5}}}|{{ #if: {{{image5size|}}} | {{{image5size}}} | 150px }}|center]]</div> | ||
}}{{#if:{{{caption|}}} | <div style="text-align:center; font-size:0.9em;">{{{caption}}}</div> }} | }}{{#if:{{{caption|}}} | <div style="text-align:center; font-size:0.9em;">{{{caption}}}</div> }} | ||
| rows = | | rows = |
Latest revision as of 13:21, 23 July 2020
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 |