Difference between revisions of "Template:Infobox pawn"

From RimWorld Wiki
Jump to navigation Jump to search
m (category)
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<noinclude><!-- Cargo declare section  -->
 
<noinclude><!-- Cargo declare section  -->
{{#cargo_declare:_table = Animal
+
{{#cargo_declare:_table = Pawn
| 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
+
| herdanimal        = Boolean
| attack3_type = Wikitext
+
| herdsize_min      = Integer
| attack3_part = Wikitext
+
| herdsize_max      = Integer
| attack3_cool = Integer
+
| psychicsensitivity = Boolean
| attack4_dmg  = Integer
+
| toxicsensitivity  = Boolean
| attack4_type = Wikitext
+
<!--  Combat   -->
| attack4_part = Wikitext
+
| armorrating_blunt = Float
| attack4_cool = Integer
+
| armorrating_heat  = Float
| attack4_chance = Float
+
| armorrating_sharp  = Float
 +
| combatpower        = Integer
 +
<!-- Life phases -->
 +
| life_expectancy    = Integer
 +
| mass_adult        = Float
 +
| mass_juvenile      = Float
 +
| mass_baby          = Float
 +
| minage_adult      = Float
 +
| minage_juvenile    = Float
 +
| minage_baby        = Float
 +
| gestation_period  = Integer
 +
| offspring_low      = Integer
 +
| offspring_high    = Integer
 +
<!--  Taming/hunting  -->
 +
| handleskill        = Integer
 +
| manhunter_damage  = Float
 +
| manhunter_tamefail = Float
 +
| nameontamechance  = Float
 +
| nameonnuzzlechance = Float
 +
| nuzzlehours        = Integer
 +
| petness            = Float
 +
| predator          = Boolean
 +
| maxpreybodysize    = Float
 +
| packanimal        = Boolean
 +
| carryingcapacity  = Integer
 +
| trainability      = String    <!-- or Page? -->
 +
| train_obedience    = Boolean
 +
| train_release      = Boolean
 +
| train_rescue      = Boolean
 +
| train_haul        = Boolean
 +
| wildness          = Float
 
<!--  Product  -->
 
<!--  Product  -->
| leathername  = Page
+
| egg_amountlow      = Integer
| woolname     = Page
+
| egg_amounthigh     = Integer
| woolamount  = Integer
+
| egg_type          = String
| 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  --><!-- disable namespacecheck for now
-->{{#ifeq: {{NAMESPACENUMBER}} | 0 |
+
{{#ifeq: {{NAMESPACENUMBER}} | 0 | -->
{{#cargo_store:_table = Bestiary_poe1
+
{{#cargo_store:_table = Pawn
| name         = {{{name|}}}
+
| name               = {{{name|}}}
| image       = {{{image|}}}
+
| image             = {{{image|}}}
| description = {{{description|}}}
+
| description       = {{{description|}}}
| type         = {{{type|}}}
+
| description_markup = {{{description_markup|}}}
| subtype     = {{{subtype|}}}
+
| type               = {{{type|}}}
| bodysize     = {{{bodysize|}}}
+
| subtype           = {{{subtype|}}}
| healthscale  = {{{healthscale|}}}
+
<!--  General  -->
| movespeed   = {{{movespeed|}}}
+
| basebodysize      = {{{basebodysize|}}}
<!--  Attack   -->
+
| basehealthscale    = {{{basehealthscale|}}}
| attack1_dmg = {{{attack1_dmg|}}}
+
| basehungerrate     = {{{basehungerrate|}}}
| attack1_type = {{{attack1_type|}}}
+
| comfytemp_min      = {{{comfytemp_min|}}}
| attack1_part = {{{attack1_part|}}}
+
| comfytemp_max      = {{{comfytemp_max|}}}
| attack1_cool = {{{attack1_cool|}}}
+
| diet              = {{{diet|}}}
| attack2_dmg  = {{{attack2_dmg|}}}
+
| flammability      = {{{flammability|}}}
| attack2_type = {{{attack2_type|}}}
+
| has_gender        = {{#if: {{{has_gender|}}} | {{{has_gender}}} | yes}}
| attack2_part = {{{attack2_part|}}}
+
| marketvalue        = {{{marketvalue|}}}
| attack2_cool = {{{attack2_cool|}}}
+
| movespeed         = {{{movespeed|}}}
| attack3_dmg  = {{{attack3_dmg|}}}
+
| herdanimal        = {{#if: {{{herdanimal|}}} | {{{herdanimal}}} | no}}
| attack3_type = {{{attack3_type|}}}
+
| herdsize_min      = {{{herdsize_min|}}}
| attack3_part = {{{attack3_part|}}}
+
| herdsize_max      = {{{herdsize_max|}}}
| attack3_cool = {{{attack3_cool|}}}
+
| psychicsensitivity = {{#if: {{{psychicsensitivity|}}} | {{{psychicsensitivity}}} | yes}}
| attack4_dmg  = {{{attack4_dmg|}}}
+
| toxicsensitivity  = {{#if: {{{toxicsensitivity|}}} | {{{toxicsensitivity}}} | yes}}
| attack4_type = {{{attack4_type|}}}
+
<!--  Combat   -->
| attack4_part = {{{attack4_part|}}}
+
| armorrating_blunt = {{{armorrating_blunt|}}}
| attack4_cool = {{{attack4_cool|}}}
+
| armorrating_heat  = {{{armorrating_heat|}}}
| attack4_chance = {{{attack4_chance|}}}
+
| armorrating_sharp  = {{{armorrating_sharp|}}}
 +
| combatpower        = {{{combatpower|}}}
 +
<!-- Life phases -->
 +
| life_expectancy    = {{{life_expectancy|}}}
 +
| mass_adult        = {{{mass_adult|}}}
 +
| mass_juvenile      = {{#vardefineecho: mass_juvenile | {{#if: {{{mass_juvenile|}}} | {{{mass_juvenile}}} |
 +
    {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/2}} }} }} }}
 +
| mass_baby          = {{#vardefineecho: mass_baby | {{#if: {{{mass_baby|}}} | {{{mass_baby}}} |
 +
    {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/5}} }} }} }}
 +
| minage_adult      = {{{minage_adult|}}}
 +
| minage_juvenile    = {{{minage_juvenile|}}}
 +
| minage_baby        = {{{minage_baby|}}}
 +
| 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|}}}
 +
| nameonnuzzlechance = {{{nameonnuzzlechance|}}}
 +
| nuzzlehours        = {{{nuzzlehours|}}}
 +
| petness            = {{{petness|}}}
 +
| predator          = {{{predator|}}}
 +
| maxpreybodysize    = {{{maxpreybodysize|}}}
 +
| trainability      = {{{trainability|}}}
 +
| packanimal        = {{{packanimal|}}}
 +
| carryingcapacity  = {{#vardefineecho: carryingcapacity | {{#if: {{{basebodysize|}}} | {{#expr: 75 * {{{basebodysize|}}} round0}} }} }}
 +
| train_obedience    = {{#vardefineecho: train_obedience | {{#ifeq: {{{trainability|}}}|none|no|yes}} }}
 +
| train_release      = {{#vardefineecho: train_release | {{#switch: {{{trainability|}}}
 +
    |none|simple = no
 +
    |intermediate|advanced = yes }} }}
 +
| train_rescue      = {{#vardefineecho: train_rescue | {{#switch: {{{trainability|}}}
 +
    |none|simple|intermediate = no
 +
    |advanced = {{#ifexpr: {{{basebodysize}}} >= 0.65 |yes|no}} }} }}
 +
| train_haul        = {{#vardefineecho: train_haul | {{#switch: {{{trainability|}}}
 +
    |none|simple|intermediate = no
 +
    |advanced = {{#ifexpr: {{{basebodysize}}} >= 0.40 |yes|no}} }} }}
 +
| 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|}}}
+
-->{| class="infoboxtable"
| livesin_seaice          = {{{livesin_seaice|}}}
+
! colspan="2" class="infoboxname" | {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
| livesin_temperateforest = {{{livesin_temperateforest|}}}
 
| livesin_tundra          = {{{livesin_tundra|}}}
 
}} }}
 
<!-- {{#vardefine:family|{{{family}}} }}   ...if needed..... --><!--
 
-->
 
{| class="infoboxtable"
 
 
|-
 
|-
! colspan="2" class="infoboxname3" | {{{name}}}
+
|{{#if: {{{type|}}} | {{!}} <div style="text-align: center;">'''[[{{{type|}}}]]'''</div>}}  
|-style="text-align:center;"
+
|{{#if: {{{subtype|}}} | {{!}} <div style="text-align: center;">'''[[{{{subtype|}}}]]'''</div>}}  
| colspan="2" style="padding:0.5em;" | {{#if: {{{spoilerimage|}}}|{{#tag:tabber| Unknown=[[File:{{{image}}}|center|{{#if: {{{size|}}} | {{{size}}}|290x350px}}]]{{#if: {{{spoilerimage|}}}|
 
{{!}}-{{!}}
 
Spoiler=[[File:{{{spoilerimage}}}|center|{{#if: {{{size|}}} | {{{size}}}|290x350px}}]] }}
 
}} | {{#if: {{{image|}}} | [[File:{{{image}}}{{!}}{{#if: {{{size|}}} | {{{size}}}|290x350px}}]] | No image yet}} }}
 
 
|-
 
|-
! colspan="2" class="infoboxdetails3" | Details
+
! colspan="2" | {{#if: {{{image|}}} | [[File:{{{image}}}]] | [[File:Questionmark black.png|link=]]{{#ifeq: {{NAMESPACE}} | 0 | [[Category:Image wanted]]}} }}
 
|-
 
|-
{{#if: {{{type|}}} | {{!}} <div>Type</div> {{!!}} {{{type}}} }}
+
| colspan="2" | {{#if: {{{description|}}} | ''{{{description}}}'' }}
 
|-
 
|-
{{#if: {{{boss|}}} | {{#switch: {{lc:{{{boss}}}}}
+
{{#if: {{{type|}}} {{{subtype|}}} {{{basebodysize|}}} {{{basehealthscale|}}} {{{basehungerrate|}}} {{{comfytemp_min|}}} {{{comfytemp_max|}}} {{{diet|}}} {{{flammability|}}} {{{has_gender|}}} {{{marketvalue|}}} {{{movespeed|}}} {{{herdanimal|}}} {{{herdsize_min|}}} {{{herdsize_max|}}} {{{psychicsensitivity|}}} {{{toxicsensitivity|}}}
|yes = {{!}} <div>Boss</div> {{!!}} {{#ifeq: {{NAMESPACE}} | Template | | Yes <includeonly>[[Category:{{#var:catstub}} bosses]]</includeonly>}}
+
| {{!}} colspan="2" class="infoboxdescription" {{!}} General }}
|y = {{!}} <div>Boss</div> {{!!}} {{#ifeq: {{NAMESPACE}} | Template | | Yes <includeonly>[[Category:{{#var:catstub}} bosses]]</includeonly>}} }} }}
+
|-<!--
 +
{{#if: {{{type|}}} | {{!}} <div>Type</div> {{!!}} [[{{ucfirst: {{{type}}} }}]] }}
 
|-
 
|-
{{#if: {{{subtype|}}} | {{!}} <div>Sub-type</div> {{!!}} {{{subtype}}} }}
+
{{#if: {{{subtype|}}} | {{!}} <div>Subtype</div> {{!!}} [[{{ucfirst: {{{subtype}}} }}]] }}
 +
|-   -->
 +
{{#if: {{{marketvalue|}}} | {{!}} <div>Market value</div> {{!!}} {{formatnum:{{{marketvalue}}} }} [[File:silver_c.png|20px]] }}
 
|-
 
|-
{{#if: {{{leathername|}}} | {{!}} width=80 {{!}} <div>Leather</div> {{!!}} {{{leathername}}} }}
+
{{#if: {{{movespeed|}}} | {{!}} <div>Move speed</div> {{!!}} {{{movespeed}}} cells/sec}}
 
|-
 
|-
{{#if: {{{woolname|}}} | {{!}} <div>Wool</div> {{!!}} {{{woolname}}} }}
+
{{#if: {{{comfytemp_min|}}} {{{comfytemp_max|}}} | {{!}} <div>Temperature</div> {{!!}} {{{comfytemp_min}}}&deg;C to {{{comfytemp_max}}}&deg;C }}<!-- need more elaborate if-->
 
|-
 
|-
{{#if: {{{woolamount|}}} | {{!}} <div>Amount</div> {{!!}} {{{woolamount}}} }}
+
{{#if: {{{diet|}}} | {{!}} <div>Diet</div> {{!!}} [[{{ucfirst: {{{diet}}} }}]] }}
 
|-
 
|-
{{#if: {{{tactics|}}} | {{!}} <div>Tactics</div> {{!!}} {{{tactics}}} }}
+
{{#if: {{{basebodysize|}}} | {{!}} <div>Body size</div> {{!!}} {{{basebodysize}}} }}
 
|-
 
|-
{{#if: {{{loot|}}} | {{!}} <div><span title="Not all this loot is guaranteed to drop">Loot</span></div> {{!!}} {{{loot}}} }}
+
{{#if: {{{basehealthscale|}}} | {{!}} <div>Health scale</div> {{!!}} {{{basehealthscale}}} }}
 
|-
 
|-
{{#if: {{{additional|}}} | {{!}} <div>Other loot</div> {{!!}} {{{additional}}} }}
+
{{#if: {{{flammability|}}} | {{!}} <div>Flammability</div> {{!!}} {{{flammability}}} }}
|}
+
|-
 
+
{{#if: {{{basehungerrate|}}} | {{!}} <div>Hunger rate</div> {{!!}} {{{basehungerrate}}} }}
 
+
|-
 
+
{{#ifeq: {{{has_gender|}}} | no | {{!}} <div>Has gender</div> {{!!}} [[File:Checkoff.png|20px]] }}
<!-- comment out temporarily
+
|-
 
+
{{#ifeq: {{{herdanimal|}}} | yes | {{!}} <div>Herd animal</div> {{!!}} [[File:Checkon.png|20px]] }}
{| class="infoboxtable"
+
|-
! colspan="4" class="infoboxname1" | {{#if: {{{name|}}} | {{{name}}} | {{Pagename nd}} }}
+
{{#if: {{{herdsize_min|}}} {{{herdsize_max|}}} | {{!}} <div>Herd size</div> {{!!}} {{#ifexpr: {{{herdsize_max|}}} > {{{herdsize_min|}}} | {{{herdsize_min}}}-{{{herdsize_max|}}} animals | {{{herdsize_min|}}} animals }} }}
 +
|-
 +
{{#ifeq: {{{psychicsensitivity|}}} | no | {{!}} <div>Psychic immunity</div> {{!!}} [[File:Checkon.png|20px]] }}
 +
|-
 +
{{#ifeq: {{{toxicsensitivity|}}} | no | {{!}} <div>Toxic immunity</div> {{!!}} [[File:Checkon.png|20px]] }}
 +
|-
 +
{{#if: {{{combatpower|}}} {{{armorrating_blunt|}}} {{{armorrating_heat|}}} {{{armorrating_sharp|}}}
 +
| {{!}} colspan="2" class="infoboxdescription" {{!}} 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|}}} {{{gestation_period|}}} {{{offspring_low|}}} {{{offspring_high|}}}
 +
| {{!}} colspan="2" class="infoboxdescription" {{!}} Life phases }}
 +
|-
 +
{{#if: {{{life_expectancy|}}} | {{!}} <div>Life expectancy</div> {{!!}} {{{life_expectancy}}} years }}
 +
|-
 +
{{#if: {{{minage_adult|}}} | {{!}} <div>Adult</div> {{!!}} {{{minage_adult}}} years {{#if: {{{mass_adult|}}} | ({{{mass_adult}}} kg) }} |
 +
{{#if: {{{mass_adult|}}} | {{!}} <div>Mass adult</div> {{!!}} {{{mass_adult}}} kg }} }}
 +
|-
 +
{{#if: {{{minage_juvenile|}}} | {{!}} <div>Juvenile</div> {{!!}} {{{minage_juvenile}}} years {{#if: {{#var:mass_juvenile}} | ({{#var:mass_juvenile}} kg) }} |
 +
{{#if: {{#var:mass_juvenile}} | {{!}} <div>Mass juvenile</div> {{!!}} {{#var:mass_juvenile}} kg }} }}
 +
|-
 +
{{#if: {{{minage_baby|}}} | {{!}} <div>Baby</div> {{!!}} {{{minage_baby}}} years {{#if: {{#var:mass_baby}} | ({{#var:mass_baby}} kg) }} |
 +
{{#if: {{#var:mass_baby}} | {{!}} <div>Mass baby</div> {{!!}} {{#var:mass_baby}} kg }} }}
 +
|-
 +
{{#if: {{{gestation_period|}}} | {{!}} <div>Gestation</div> {{!!}} {{{gestation_period}}} days }}
 +
|-
 +
{{#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 -->
 +
|-
 +
{{#if: {{{predator|}}} {{{maxpreybodysize|}}} {{{manhunter_damage|}}} {{{manhunter_tamefail|}}} {{{wildness|}}} {{{handleskill|}}} {{{trainability|}}} {{{train_obedience|}}} {{{train_haul|}}} {{{train_release|}}} {{{train_rescue|}}} {{{petness|}}} {{{nuzzlehours|}}} {{{nameonnuzzlechance|}}} {{{nameontamechance|}}}
 +
| {{!}} colspan="2" class="infoboxdescription" {{!}} Hunting and taming }}
 +
|-
 +
{{#if: {{{predator|}}} | {{!}} <div>Predator</div> {{!!}} {{#ifeq: {{{predator|}}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
 
|-
 
|-
{{#if: {{{type|}}} | {{!}} colspan="4" {{!}} <div class="value" style="font-weight: bold; text-transform:capitalize;">{{lc:{{{type}}} }}</div> }}
+
{{#if: {{{maxpreybodysize|}}} | {{!}} <div>Prey body size</div> {{!!}} Maximum {{{maxpreybodysize}}} }}
 
|-
 
|-
! colspan="4" style="padding:0em;" |
+
{{#if: {{{manhunter_damage|}}} {{{manhunter_tamefail|}}} | {{!}} <div>Manhunter chance</div> {{!!}} {{#if: {{{manhunter_damage|}}} |
{{#if: {{{image|}}} | [[File:{{{image}}}| {{#if:{{{size|}}}|{{{size}}}| }}]] 
+
  {{#ifeq: {{{manhunter_damage|}}} | 0 |
<!-- {{#if: {{{size|}}} | {{{size}}} | {{{size|284px}}} }}  284px seems just right -->
+
* Never on damage |  
| [[File:Questionmark black.png|link=]]{{#ifeq: {{NAMESPACE}} | | [[Category:Image wanted]]}} }} <!-- else: if no image is set  -->
+
* {{#expr: {{{manhunter_damage}}}*100}}% on damage }} }} {{#if: {{{manhunter_tamefail|}}} | {{#ifeq: {{{manhunter_tamefail|}}} | 0 |
|-  <!-- Basic -->
+
* Never on tame failure |
{{#if: {{{level|}}} {{{endurance|}}} {{{accuracy|}}} {{{damage|}}} {{{damage_lh|}}} | {{!}} colspan="4" class="infoboxdescription1" {{!}} Basic {{tooltip|[[File:Information round.svg|x20px|link=]]|
+
* {{#expr: {{{manhunter_tamefail}}}*100}}% on tame failure }} }} }}
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: {{{wildness|}}} | {{!}} <div>Wildness</div> {{!!}} {{#expr:{{{wildness}}}*100}}% }}
|wolf = wolve
 
|eyeless = eyeles
 
|#default = {{{family}}}}}}}s]]</div> }}
 
 
|-
 
|-
{{#if: {{{level|}}} | {{!}} colspan="2" {{!}} <div>Level</div> {{!!}} colspan="2" {{!}} <div class="value">{{{level}}}</div> }}
+
{{#if: {{{packanimal|}}} | {{!}} <div>Pack animal</div> {{!!}} {{#ifeq: {{{packanimal|}}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
 
|-
 
|-
{{#if: {{{endurance|}}} | {{!}} colspan="2" {{!}} <div>Endurance</div> {{!!}} colspan="2" {{!}} <div class="value">{{{endurance}}} {{endurance}}</div> }}
+
{{#if: {{#var:carryingcapacity}} | {{!}} <div>Carry capacity</div> {{!!}} {{#var:carryingcapacity}} kg }}
 
|-
 
|-
{{#if: {{{accuracy|}}} | {{!}} colspan="2" {{!}} <div>Accuracy</div> {{!!}} colspan="2" {{!}} <div class="value">{{{accuracy}}} {{accuracy}}</div> }}
+
{{#if: {{{handleskill|}}} | {{!}} <div>Handling skill</div> {{!!}} {{{handleskill}}} animals skill}}
 
|-
 
|-
{{#if: {{{damage|}}} {{{damage_type|}}} | {{!}} colspan="2" {{!}} <div>Damage</div> {{!!}} colspan="2" {{!}} <div class="value">{{{damage}}} {{Damage type2 | {{{damage_type|}}} }}</div> }}
+
{{#if: {{{trainability|}}} | {{!}} <div>Trainability</div> {{!!}} {{ucfirst:{{lc:{{{trainability}}} }} }} }}
 
|-
 
|-
{{#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: {{#var: train_obedience}} | {{!}} <div>Train obedience</div> {{!!}} {{#ifeq: {{#var: train_obedience|}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
|-  <!-- 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: {{#var: train_release}} | {{!}} <div>Train release</div> {{!!}} {{#ifeq: {{#var: train_release|}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
{{#if: {{{perception|}}} | {{!}} <div>Perception</div> {{!!}} <div class="value">{{{perception}}}</div> }}
 
 
|-
 
|-
{{#if: {{{constitution|}}} | {{!}} <div>Constitution</div> {{!!}} <div class="value">{{{constitution}}}</div> }}
+
{{#if: {{#var: train_rescue}} | {{!}} <div>Train rescue</div> {{!!}} {{#ifeq: {{#var: train_rescue|}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
{{#if: {{{intellect|}}} | {{!}} <div>Intellect</div> {{!!}} <div class="value">{{{intellect}}}</div> }}
 
 
|-
 
|-
{{#if: {{{dexterity|}}} | {{!}} <div>Dexterity</div> {{!!}} <div class="value">{{{dexterity}}}</div> }}
+
{{#if: {{#var: train_haul}} | {{!}} <div>Train haul</div> {{!!}} {{#ifeq: {{#var: train_haul|}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.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: {{{petness|}}} | {{!}} <div>Petness</div> {{!!}} {{#expr:{{{petness}}}*100}}% }}
 
|-
 
|-
{{#if: {{{reflex|}}} | {{!}} colspan="2" {{!}} <div>Reflex</div> {{!!}} colspan="2" {{!}} <div class="value">{{{reflex}}} {{reflex}}</div> }}
+
{{#if: {{{nameontamechance|}}} | {{!}} <div>Name on tame</div> {{!!}} {{#expr: {{{nameontamechance}}}*100}}% chance }}
 
|-
 
|-
{{#if: {{{fortitude|}}} | {{!}} colspan="2" {{!}} <div>Fortitude</div> {{!!}} colspan="2" {{!}} <div class="value">{{{fortitude}}} {{fortitude}}</div> }}
+
{{#if: {{{nameonnuzzlechance|}}} | {{!}} <div>Name on nuzzle</div> {{!!}} {{#expr: {{{nameonnuzzlechance}}}*100}}% chance }}
 
|-
 
|-
{{#if: {{{will|}}} | {{!}} colspan="2" {{!}} <div>Will</div> {{!!}} colspan="2" {{!}} <div class="value">{{{will}}} {{will}}</div> }}
+
{{#if: {{{nuzzlehours|}}} | {{!}} <div>Nuzzle interval</div> {{!!}} Every {{{nuzzlehours}}} hours }}
 
|-
 
|-
{{#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="infoboxdescription" {{!}} 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="infoboxdescription" {{!}} Other }}
</div> }}
 
 
|-
 
|-
{{#vardefine:monster_locations | {{Cargo monster locations}} }}
+
{{#if: {{{ecosystemweight|}}} | {{!}} <div>Eco-system weight</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>
 
{{documentation}}
 
{{documentation}}
[[Category:Infobox templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 10:39, 11 August 2022

This template defines the table "Pawn". View table.

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

Usage[edit]

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) = -->
}}