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
m (category)
 
(9 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|}}}
 
| 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="infoboxname" | {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
 
|-
 
|-
{{#if: {{{type|}}} | {{!}} colspan="4" {{!}} <div class="value" style="font-weight: bold; text-transform:capitalize;">{{lc:{{{type}}} }}</div> }}
+
|{{#if: {{{type|}}} | {{!}} <div style="text-align: center;">'''[[{{{type|}}}]]'''</div>}}
 +
|{{#if: {{{subtype|}}} | {{!}} <div style="text-align: center;">'''[[{{{subtype|}}}]]'''</div>}}  
 
|-
 
|-
! colspan="4" style="padding:0em;" |  
+
! colspan="2" | {{#if: {{{image|}}} | [[File:{{{image}}}]] | [[File:Questionmark black.png|link=]]{{#ifeq: {{NAMESPACE}} | 0 | [[Category:Image wanted]]}} }}  
{{#if: {{{image|}}} | [[File:{{{image}}}| {{#if:{{{size|}}}|{{{size}}}| }}]]  
 
<!-- {{#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}}}}}
+
| colspan="2" | {{#if: {{{description|}}} | ''{{{description}}}'' }}
|wolf = wolve
 
|eyeless = eyeles
 
|#default = {{{family}}}}}}}s]]</div> }}
 
 
|-
 
|-
{{#if: {{{level|}}} | {{!}} colspan="2" {{!}} <div>Level</div> {{!!}} colspan="2" {{!}} <div class="value">{{{level}}}</div> }}
+
{{#if: {{{type|}}} {{{subtype|}}} {{{basebodysize|}}} {{{basehealthscale|}}} {{{basehungerrate|}}} {{{comfytemp_min|}}} {{{comfytemp_max|}}} {{{diet|}}} {{{flammability|}}} {{{has_gender|}}} {{{marketvalue|}}} {{{movespeed|}}} {{{herdanimal|}}} {{{herdsize_min|}}} {{{herdsize_max|}}} {{{psychicsensitivity|}}} {{{toxicsensitivity|}}}
 +
| {{!}} colspan="2" class="infoboxdescription" {{!}} General }}
 +
|-<!--
 +
{{#if: {{{type|}}} | {{!}} <div>Type</div> {{!!}} [[{{ucfirst: {{{type}}} }}]] }}
 
|-
 
|-
{{#if: {{{endurance|}}} | {{!}} colspan="2" {{!}} <div>Endurance</div> {{!!}} colspan="2" {{!}} <div class="value">{{{endurance}}} {{endurance}}</div> }}
+
{{#if: {{{subtype|}}} | {{!}} <div>Subtype</div> {{!!}} [[{{ucfirst: {{{subtype}}} }}]] }}
 +
|-    -->
 +
{{#if: {{{marketvalue|}}} | {{!}} <div>Market value</div> {{!!}} {{formatnum:{{{marketvalue}}} }} [[File:silver_c.png|20px]] }}
 
|-
 
|-
{{#if: {{{accuracy|}}} | {{!}} colspan="2" {{!}} <div>Accuracy</div> {{!!}} colspan="2" {{!}} <div class="value">{{{accuracy}}} {{accuracy}}</div> }}
+
{{#if: {{{movespeed|}}} | {{!}} <div>Move speed</div> {{!!}} {{{movespeed}}} cells/sec}}
 
|-
 
|-
{{#if: {{{damage|}}} {{{damage_type|}}} | {{!}} colspan="2" {{!}} <div>Damage</div> {{!!}} colspan="2" {{!}} <div class="value">{{{damage}}} {{Damage type2 | {{{damage_type|}}} }}</div> }}
+
{{#if: {{{comfytemp_min|}}} {{{comfytemp_max|}}} | {{!}} <div>Temperature</div> {{!!}} {{{comfytemp_min}}}&deg;C to {{{comfytemp_max}}}&deg;C }}<!-- need more elaborate if-->
 
|-
 
|-
{{#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: {{{diet|}}} | {{!}} <div>Diet</div> {{!!}} [[{{ucfirst: {{{diet}}} }}]] }}
|-  <!-- 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: {{{basebodysize|}}} | {{!}} <div>Body size</div> {{!!}} {{{basebodysize}}} }}
{{#if: {{{perception|}}} | {{!}} <div>Perception</div> {{!!}} <div class="value">{{{perception}}}</div> }}
 
 
|-
 
|-
{{#if: {{{constitution|}}} | {{!}} <div>Constitution</div> {{!!}} <div class="value">{{{constitution}}}</div> }}
+
{{#if: {{{basehealthscale|}}} | {{!}} <div>Health scale</div> {{!!}} {{{basehealthscale}}} }}
{{#if: {{{intellect|}}} | {{!}} <div>Intellect</div> {{!!}} <div class="value">{{{intellect}}}</div> }}
 
 
|-
 
|-
{{#if: {{{dexterity|}}} | {{!}} <div>Dexterity</div> {{!!}} <div class="value">{{{dexterity}}}</div> }}
+
{{#if: {{{flammability|}}} | {{!}} <div>Flammability</div> {{!!}} {{{flammability}}} }}
{{#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: {{{basehungerrate|}}} | {{!}} <div>Hunger rate</div> {{!!}} {{{basehungerrate}}} }}
 
|-
 
|-
{{#if: {{{reflex|}}} | {{!}} colspan="2" {{!}} <div>Reflex</div> {{!!}} colspan="2" {{!}} <div class="value">{{{reflex}}} {{reflex}}</div> }}
+
{{#ifeq: {{{has_gender|}}} | no | {{!}} <div>Has gender</div> {{!!}} [[File:Checkoff.png|20px]] }}
 
|-
 
|-
{{#if: {{{fortitude|}}} | {{!}} colspan="2" {{!}} <div>Fortitude</div> {{!!}} colspan="2" {{!}} <div class="value">{{{fortitude}}} {{fortitude}}</div> }}
+
{{#ifeq: {{{herdanimal|}}} | yes | {{!}} <div>Herd animal</div> {{!!}} [[File:Checkon.png|20px]] }}
 
|-
 
|-
{{#if: {{{will|}}} | {{!}} colspan="2" {{!}} <div>Will</div> {{!!}} colspan="2" {{!}} <div class="value">{{{will}}} {{will}}</div> }}
+
{{#if: {{{herdsize_min|}}} {{{herdsize_max|}}} | {{!}} <div>Herd size</div> {{!!}} {{#ifexpr: {{{herdsize_max|}}} > {{{herdsize_min|}}} | {{{herdsize_min}}}-{{{herdsize_max|}}} animals | {{{herdsize_min|}}} animals }} }}
 
|-
 
|-
{{#if: {{{dr_base|}}} | {{!}} <div>DR</div> {{!!}} <div class="value">{{{dr_base}}}</div> }}
+
{{#ifeq: {{{psychicsensitivity|}}} | no | {{!}} <div>Psychic immunity</div> {{!!}} [[File:Checkon.png|20px]] }}
{{#if: {{{dr_burn|}}} | {{!}} <div>DR Burn</div> {{!!}} <div class="value">{{{dr_burn}}}</div>
 
<!-- 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>
+
{{#ifeq: {{{toxicsensitivity|}}} | no | {{!}} <div>Toxic immunity</div> {{!!}} [[File:Checkon.png|20px]] }}
<!-- 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: {{{combatpower|}}} {{{armorrating_blunt|}}} {{{armorrating_heat|}}} {{{armorrating_sharp|}}}
<!-- else -->          | {{#if: {{{dr_base|}}} |    {{!}} <div>DR Pierce</div> {{!!}} <div class="value">{{{dr_base}}}</div> }} }}
+
| {{!}} colspan="2" class="infoboxdescription" {{!}} Combat }}
{{#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: {{{combatpower|}}} | {{!}} <div>Combat power</div> {{!!}} {{{combatpower}}} }}
<!-- 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: {{{armorrating_blunt|}}} | {{!}} <div>Armor blunt</div> {{!!}} {{{armorrating_blunt}}}% }}
    {{#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: {{{armorrating_heat|}}} | {{!}} <div>Armor heat</div> {{!!}} {{{armorrating_heat}}}% }}
    {{#arraymap:{{{immunity|}}}|,|x|* [[x]]|\n}}
 
</div> }}
 
 
|-
 
|-
{{#if: {{{loot|}}} | {{!}} <div>Loot</div> {{!!}} colspan="3" {{!}} <div class="value" style="text-align:left; font-weight: normal;">
+
{{#if: {{{armorrating_sharp|}}} | {{!}} <div>Armor sharp</div> {{!!}} {{{armorrating_sharp}}}% }}
    {{#arraymap:{{{loot|}}}|,|x|* [[x]]|\n}}
 
</div> }}
 
 
|-
 
|-
{{#vardefine:monster_locations | {{Cargo monster locations}} }}
+
{{#if: {{{life_expectancy|}}} {{{minage_baby|}}} {{{mass_baby|}}} {{{minage_juvenile|}}} {{{mass_juvenile|}}} {{{minage_adult|}}} {{{mass_adult|}}} {{{gestation_period|}}} {{{offspring_low|}}} {{{offspring_high|}}}
{{#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> || }}
+
| {{!}} colspan="2" class="infoboxdescription" {{!}} Life phases }}
 
|-
 
|-
{{#if: {{{internalname|}}} {{{guid|}}}
+
{{#if: {{{life_expectancy|}}} | {{!}} <div>Life expectancy</div> {{!!}} {{{life_expectancy}}} years }}
| {{!}} colspan="4" class="infoboxdescription1" {{!}} Technical }}
 
 
|-
 
|-
{{#if: {{{internalname|}}} | {{!}} <div>Creature ID</div> {{!!}} colspan="3" {{!}} <div class="value" style="word-break: break-all;">{{{internalname}}}</div>}}
+
{{#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: {{{maxpreybodysize|}}} | {{!}} <div>Prey body size</div> {{!!}} Maximum {{{maxpreybodysize}}} }}
 +
|-
 +
{{#if: {{{manhunter_damage|}}} {{{manhunter_tamefail|}}} | {{!}} <div>Manhunter chance</div> {{!!}} {{#if: {{{manhunter_damage|}}} |
 +
  {{#ifeq: {{{manhunter_damage|}}} | 0 |
 +
* Never on damage |
 +
* {{#expr: {{{manhunter_damage}}}*100}}% on damage }} }} {{#if: {{{manhunter_tamefail|}}} | {{#ifeq: {{{manhunter_tamefail|}}} | 0 |
 +
* Never on tame failure |
 +
* {{#expr: {{{manhunter_tamefail}}}*100}}% on tame failure }} }} }}
 +
|-
 +
{{#if: {{{wildness|}}} | {{!}} <div>Wildness</div> {{!!}} {{#expr:{{{wildness}}}*100}}% }}
 +
|-
 +
{{#if: {{{packanimal|}}} | {{!}} <div>Pack animal</div> {{!!}} {{#ifeq: {{{packanimal|}}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
 +
|-
 +
{{#if: {{#var:carryingcapacity}} | {{!}} <div>Carry capacity</div> {{!!}} {{#var:carryingcapacity}} kg }}
 +
|-
 +
{{#if: {{{handleskill|}}} | {{!}} <div>Handling skill</div> {{!!}} {{{handleskill}}} animals skill}}
 +
|-
 +
{{#if: {{{trainability|}}} | {{!}} <div>Trainability</div> {{!!}} {{ucfirst:{{lc:{{{trainability}}} }} }} }}
 +
|-
 +
{{#if: {{#var: train_obedience}} | {{!}} <div>Train obedience</div> {{!!}} {{#ifeq: {{#var: train_obedience|}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
 +
|-
 +
{{#if: {{#var: train_release}} | {{!}} <div>Train release</div> {{!!}} {{#ifeq: {{#var: train_release|}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
 +
|-
 +
{{#if: {{#var: train_rescue}} | {{!}} <div>Train rescue</div> {{!!}} {{#ifeq: {{#var: train_rescue|}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
 +
|-
 +
{{#if: {{#var: train_haul}} | {{!}} <div>Train haul</div> {{!!}} {{#ifeq: {{#var: train_haul|}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
 +
|-
 +
{{#if: {{{petness|}}} | {{!}} <div>Petness</div> {{!!}} {{#expr:{{{petness}}}*100}}% }}
 +
|-
 +
{{#if: {{{nameontamechance|}}} | {{!}} <div>Name on tame</div> {{!!}} {{#expr: {{{nameontamechance}}}*100}}% chance }}
 +
|-
 +
{{#if: {{{nameonnuzzlechance|}}} | {{!}} <div>Name on nuzzle</div> {{!!}} {{#expr: {{{nameonnuzzlechance}}}*100}}% chance }}
 +
|-
 +
{{#if: {{{nuzzlehours|}}} | {{!}} <div>Nuzzle interval</div> {{!!}} Every {{{nuzzlehours}}} hours }}
 +
|-
 +
{{#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|}}}
 +
| {{!}} colspan="2" class="infoboxdescription" {{!}} Products }}
 +
|-
 +
{{#if: {{{leather_amount|}}} {{{leather_type|}}} | {{!}} <div>Leather</div> {{!!}} {{#if: {{{leather_amount|}}} | {{{leather_amount}}} }} {{#if: {{{leather_type|}}} | [[{{{leather_type}}}]] }} }}<!-- should be an icon? -->
 +
|-
 +
{{#if: {{{meat_amount|}}} {{{meat_type|}}} | {{!}} <div>Meat</div> {{!!}} {{#if: {{{meat_amount|}}} | {{{meat_amount}}} }} {{#if: {{{meat_type|}}} | [[{{{meat_type}}}]] }} }}<!-- should be an icon? -->
 +
|-
 +
{{#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 }} }}
 +
|-
 +
{{#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? -->
 +
|-
 +
{{#if: {{{egg_amountlow|}}} {{{egg_amounthigh|}}} {{{egg_type|}}} {{{egg_time|}}} | {{!}} <div>Eggs</div>
 +
{{!!}} {{#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) }} }}
 +
|-
 +
{{#if: {{{ecosystemweight|}}} {{{recipes_operation|}}} {{{tradetags|}}}
 +
| {{!}} colspan="2" class="infoboxdescription" {{!}} Other }}
 +
|-
 +
{{#if: {{{ecosystemweight|}}} | {{!}} <div>Eco-system weight</div> {{!!}} {{{ecosystemweight}}} }}
 +
|-
 +
{{#if: {{{recipes_operation|}}} | {{!}} <div>Recipes</div> {{!!}} {{#if:{{#pos: {{{recipes_operation}}} |,}} | {{#arraymap:{{{recipes_operation|}}}|,|x|* x|\n}} | {{{recipes_operation}}} }} }}<!-- beware of x in names-->
 +
|-
 +
{{#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) = -->
}}