Difference between revisions of "Template:Infobox pawn"

From RimWorld Wiki
Jump to navigation Jump to search
(Undo revision 65679 by Pangaea (talk) That went horrifically badly - start over)
Tag: Undo
(Let's try here instead.......)
Line 1: Line 1:
<noinclude><!-- Cargo declare section  -->
+
<!-- This line must remain for now
 +
 
 +
--><noinclude><!-- Cargo declare section  -->
 
{{#cargo_declare:_table = Animal
 
{{#cargo_declare:_table = Animal
| name         = Page
+
| name               = String
| image       = File
+
| image             = File
| description = Wikitext
+
| description       = Text    <!-- Plain, from XML files -->
| type         = Page   <!-- MAY be a protected word/phrase -->
+
| description_markup = Wikitext   <!-- With markup, for use in the article intro -->
| subtype     = Page
+
| type               = Page   <!-- Animal? Mech? -->
| bodysize     = Float
+
| subtype           = Page   <!-- Domesticated? Wild? -->
| healthscale  = Float
+
<!--  General  -->
| movespeed   = Float
+
| basebodysize      = Float
<!--  Attack   -->
+
| basehealthscale    = Float
| attack1_dmg = Integer
+
| basehungerrate     = Float
| attack1_type = Wikitext
+
| comfytemp_min      = Integer
| attack1_part = Wikitext
+
| comfytemp_max      = Integer
| attack1_cool = Integer
+
| diet              = Page
| attack2_dmg  = Integer
+
| flammability      = Float
| attack2_type = Wikitext
+
| has_gender        = Boolean
| attack2_part = Wikitext
+
| marketvalue        = Integer
| attack2_cool = Integer
+
| movespeed         = Float
| attack3_dmg  = Integer
+
<!--  Combat   -->
| attack3_type = Wikitext
+
| armorrating_blunt = Float
| attack3_part = Wikitext
+
| armorrating_heat  = Float
| attack3_cool = Integer
+
| armorrating_sharp  = Float
| attack4_dmg  = Integer
+
| combatpower        = Integer
| attack4_type = Wikitext
+
<!-- Life phases -->
| attack4_part = Wikitext
+
| life_expectancy    = Integer
| attack4_cool = Integer
+
| mass_adult        = Float
| attack4_chance = Float
+
| mass_baby          = Float
 +
| mass_juvenile      = Float
 +
| maturity_age      = Float
 +
| minage_adult      = Float
 +
| minage_baby        = Float
 +
| minage_juvenile    = Float
 +
| gestation_period  = Integer
 +
| offspring_low      = Integer
 +
| offspring_high    = Integer
 +
<!--  Taming/hunting  -->
 +
| handleskill        = Integer
 +
| manhunter_damage  = Float
 +
| manhunter_tamefail = Float
 +
| nameontamechance  = Float
 +
| nuzzlehours        = Integer
 +
| petness            = Float
 +
| predator          = Boolean
 +
| maxpreybodysize    = Float
 +
| trainability      = String    <!-- or Page? -->
 +
| train_haul        = Boolean
 +
| train_obedience    = Boolean
 +
| train_release      = Boolean
 +
| train_rescue      = Boolean
 +
| wildness          = Float
 
<!--  Product  -->
 
<!--  Product  -->
| leathername  = Page
+
| egg_amountlow      = Integer
| woolname     = Page
+
| egg_amounthigh     = Integer
| woolamount  = Integer
+
| egg_type          = Integer
| sheartime    = Integer
+
| egg_time          = Integer
| milkamount  = Integer
+
| leather_amount    = Integer
| milktime    = Integer
+
| leather_type      = Page
<!--  Training  -->
+
| meat_amount        = Integer
| manhunterchance = Float
+
| meat_type          = Page
| hungerrate  = Float
+
| milk_amount        = Integer
| diet        = Wikitext    <!-- or Page? -->
+
| milk_time          = Integer
| trainable    = Wikitext    <!-- or Page? -->
+
| shear_time        = Integer
| wildness    = Float
+
| wool_amount        = Integer
| handleskill  = Integer
+
| wool_type          = Page
 
<!--  Other      -->
 
<!--  Other      -->
| gestation    = Integer
+
| ecosystemweight    = Float
| lifespan      = Integer
+
| recipes_operation  = List (,) of String
| offspring    = Integer
+
| tradetags         = List (,) of String
| massadult    = Integer
+
<!--| butcherproducts?? (mechs) = List (,) of String -->
| maturityage  = Float
 
| marketvalue  = Integer
 
| livesin_aridshrubland  = Boolean
 
| livesin_borealforest    = Boolean
 
| livesin_icesheet        = Boolean
 
| livesin_seaice         = Boolean
 
| livesin_temperateforest = Boolean
 
| livesin_tundra          = Boolean
 
 
}}
 
}}
 
</noinclude><!--
 
</noinclude><!--
  
 
--><includeonly><!-- Cargo store section  --><!--
 
--><includeonly><!-- Cargo store section  --><!--
-->{{#ifeq: {{NAMESPACENUMBER}} | 0 |
+
 
{{#cargo_store:_table = Bestiary_poe1
+
{{#ifeq: {{NAMESPACENUMBER}} | 0 | disable for now for testing purposes -->
| name         = {{{name|}}}
+
{{#cargo_store:_table = Animal
| image       = {{{image|}}}
+
| name               = {{{name|}}}
| description = {{{description|}}}
+
| image             = {{{image|}}}
| type         = {{{type|}}}
+
| description       = {{{description|}}}
| subtype     = {{{subtype|}}}
+
| description_markup = {{{description_markup|}}}
| bodysize     = {{{bodysize|}}}
+
| type               = {{{type|}}}
| healthscale  = {{{healthscale|}}}
+
| subtype           = {{{subtype|}}}
| movespeed   = {{{movespeed|}}}
+
<!--  General  -->
<!--  Attack   -->
+
| basebodysize      = {{{basebodysize|}}}
| attack1_dmg = {{{attack1_dmg|}}}
+
| basehealthscale    = {{{basehealthscale|}}}
| attack1_type = {{{attack1_type|}}}
+
| basehungerrate     = {{{basehungerrate|}}}
| attack1_part = {{{attack1_part|}}}
+
| comfytemp_min      = {{{comfytemp_min|}}}
| attack1_cool = {{{attack1_cool|}}}
+
| comfytemp_max      = {{{comfytemp_max|}}}
| attack2_dmg  = {{{attack2_dmg|}}}
+
| diet              = {{{diet|}}}
| attack2_type = {{{attack2_type|}}}
+
| flammability      = {{{flammability|}}}
| attack2_part = {{{attack2_part|}}}
+
| has_gender        = {{{has_gender|}}}
| attack2_cool = {{{attack2_cool|}}}
+
| marketvalue        = {{{marketvalue|}}}
| attack3_dmg  = {{{attack3_dmg|}}}
+
| movespeed         = {{{movespeed|}}}
| attack3_type = {{{attack3_type|}}}
+
<!--  Combat   -->
| attack3_part = {{{attack3_part|}}}
+
| armorrating_blunt = {{{armorrating_blunt|}}}
| attack3_cool = {{{attack3_cool|}}}
+
| armorrating_heat  = {{{armorrating_heat|}}}
| attack4_dmg  = {{{attack4_dmg|}}}
+
| armorrating_sharp  = {{{armorrating_sharp|}}}
| attack4_type = {{{attack4_type|}}}
+
| combatpower        = {{{combatpower|}}}
| attack4_part = {{{attack4_part|}}}
+
<!-- Life phases -->
| attack4_cool = {{{attack4_cool|}}}
+
| life_expectancy    = {{{life_expectancy|}}}
| attack4_chance = {{{attack4_chance|}}}
+
| mass_adult        = {{{mass_adult|}}}
 +
| mass_baby          = {{{mass_baby|}}}
 +
| mass_juvenile      = {{{mass_juvenile|}}}
 +
| maturity_age      = {{{maturity_age|}}}
 +
| minage_adult      = {{{minage_adult|}}}
 +
| minage_baby        = {{{minage_baby|}}}
 +
| minage_juvenile    = {{{minage_juvenile|}}}
 +
| gestation_period  = {{{gestation_period|}}}
 +
| offspring_low      = {{{offspring_low|}}}
 +
| offspring_high    = {{{offspring_high|}}}
 +
<!--  Taming/hunting  -->
 +
| handleskill        = {{{handleskill|}}}
 +
| manhunter_damage  = {{{manhunter_damage|}}}
 +
| manhunter_tamefail = {{{manhunter_tamefail|}}}
 +
| nameontamechance  = {{{nameontamechance|}}}
 +
| nuzzlehours        = {{{nuzzlehours|}}}
 +
| petness            = {{{petness|}}}
 +
| predator          = {{{predator|}}}
 +
| maxpreybodysize    = {{{maxpreybodysize|}}}
 +
| trainability      = {{{trainability|}}}
 +
| train_haul        = {{{train_haul|}}}
 +
| train_obedience    = {{{train_obedience|}}}
 +
| train_release      = {{{train_release|}}}
 +
| train_rescue      = {{{train_rescue|}}}
 +
| wildness          = {{{wildness|}}}
 
<!--  Product  -->
 
<!--  Product  -->
| leathername  = {{{leathername|}}}
+
| egg_amountlow      = {{{egg_amountlow|}}}
| woolname     = {{{woolname|}}}
+
| egg_amounthigh     = {{{egg_amounthigh|}}}
| woolamount  = {{{woolamount|}}}
+
| egg_type          = {{{egg_type|}}}
| sheartime    = {{{sheartime|}}}
+
| egg_time          = {{{egg_time|}}}
| milkamount  = {{{milkamount|}}}
+
| leather_amount    = {{{leather_amount|}}}
| milktime    = {{{milktime|}}}
+
| leather_type      = {{{leather_type|}}}
<!--  Training  -->
+
| meat_amount        = {{{meat_amount|}}}
| manhunterchance = {{{manhunterchance|}}}
+
| meat_type          = {{{meat_type|}}}
| hungerrate  = {{{hungerrate|}}}
+
| milk_amount        = {{{milk_amount|}}}
| diet        = {{{diet|}}}
+
| milk_time          = {{{milk_time|}}}
| trainable    = {{{trainable|}}}
+
| shear_time        = {{{shear_time|}}}
| wildness    = {{{wildness|}}}
+
| wool_amount        = {{{wool_amount|}}}
| handleskill  = {{{handleskill|}}}
+
| wool_type          = {{{wool_type|}}}
 
<!--  Other      -->
 
<!--  Other      -->
| gestation    = {{{gestation|}}}
+
| ecosystemweight    = {{{ecosystemweight|}}}
| lifespan      = {{{lifespan|}}}
+
| recipes_operation  = {{{recipes_operation|}}}
| offspring    = {{{offspring|}}}
+
| tradetags          = {{{tradetags|}}}
| massadult    = {{{massadult|}}}
+
<!--| butcherproducts?? (mechs) = List (,) of String -->
| maturityage  = {{{maturityage|}}}
+
}}<!-- }} don't forget me! --><!--
| marketvalue  = {{{marketvalue|}}}
+
    === #vardefine to use variables outside the infobox  ===
| livesin_aridshrubland  = {{{livesin_aridshrubland|}}}
+
   
| livesin_borealforest    = {{{livesin_borealforest|}}}
+
-->{{#vardefine:description_markup|{{{description_markup}}} }}<!--
| livesin_icesheet        = {{{livesin_icesheet|}}}
 
| livesin_seaice          = {{{livesin_seaice|}}}
 
| livesin_temperateforest = {{{livesin_temperateforest|}}}
 
| livesin_tundra          = {{{livesin_tundra|}}}
 
}} }}
 
<!-- {{#vardefine:family|{{{family}}} }}   ...if needed..... -->''WORK IN PROCESS...''<!--
 
 
-->{| class="infoboxtable"
 
-->{| class="infoboxtable"
! colspan="4" class="infoboxname1" | {{#if: {{{name|}}} | {{{name}}} | {{Pagename nd}} }}
+
! colspan="2" class="infoboxname1" | {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
 +
|-
 +
! colspan="2" | {{#if: {{{image|}}} | [[File:{{{image}}}]] | [[File:Questionmark black.png|link=]]{{#ifeq: {{NAMESPACE}} | 0 | [[Category:Image wanted]]}} }}
 +
|-
 +
| colspan="2" | {{#if: {{{description|}}} | ''{{{description}}}'' }}
 +
|-
 +
{{#if: {{{type|}}} {{{subtype|}}} {{{basebodysize|}}} {{{basehealthscale|}}} {{{basehungerrate|}}} {{{comfytemp_min|}}} {{{comfytemp_max|}}} {{{diet|}}} {{{flammability|}}} {{{has_gender|}}} {{{marketvalue|}}} {{{movespeed|}}}
 +
| {{!}} colspan="2" class="infoboxdescription1" {{!}} General }}
 +
|-
 +
{{#if: {{{type|}}} | {{!}} <div>Type</div> {{!!}} [[{{ucfirst: {{{type}}} }}]] }}
 +
|-
 +
{{#if: {{{subtype|}}} | {{!}} <div>Subtype</div> {{!!}} [[{{ucfirst: {{{subtype}}} }}]] }}
 +
|-
 +
{{#if: {{{basebodysize|}}} | {{!}} <div>Body size</div> {{!!}} {{{basebodysize}}} }}
 +
|-
 +
{{#if: {{{basehealthscale|}}} | {{!}} <div>Health scale</div> {{!!}} {{{basehealthscale}}} }}
 +
|-
 +
{{#if: {{{basehungerrate|}}} | {{!}} <div>Hunger rate</div> {{!!}} {{{basehungerrate}}} }}
 +
|-
 +
{{#if: {{{comfytemp_min|}}} {{{comfytemp_max|}}} | {{!}} <div>Temperature</div> {{!!}} {{{comfytemp_min}}}&deg;C to {{{comfytemp_max}}}&deg;C }}<!-- need more elaborate if-->
 +
|-
 +
{{#if: {{{diet|}}} | {{!}} <div>Diet</div> {{!!}} [[{{ucfirst: {{{diet}}} }}]] }}
 +
|-
 +
{{#if: {{{flammability|}}} | {{!}} <div>Flammability</div> {{!!}} {{{flammability}}} }}
 +
|-
 +
{{#ifeq: {{{has_gender|}}} | no | {{!}} <div>Has gender</div> {{!!}} [[File:Cross.png|20px]] }}
 +
|-
 +
{{#if: {{{marketvalue|}}} | {{!}} <div>Market value</div> {{!!}} {{formatnum:{{{marketvalue}}} }} [[File:silver_c.png|20px]] }}
 +
|-
 +
{{#if: {{{movespeed|}}} | {{!}} <div>Move speed</div> {{!!}} {{{movespeed}}} cells/sec}}
 +
|-
 +
{{#if: {{{combatpower|}}} {{{armorrating_blunt|}}} {{{armorrating_heat|}}} {{{armorrating_sharp|}}}
 +
| {{!}} colspan="2" class="infoboxdescription1" {{!}} Combat }}
 +
|-
 +
{{#if: {{{combatpower|}}} | {{!}} <div>Combat power</div> {{!!}} {{{combatpower}}} }}
 +
|-
 +
{{#if: {{{armorrating_blunt|}}} | {{!}} <div>Armor blunt</div> {{!!}} {{{armorrating_blunt}}}% }}
 +
|-
 +
{{#if: {{{armorrating_heat|}}} | {{!}} <div>Armor heat</div> {{!!}} {{{armorrating_heat}}}% }}
 +
|-
 +
{{#if: {{{armorrating_sharp|}}} | {{!}} <div>Armor sharp</div> {{!!}} {{{armorrating_sharp}}}% }}
 +
|-
 +
{{#if: {{{life_expectancy|}}} {{{minage_baby|}}} {{{mass_baby|}}} {{{minage_juvenile|}}} {{{mass_juvenile|}}} {{{minage_adult|}}} {{{mass_adult|}}} {{{maturity_age|}}} {{{gestation_period|}}} {{{offspring_low|}}} {{{offspring_high|}}}
 +
| {{!}} colspan="2" class="infoboxdescription1" {{!}} Life phases }}
 +
|-
 +
{{#if: {{{life_expectancy|}}} | {{!}} <div>Life expectancy</div> {{!!}} {{{life_expectancy}}} years }}
 +
|-
 +
{{#if: {{{minage_baby|}}} | {{!}} <div>Min age baby</div> {{!!}} {{{minage_baby}}} years }}
 +
|-
 +
{{#if: {{{mass_baby|}}} | {{!}} <div>Mass baby</div> {{!!}} {{{mass_baby}}} kg }}
 +
|-
 +
{{#if: {{{minage_juvenile|}}} | {{!}} <div>Min age juvenile</div> {{!!}} {{{minage_juvenile}}} years }}
 +
|-
 +
{{#if: {{{mass_juvenile|}}} | {{!}} <div>Mass juvenile</div> {{!!}} {{{mass_juvenile}}} kg }}
 +
|-
 +
{{#if: {{{minage_adult|}}} | {{!}} <div>Min age adult</div> {{!!}} {{{minage_adult}}} years }}
 +
|-
 +
{{#if: {{{mass_adult|}}} | {{!}} <div>Mass adult</div> {{!!}} {{{mass_adult}}} kg }}
 +
|-
 +
{{#if: {{{maturity_age|}}} | {{!}} <div>Maturity age</div> {{!!}} {{{maturity_age}}} years }}
 +
|-
 +
{{#if: {{{gestation_period|}}} | {{!}} <div>Gestation period</div> {{!!}} {{{gestation_period}}} days }}
 
|-
 
|-
{{#if: {{{type|}}} | {{!}} colspan="4" {{!}} <div class="value" style="font-weight: bold; text-transform:capitalize;">{{lc:{{{type}}} }}</div> }}
+
{{#if: {{{offspring_low|}}} {{{offspring_high|}}} | {{!}} <div>Offspring</div> {{!!}} {{#ifexpr: {{{offspring_high|}}} > {{{offspring_low|}}} | {{{offspring_low}}}-{{{offspring_high|}}} per litter | {{{offspring_low|}}} per litter }} }}<!-- hopefully that if will suffice -->
 
|-
 
|-
! colspan="4" style="padding:0em;" |
+
{{#if: {{{predator|}}} {{{maxpreybodysize|}}} {{{manhunter_damage|}}} {{{manhunter_tamefail|}}} {{{wildness|}}} {{{handleskill|}}} {{{trainability|}}} {{{train_obedience|}}} {{{train_haul|}}} {{{train_release|}}} {{{train_rescue|}}} {{{petness|}}} {{{nuzzlehours|}}} {{{nameontamechance|}}}
{{#if: {{{image|}}} | [[File:{{{image}}}| {{#if:{{{size|}}}|{{{size}}}| }}]] 
+
| {{!}} colspan="2" class="infoboxdescription1" {{!}} Hunting and taming }}
<!-- {{#if: {{{size|}}} | {{{size}}} | {{{size|284px}}} }}  284px seems just right -->
 
| [[File:Questionmark black.png|link=]]{{#ifeq: {{NAMESPACE}} | | [[Category:Image wanted]]}} }} <!-- else: if no image is set  -->
 
|-  <!-- Basic -->
 
{{#if: {{{level|}}} {{{endurance|}}} {{{accuracy|}}} {{{damage|}}} {{{damage_lh|}}} | {{!}} colspan="4" class="infoboxdescription1" {{!}} Basic {{tooltip|[[File:Information round.svg|x20px|link=]]|
 
On Path of the Damned difficulty, enemies get +15 Accuracy, +15 Deflection, +15 Reflex, +15 Fortitude, +15 Will, and +25 % Endurance.}} }}
 
 
|-
 
|-
{{#if: {{{family|}}} | {{!}} colspan="2" {{!}} <div>Family</div> {{!!}} colspan="2" {{!}} <div class="value">[[{{ucfirst:{{#switch: {{lc:{{{family}}}}}
+
{{#if: {{{predator|}}} | {{!}} <div>Predator</div> {{!!}} {{#ifeq: {{{predator|}}} | yes | [[File:Check.png|20px]] | [[File:Cross.png|20px]] }} }}
|wolf = wolve
 
|eyeless = eyeles
 
|#default = {{{family}}}}}}}s]]</div> }}
 
 
|-
 
|-
{{#if: {{{level|}}} | {{!}} colspan="2" {{!}} <div>Level</div> {{!!}} colspan="2" {{!}} <div class="value">{{{level}}}</div> }}
+
{{#if: {{{maxpreybodysize|}}} | {{!}} <div>Max prey body size</div> {{!!}} {{{maxpreybodysize}}} }}
 
|-
 
|-
{{#if: {{{endurance|}}} | {{!}} colspan="2" {{!}} <div>Endurance</div> {{!!}} colspan="2" {{!}} <div class="value">{{{endurance}}} {{endurance}}</div> }}
+
{{#if: {{{manhunter_damage|}}} {{{manhunter_tamefail|}}} | {{!}} <div>Manhunter chance</div> {{!!}} {{#if: {{{manhunter_damage|}}} |
 +
* {{#expr: {{{manhunter_damage}}}*100}}% on damage }} {{#if: {{{manhunter_tamefail|}}} |
 +
* {{#expr: {{{manhunter_tamefail}}}*100}}% on tame failure }} }}
 
|-
 
|-
{{#if: {{{accuracy|}}} | {{!}} colspan="2" {{!}} <div>Accuracy</div> {{!!}} colspan="2" {{!}} <div class="value">{{{accuracy}}} {{accuracy}}</div> }}
+
{{#if: {{{wildness|}}} | {{!}} <div>Wildness</div> {{!!}} {{#expr:{{{wildness}}}*100}}% }}
 
|-
 
|-
{{#if: {{{damage|}}} {{{damage_type|}}} | {{!}} colspan="2" {{!}} <div>Damage</div> {{!!}} colspan="2" {{!}} <div class="value">{{{damage}}} {{Damage type2 | {{{damage_type|}}} }}</div> }}
+
{{#if: {{{handleskill|}}} | {{!}} <div>Min. handling</div> {{!!}} {{{handleskill}}} animals skill}}
 
|-
 
|-
{{#if: {{{damage_lh|}}} {{{damage_type_lh|}}}| {{!}} colspan="2" {{!}} <div>Damage (LH)</div> {{!!}} colspan="2" {{!}} <div class="value">{{{damage_lh}}} {{Damage type2 | {{{damage_type_lh}}} }}</div> }}
+
{{#if: {{{trainability|}}} | {{!}} <div>Trainability</div> {{!!}} {{ucfirst:{{lc:{{{trainability}}} }} }} }}
|-  <!-- Attributes -->
 
{{#if: {{{might|}}} {{{perception|}}} {{{constitution|}}} {{{intellect|}}} {{{dexterity|}}} {{{resolve|}}}    <!-- check if any params are set -->
 
| {{!}} colspan="4" class="infoboxdescription1" {{!}} Attributes }}      <!-- set Header if yes, nothing if no  -->
 
 
|-
 
|-
{{#if: {{{might|}}} | {{!}} <div>Might</div> {{!!}} <div class="value">{{{might}}}</div> }}
+
{{#if: {{{train_obedience|}}} | {{!}} <div>Train obedience</div> {{!!}} {{#ifeq: {{{train_obedience|}}} | yes | [[File:Check.png|20px]] | [[File:Cross.png|20px]] }} }}
{{#if: {{{perception|}}} | {{!}} <div>Perception</div> {{!!}} <div class="value">{{{perception}}}</div> }}
 
 
|-
 
|-
{{#if: {{{constitution|}}} | {{!}} <div>Constitution</div> {{!!}} <div class="value">{{{constitution}}}</div> }}
+
{{#if: {{{train_haul|}}} | {{!}} <div>Train haul</div> {{!!}} {{#ifeq: {{{train_haul|}}} | yes | [[File:Check.png|20px]] | [[File:Cross.png|20px]] }} }}
{{#if: {{{intellect|}}} | {{!}} <div>Intellect</div> {{!!}} <div class="value">{{{intellect}}}</div> }}
 
 
|-
 
|-
{{#if: {{{dexterity|}}} | {{!}} <div>Dexterity</div> {{!!}} <div class="value">{{{dexterity}}}</div> }}
+
{{#if: {{{train_release|}}} | {{!}} <div>Train release</div> {{!!}} {{#ifeq: {{{train_release|}}} | yes | [[File:Check.png|20px]] | [[File:Cross.png|20px]] }} }}
{{#if: {{{resolve|}}} | {{!}} <div>Resolve</div> {{!!}} <div class="value">{{{resolve}}}</div> }}
 
|-  <!-- Defenses -->
 
{{#if: {{{deflection|}}} {{{reflex|}}} {{{fortitude|}}} {{{will|}}} {{{dr_base|}}} {{{dr_burn|}}} {{{dr_crush|}}} {{{dr_corrode|}}} {{{dr_pierce|}}} {{{dr_freeze|}}} {{{dr_slash|}}} {{{dr_shock|}}}    <!-- check if any params are set -->
 
| {{!}} colspan="4" class="infoboxdescription1" {{!}} Defenses }}      <!-- set Header if yes, nothing if no  -->
 
 
|-
 
|-
{{#if: {{{deflection|}}} | {{!}} colspan="2" {{!}} <div>Deflection</div> {{!!}} colspan="2" {{!}} <div class="value">{{{deflection}}} {{deflection}}</div> }}
+
{{#if: {{{train_rescue|}}} | {{!}} <div>Train rescue</div> {{!!}} {{#ifeq: {{{train_rescue|}}} | yes | [[File:Check.png|20px]] | [[File:Cross.png|20px]] }} }}
 
|-
 
|-
{{#if: {{{reflex|}}} | {{!}} colspan="2" {{!}} <div>Reflex</div> {{!!}} colspan="2" {{!}} <div class="value">{{{reflex}}} {{reflex}}</div> }}
+
{{#if: {{{petness|}}} | {{!}} <div>Petness</div> {{!!}} {{{petness}}} }}
 
|-
 
|-
{{#if: {{{fortitude|}}} | {{!}} colspan="2" {{!}} <div>Fortitude</div> {{!!}} colspan="2" {{!}} <div class="value">{{{fortitude}}} {{fortitude}}</div> }}
+
{{#if: {{{nuzzlehours|}}} | {{!}} <div>Nuzzle interval</div> {{!!}} Every {{{nuzzlehours}}} hours }}
 
|-
 
|-
{{#if: {{{will|}}} | {{!}} colspan="2" {{!}} <div>Will</div> {{!!}} colspan="2" {{!}} <div class="value">{{{will}}} {{will}}</div> }}
+
{{#if: {{{nameontamechance|}}} | {{!}} <div>Name on tame</div> {{!!}} {{#expr: {{{nameontamechance}}}*100}}% }}
 
|-
 
|-
{{#if: {{{dr_base|}}} | {{!}} <div>DR</div> {{!!}} <div class="value">{{{dr_base}}}</div> }}
+
{{#if: {{{leather_amount|}}} {{{leather_type|}}} {{{meat_amount|}}} {{{meat_type|}}} {{{wool_amount|}}} {{{wool_type|}}} {{{shear_time|}}} {{{milk_amount|}}} {{{milk_time|}}} {{{egg_amountlow|}}} {{{egg_amounthigh|}}} {{{egg_type|}}} {{{egg_time|}}}
{{#if: {{{dr_burn|}}} | {{!}} <div>DR Burn</div> {{!!}} <div class="value">{{{dr_burn}}}</div>
+
| {{!}} colspan="2" class="infoboxdescription1" {{!}} Products }}
<!-- else -->          | {{#if: {{{dr_base|}}} |    {{!}} <div>DR Burn</div> {{!!}} <div class="value">{{{dr_base}}}</div> }} }}
 
 
|-
 
|-
{{#if: {{{dr_crush|}}} | {{!}} <div>DR Crush</div> {{!!}} <div class="value">{{{dr_crush}}}</div>
+
{{#if: {{{leather_amount|}}} {{{leather_type|}}} | {{!}} <div>Leather</div> {{!!}} {{#if: {{{leather_amount|}}} | {{{leather_amount}}} }} {{#if: {{{leather_type|}}} | [[{{{leather_type}}}]] }} }}<!-- should be an icon? -->
<!-- else -->          | {{#if: {{{dr_base|}}} |     {{!}} <div>DR Crush</div> {{!!}} <div class="value">{{{dr_base}}}</div> }} }}
 
{{#if: {{{dr_corrode|}}} | {{!}} <div>DR Corrode</div> {{!!}} <div class="value">{{{dr_corrode}}}</div>
 
<!-- else -->          | {{#if: {{{dr_base|}}} |     {{!}} <div>DR Corrode</div> {{!!}} <div class="value">{{{dr_base}}}</div> }} }}
 
 
|-
 
|-
{{#if: {{{dr_pierce|}}} | {{!}} <div>DR Pierce</div> {{!!}} <div class="value">{{{dr_pierce}}}</div>
+
{{#if: {{{meat_amount|}}} {{{meat_type|}}} | {{!}} <div>Meat</div> {{!!}} {{#if: {{{meat_amount|}}} | {{{meat_amount}}} }} {{#if: {{{meat_type|}}} | [[{{{meat_type}}}]] }} }}<!-- should be an icon? -->
<!-- else -->          | {{#if: {{{dr_base|}}} |     {{!}} <div>DR Pierce</div> {{!!}} <div class="value">{{{dr_base}}}</div> }} }}
 
{{#if: {{{dr_freeze|}}} | {{!}} <div>DR Freeze</div> {{!!}} <div class="value">{{{dr_freeze}}}</div>
 
<!-- else -->          | {{#if: {{{dr_base|}}} |     {{!}} <div>DR Freeze</div> {{!!}} <div class="value">{{{dr_base}}}</div> }} }}
 
 
|-
 
|-
{{#if: {{{dr_slash|}}} | {{!}} <div>DR Slash</div> {{!!}} <div class="value">{{{dr_slash}}}</div>
+
{{#if: {{{wool_amount|}}} {{{wool_type|}}} {{{shear_time|}}} | {{!}} <div>Wool</div> {{!!}} {{#if: {{{wool_amount|}}} | {{{wool_amount}}} }} {{#if: {{{wool_type|}}} | [[{{{wool_type}}}]] }}<!-- should be an icon? -->{{#if: {{{shear_time|}}} | &nbsp;every {{{shear_time}}} days }} }}
<!-- else -->          | {{#if: {{{dr_base|}}} |     {{!}} <div>DR Slash</div> {{!!}} <div class="value">{{{dr_base}}}</div> }} }}
 
{{#if: {{{dr_shock|}}} | {{!}} <div>DR Shock</div> {{!!}} <div class="value">{{{dr_shock}}}</div>
 
<!-- else -->          | {{#if: {{{dr_base|}}} |     {{!}} <div>DR Shock</div> {{!!}} <div class="value">{{{dr_base}}}</div> }} }}
 
|-  <!-- Special -->
 
{{#if: {{{ability|}}} {{{immunity|}}} {{{loot|}}} | {{!}} colspan="4" class="infoboxdescription1" {{!}} Special }}
 
 
|-
 
|-
{{#if: {{{ability|}}} | {{!}} <div>Ability</div> {{!!}} colspan="3" {{!}} <div class="value" style="text-align:left; font-weight: normal;">
+
{{#if: {{{milk_amount|}}} {{{milk_time|}}} | {{!}} <div>Milk</div> {{!!}} {{#if: {{{milk_amount|}}} | {{{milk_amount}}} }} {{#if: {{{milk_time|}}} | [[milk]] every {{{milk_time}}} day(s) }} }}<!-- should be an icon? -->
    {{#arraymap:{{{ability|}}}|,|x|* [[x]]|\n}}   <!-- replace comma separator with * and turn titles into page links -->
 
</div> }}
 
 
|-
 
|-
{{#if: {{{immunity|}}} | {{!}} <div>Immunity</div> {{!!}} colspan="3" {{!}} <div class="value" style="text-align:left; font-weight: normal;">
+
{{#if: {{{egg_amountlow|}}} {{{egg_amounthigh|}}} {{{egg_type|}}} {{{egg_time|}}} | {{!}} <div>Eggs</div>  
    {{#arraymap:{{{immunity|}}}|,|x|* [[x]]|\n}}
+
{{!!}} {{#ifexpr: {{{egg_amounthigh|}}} > {{{egg_amountlow|}}} | {{{egg_amountlow}}}-{{{egg_amounthigh|}}} | {{{egg_amountlow|}}} }} {{#if: {{{egg_type|}}} | [[{{{egg_type}}}]] }}<!-- should be an icon? -->{{#if: {{{egg_time|}}} | &nbsp;every {{{egg_time}}} day(s) }} }}
</div> }}
 
 
|-
 
|-
{{#if: {{{loot|}}} | {{!}} <div>Loot</div> {{!!}} colspan="3" {{!}} <div class="value" style="text-align:left; font-weight: normal;">
+
{{#if: {{{ecosystemweight|}}} {{{recipes_operation|}}} {{{tradetags|}}}
    {{#arraymap:{{{loot|}}}|,|x|* [[x]]|\n}}
+
| {{!}} colspan="2" class="infoboxdescription1" {{!}} Other }}
</div> }}
 
 
|-
 
|-
{{#vardefine:monster_locations | {{Cargo monster locations}} }}
+
{{#if: {{{ecosystemweight|}}} | {{!}} <div>ecosystemweight</div> {{!!}} {{{ecosystemweight}}} }}
{{#if: {{{monster_locations|}}} | {{!}} <div>Locations</div> {{!!}} colspan="3" {{!}} <div class="value" style="text-align:left; font-weight: normal;">{{#iferror: {{{monster_locations|}}} | An error occurred | {{{monster_locations|}}} }} </div> || }}
 
 
|-
 
|-
{{#if: {{{internalname|}}} {{{guid|}}}
+
{{#if: {{{recipes_operation|}}} | {{!}} <div>Recipes</div> {{!!}} {{#if:{{#pos: {{{recipes_operation}}} |,}} | {{#arraymap:{{{recipes_operation|}}}|,|x|* x|\n}} | {{{recipes_operation}}} }} }}<!-- beware of x in names-->
| {{!}} colspan="4" class="infoboxdescription1" {{!}} Technical }}
 
 
|-
 
|-
{{#if: {{{internalname|}}} | {{!}} <div>Creature ID</div> {{!!}} colspan="3" {{!}} <div class="value" style="word-break: break-all;">{{{internalname}}}</div>}}
+
{{#if: {{{tradetags|}}} | {{!}} <div>Trade tags</div> {{!!}} {{#if:{{#pos: {{{tradetags}}} |,}} | {{#arraymap:{{{tradetags|}}}|,|x|* x|\n}} | {{{tradetags}}} }} }}<!-- beware of x in names-->
|}<!--
+
|}
 +
<!-- Auto categories --><!--
 +
 
 +
{{#ifeq: {{NAMESPACENUMBER}} | 0 | [[Category:{{#if:{{{added_in|}}}|{{game|{{{added_in|}}} }} }} weapons]] }}<!--
  
== Auto categories ==
+
<!--
-->{{#ifeq: {{NAMESPACENUMBER}} | 0 |
 
[[Category:Bestiary]]
 
[[Category:Pillars of Eternity bestiary]]
 
{{#if: {{{type|}}} | [[Category:Pillars of Eternity {{lc:{{{type|}}}}}s]] }} }}<!--
 
  
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>

Revision as of 05:05, 26 July 2019

This template defines the table "Animal". This table has not been created yet.

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

This documentation is for the new infobox pawn template.

{{Infobox pawn
| name               = 
| image              = 
| description        = 
| description_markup = 
| type               = 
| subtype            = 
<!--   General   -->
| basebodysize       = 
| basehealthscale    = 
| basehungerrate     = 
| comfytemp_min      = 
| comfytemp_max      = 
| diet               = 
| flammability       = 
| has_gender         = 
| marketvalue        = 
| movespeed          = 
<!--   Combat   -->
| armorrating_blunt  = 
| armorrating_heat   = 
| armorrating_sharp  = 
| combatpower        = 
<!-- Life phases -->
| life_expectancy    = 
| mass_adult         = 
| mass_baby          = 
| mass_juvenile      = 
| maturity_age       = 
| minage_adult       = 
| minage_baby        = 
| minage_juvenile    = 
| gestation_period   = 
| offspring_low      = 
| offspring_high     = 
<!--   Taming/hunting   -->
| handleskill        = 
| manhunter_damage   = 
| manhunter_tamefail = 
| nameontamechance   = 
| nuzzlehours        = 
| petness            = 
| predator           = 
| maxpreybodysize    = 
| trainability       = 
| packanimal         = 
| carryingcapacity   = 
| wildness           = 
<!--   Product   -->
| egg_amountlow      = 
| egg_amounthigh     = 
| egg_type           = 
| egg_time           = 
| leather_amount     = 
| leather_type       = 
| meat_amount        = 
| meat_type          = 
| milk_amount        = 
| milk_time          = 
| shear_time         = 
| wool_amount        = 
| wool_type          = 
<!--   Other      -->
| ecosystemweight    = 
| recipes_operation  = 
| tradetags          = 
<!--| butcherproducts?? (mechs) = -->
}}