Template:AnimalTabs: Difference between revisions

From Vintage Story Wiki
(runspeed + swimspeed use Name parameter b/c no sex-based diff in code atm. moving docs to doc subpage.)
(Undo revision 121056 by Veerserif (talk) // need to unbreak translation w/ Documentation module)
Tag: Undo
Line 93: Line 93:
|-
|-
{{#if: {{{RunSpeed|}}} | {{#!:
{{#if: {{{RunSpeed|}}} | {{#!:
|'''<translate><!--T:61--> Run Speed</translate> ({{{Name}}})'''
|'''<translate><!--T:61--> Run Speed</translate> ({{{Title}}})'''
|{{{RunSpeed}}}  
|{{{RunSpeed}}}  
}} }}
}} }}
|-
|-
{{#if: {{{SwimSpeed|}}} | {{#!:
{{#if: {{{SwimSpeed|}}} | {{#!:
|'''<translate><!--T:62--> Swim Speed</translate> ({{{Name}}})'''
|'''<translate><!--T:62--> Swim Speed</translate> ({{{Title}}})'''
|{{{SwimSpeed}}}  
|{{{SwimSpeed}}}  
}} }}
}} }}
Line 125: Line 125:
|bgcolor="#000000" colspan="2" class="Bloba" style="text-align:center; font-size:13.5px; border-bottom-right-radius:7px; border-bottom-left-radius:7px;"|[[Animals|<font color="white">'''<translate><!--T:21--> Animals</translate>'''</font>]]
|bgcolor="#000000" colspan="2" class="Bloba" style="text-align:center; font-size:13.5px; border-bottom-right-radius:7px; border-bottom-left-radius:7px;"|[[Animals|<font color="white">'''<translate><!--T:21--> Animals</translate>'''</font>]]
|}{{#if:{{{NoBreak|}}}||{{-}} }}
|}{{#if:{{{NoBreak|}}}||{{-}} }}
[[Category:Creatures{{#translation:}}]]</includeonly><noinclude>
[[Category:Creatures{{#translation:}}]]</includeonly>
{{doc}}
<noinclude>
{{AnimalTabs
|Name=Chicken
 
|Title= Rooster
|Title2= Hen
|Title3= Chick
 
|image= File:Chicken(Male).png
|image2 = File:Chicken(Female).png
|image3 = File:Chicken(Baby).png
 
|HealthMF= 3
|HealthB= 1.5
 
|BaseAttackB=0.25
|BaseAttackMF=0.25
 
|SeekRangeMF=20
|SeekRangeB=6
|SwimSpeed=100
|RunSpeed=200
|GrowthTime= 168
 
|DropCode1=[[Poultry]]
|DropAvg1=1.25
|DropVar1=0.25
|DropCode2=[[Feathers]]
|DropAvg2=12
|DropVar2=4
|DropCode3=[[Bone]]
|DropAvg3=0.5
|FloatRight=yes
|NoBreak=yes
}}
 
<translate><!--T:22--> Template for displaying an '''animal''''s male, female, and baby form in one chart.</translate>
 
:{| class="wikitable" style="width: 50%;"
|-
! width="1%" | <translate><!--T:23--> Section</translate>
! width="3%" | <translate><!--T:24--> Parameter</translate>
! width="10%" | <translate><!--T:25--> Description</translate>
|-
! <translate><!--T:26--> Image</translate>
| style="text-align:center;"| <nowiki>File:Chicken(Male).png</nowiki>
| <translate><!--T:27--> Image filename with "File:" prefix and ".png" suffix</translate>
|-
! rowspan="4" | <translate><!--T:28--> Health</translate>
| style="text-align:center;"| <translate><!--T:29--> Health Male</translate>
| rowspan="2" | <translate><!--T:30--> When the health of the male and female entity are different values, they must be presented in separate rows.</translate>
|-
| style="text-align:center;"| <translate><!--T:31--> Health Female</translate>
|-
| style="text-align:center;"| <translate><!--T:32--> Health Male/Female</translate>
| <translate><!--T:33--> When the health of both the male and female entity are the same, they must be presented in one single row.</translate>
|-
| style="text-align:center;"| <translate><!--T:34--> Health Baby</translate>
| <translate><!--T:35--> The health of the baby entity.</translate>
|-
! rowspan="5" | <translate><!--T:36--> Attack</translate>
| style="text-align:center;"| <translate><!--T:37--> Attack Male</translate>
| <translate><!--T:38--> Damage produced by the base attack of the male entity.</translate>
|-
| style="text-align:center;"| <translate><!--T:39--> Attack Female</translate>
| <translate><!--T:40--> Damage produced by the base attack of the female entity.</translate>
|-
| style="text-align:center;"| <translate><!--T:41--> Attack Male/Female</translate>
| <translate><!--T:42--> When the damage of both the male and female entity are the same, they must be presenten in one single row.</translate>
|-
| style="text-align:center;"| <translate><!--T:43--> Attack Female/Baby</translate>
| <translate><!--T:44--> When the damage of both the female and baby entity are the same, they must be presenten in one single row.</translate>
|-
| style="text-align:center;"| <translate><!--T:45--> Attack Baby</translate>
| <translate><!--T:46--> Damage produced by the base attack of the baby entity.</translate>
|-
! rowspan="4" | <translate><!--T:47--> Characteristics</translate>
| style="text-align:center;"| <translate><!--T:59--> Alert range</translate>
| <translate><!--T:60--> Their range of vigilance for seeking a prey or for fleeing a predator.</translate>
|-
| style="text-align:center;"| <translate><!--T:48--> Satiety to Mate</translate>
| <translate><!--T:49--> Portions needed to be eaten from a trough before the entity is ready to mate.</translate>
|-
| style="text-align:center;"| <translate><!--T:50--> Gestation Time</translate>
| <translate><!--T:51--> Time before the pregnant entity gives birth.</translate>
|-
| style="text-align:center;"| <translate><!--T:52--> Incubation Time</translate>
| <translate><!--T:53--> Time before the eggs hatch.</translate>
|-
| style="text-align:center;"| <translate><!--T:54--> Growth Time</translate>
| <translate><!--T:55--> Time before the baby entity becomes a full adult.</translate>
|-
! <translate><!--T:56--> Drops</translate>
| style="text-align:center;"| <translate><!--T:57--> Drops</translate>
| <translate><!--T:58--> Items the entity drops when looted.</translate>
|}
[[Category:Infoboxes]]
</noinclude>
</noinclude>

Revision as of 03:43, 13 August 2023

Chicken
Chicken(Male).png
Chicken(Female).png
Chicken(Baby).png
Health
Health (Rooster/Hen) 3
Health (Chick) 1.5
Attack
Base Attack (Rooster/Hen) 0.25
Base Attack (Chick) 0.25
Behavior
Alert Range (m) (Rooster/Hen) 20
Alert Range (m) (Chick) 6
Multiply
Growth Time (days) 168
Drops
Poultry 1 - 1.5*
Feathers 8 - 16*
Bone 0.5*
Animals


Template for displaying an animal's male, female, and baby form in one chart.

Section Parameter Description
Image File:Chicken(Male).png Image filename with "File:" prefix and ".png" suffix
Health Health Male When the health of the male and female entity are different values, they must be presented in separate rows.
Health Female
Health Male/Female When the health of both the male and female entity are the same, they must be presented in one single row.
Health Baby The health of the baby entity.
Attack Attack Male Damage produced by the base attack of the male entity.
Attack Female Damage produced by the base attack of the female entity.
Attack Male/Female When the damage of both the male and female entity are the same, they must be presenten in one single row.
Attack Female/Baby When the damage of both the female and baby entity are the same, they must be presenten in one single row.
Attack Baby Damage produced by the base attack of the baby entity.
Characteristics Alert range Their range of vigilance for seeking a prey or for fleeing a predator.
Satiety to Mate Portions needed to be eaten from a trough before the entity is ready to mate.
Gestation Time Time before the pregnant entity gives birth.
Incubation Time Time before the eggs hatch.
Growth Time Time before the baby entity becomes a full adult.
Drops Drops Items the entity drops when looted.