Template:Entity infobox/doc: Difference between revisions
From Vintage Story Wiki
No edit summary |
(Marked this version for translation) |
||
Line 2: | Line 2: | ||
{{Entity infobox | {{Entity infobox | ||
|name=<translate>Surface drifter</translate> | |name=<translate><!--T:12--> Surface drifter</translate> | ||
|subtitle=<translate>Surface monster</translate> | |subtitle=<translate><!--T:13--> Surface monster</translate> | ||
|image=Normal_Drifter | |image=Normal_Drifter | ||
|align=right | |align=right | ||
|type={{ll|Humanoid|<translate>Humanoid</translate>}} | |type={{ll|Humanoid|<translate><!--T:14--> Humanoid</translate>}} | ||
|behavior={{ll|:Category:Hostile creatures|<translate>Hostile</translate>}} | |behavior={{ll|:Category:Hostile creatures|<translate><!--T:15--> Hostile</translate>}} | ||
|health=12 | |health=12 | ||
|attack=2.5 | |attack=2.5 | ||
|tier=0 | |tier=0 | ||
|light=7 | |light=7 | ||
|blocks=<translate>Air, Tall grass</translate> | |blocks=<translate><!--T:16--> Air, Tall grass</translate> | ||
|groupsize=1 ± 3 | |groupsize=1 ± 3 | ||
|ylevel=0.85 <translate>to</translate> 2 | |ylevel=0.85 <translate><!--T:17--> to</translate> 2 | ||
|drops={{IRow | {{Icon link|Grid_Flax_fibers.png|Special:MyLanguage/Flax fibers|Flax fibers}} | 20%}} | |drops={{IRow | {{Icon link|Grid_Flax_fibers.png|Special:MyLanguage/Flax fibers|Flax fibers}} | 20%}} | ||
{{IRow | {{Icon link|gear-temporal.png|Special:MyLanguage/Temporal gear|Temporal gear}} | 2.66% | 1}} | {{IRow | {{Icon link|gear-temporal.png|Special:MyLanguage/Temporal gear|Temporal gear}} | 2.66% | 1}} | ||
Line 21: | Line 21: | ||
<translate> | <translate> | ||
<!--T:18--> | |||
This template creates an infobox for '''entities''' in the game. | This template creates an infobox for '''entities''' in the game. | ||
<!--T:19--> | |||
It uses the templates {{tl|Infobox}}, {{tl|Infobox row}} (also named {{tl|IRow}}) and {{tl|Spawn}}. | It uses the templates {{tl|Infobox}}, {{tl|Infobox row}} (also named {{tl|IRow}}) and {{tl|Spawn}}. | ||
</translate> | </translate> | ||
Line 28: | Line 30: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! <translate><!--T:9--> Parameter</translate> !! <translate>Description</translate> !! <translate>Type</translate> !! <translate><!--T:10--> Required or Optional, default if applicable</translate> !! <translate><!--T:11--> Example</translate> | ! <translate><!--T:9--> Parameter</translate> !! <translate><!--T:20--> Description</translate> !! <translate><!--T:21--> Type</translate> !! <translate><!--T:10--> Required or Optional, default if applicable</translate> !! <translate><!--T:11--> Example</translate> | ||
|- | |- | ||
| ''name'' || <translate>The name of the entity</translate> || <translate>String</translate> || <translate>Required</translate> || <translate>Surface drifter</translate> | | ''name'' || <translate><!--T:22--> The name of the entity</translate> || <translate><!--T:23--> String</translate> || <translate><!--T:24--> Required</translate> || <translate><!--T:25--> Surface drifter</translate> | ||
|- | |- | ||
| ''subtitle'' || <translate>A smaller text shown below the name</translate> || <translate>String</translate> || <translate>Optional</translate> || <translate>Surface monster</translate> | | ''subtitle'' || <translate><!--T:26--> A smaller text shown below the name</translate> || <translate><!--T:27--> String</translate> || <translate><!--T:28--> Optional</translate> || <translate><!--T:29--> Surface monster</translate> | ||
|- | |- | ||
| ''image'' || <translate>An image filename to be displayed beneath the name<br>(no "File:" prefix or ".png" suffix required)</translate> || <translate>file name</translate> || <translate>Required</translate> || Normal_Drifter | | ''image'' || <translate><!--T:30--> An image filename to be displayed beneath the name<br>(no "File:" prefix or ".png" suffix required)</translate> || <translate><!--T:31--> file name</translate> || <translate><!--T:32--> Required</translate> || Normal_Drifter | ||
|- | |- | ||
| ''align'' || <translate>Override to align this box differently</translate> || <translate>left, right or center</translate> ||<translate>Optional</translate> || <translate>right</translate> | | ''align'' || <translate><!--T:33--> Override to align this box differently</translate> || <translate><!--T:34--> left, right or center</translate> ||<translate><!--T:35--> Optional</translate> || <translate><!--T:36--> right</translate> | ||
|- | |- | ||
| ''type'' || <translate>The entity's type<br>(can be a link to another wiki page)</translate> || <translate>Wikitext</translate> ||<translate>Optional</translate> || <translate>Humanoid</translate> | | ''type'' || <translate><!--T:37--> The entity's type<br>(can be a link to another wiki page)</translate> || <translate><!--T:38--> Wikitext</translate> ||<translate><!--T:39--> Optional</translate> || <translate><!--T:40--> Humanoid</translate> | ||
|- | |- | ||
| ''behavior'' || <translate>The entity's behavior towards players<br>(can be a link to another wiki page)</translate> || <translate>Wikitext</translate> || <translate>Optional</translate> || 12 | | ''behavior'' || <translate><!--T:41--> The entity's behavior towards players<br>(can be a link to another wiki page)</translate> || <translate><!--T:42--> Wikitext</translate> || <translate><!--T:43--> Optional</translate> || 12 | ||
|- | |- | ||
| ''health'' || <translate>The entity's life points</translate> || Number || <translate>Optional</translate> || 12 | | ''health'' || <translate><!--T:44--> The entity's life points</translate> || Number || <translate><!--T:45--> Optional</translate> || 12 | ||
|- | |- | ||
| ''attack'' || The entity's attack power (HP) || Number || <translate>Optional</translate> || 2.5 | | ''attack'' || The entity's attack power (HP) || Number || <translate><!--T:46--> Optional</translate> || 2.5 | ||
|- | |- | ||
| ''tier'' || The tier of the entity's damages || Number || <translate>Required if ''attack'' is defined</translate> || 0 | | ''tier'' || The tier of the entity's damages || Number || <translate><!--T:47--> Required if ''attack'' is defined</translate> || 0 | ||
|- | |- | ||
| ''light'' || The max light level required for the entity to spawn || number || <translate>Optional</translate> || 7 | | ''light'' || The max light level required for the entity to spawn || number || <translate><!--T:48--> Optional</translate> || 7 | ||
|- | |- | ||
| ''blocks'' || The type of blocks where the entity will spawn on || number || <translate>Optional</translate> || Tall grass | | ''blocks'' || The type of blocks where the entity will spawn on || number || <translate><!--T:49--> Optional</translate> || Tall grass | ||
|- | |- | ||
| ''groupsize'' || How many entities are spawned at the same time || string || <translate>Optional</translate> || 1 ± 3 | | ''groupsize'' || How many entities are spawned at the same time || string || <translate><!--T:50--> Optional</translate> || 1 ± 3 | ||
|- | |- | ||
| ''ylevel'' || The altitude where the entity will spawn (0=the mantle, 1=the highest in the sky) || string || <translate>Optional</translate> || 0.85 <translate>to</translate> 2 | | ''ylevel'' || The altitude where the entity will spawn (0=the mantle, 1=the highest in the sky) || string || <translate><!--T:51--> Optional</translate> || 0.85 <translate><!--T:52--> to</translate> 2 | ||
|- | |- | ||
| ''Drops'' || List of items droped by the dead entity when it is harvested || code || <translate>Optional</translate> || <translate>See</translate> [[Template:IRow]] | | ''Drops'' || List of items droped by the dead entity when it is harvested || code || <translate><!--T:53--> Optional</translate> || <translate><!--T:54--> See</translate> [[Template:IRow]] | ||
|} | |} | ||
[[Category:Infoboxes]] | [[Category:Infoboxes]] |
Revision as of 12:22, 13 August 2023
Surface drifter | |
---|---|
"Surface monster" | |
Type | Humanoid |
Behavior | Hostile |
Health | 12 |
Base attack | 2.5 Tier: 0 |
Spawn | |
Drops | |
Flax fibers | 20% |
Temporal gear | 2.66% |
Rusty gear | 1% |
This template creates an infobox for entities in the game.
It uses the templates {{Infobox}}
, {{Infobox row}}
(also named {{IRow}}
) and {{Spawn}}
.
Parameter | Description | Type | Required or Optional, default if applicable | Example |
---|---|---|---|---|
name | The name of the entity | String | Required | Surface drifter |
subtitle | A smaller text shown below the name | String | Optional | Surface monster |
image | An image filename to be displayed beneath the name (no "File:" prefix or ".png" suffix required) |
file name | Required | Normal_Drifter |
align | Override to align this box differently | left, right or center | Optional | right |
type | The entity's type (can be a link to another wiki page) |
Wikitext | Optional | Humanoid |
behavior | The entity's behavior towards players (can be a link to another wiki page) |
Wikitext | Optional | 12 |
health | The entity's life points | Number | Optional | 12 |
attack | The entity's attack power (HP) | Number | Optional | 2.5 |
tier | The tier of the entity's damages | Number | Required if attack is defined | 0 |
light | The max light level required for the entity to spawn | number | Optional | 7 |
blocks | The type of blocks where the entity will spawn on | number | Optional | Tall grass |
groupsize | How many entities are spawned at the same time | string | Optional | 1 ± 3 |
ylevel | The altitude where the entity will spawn (0=the mantle, 1=the highest in the sky) | string | Optional | 0.85 to 2 |
Drops | List of items droped by the dead entity when it is harvested | code | Optional | See Template:IRow |