Difference between revisions of "Template:Infobox pawn"

From RimWorld Wiki
Jump to navigation Jump to search
(Updated)
m (category)
 
(6 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              = String
 
| name              = String
 
| image              = File
 
| image              = File
Line 18: Line 18:
 
| marketvalue        = Integer
 
| marketvalue        = Integer
 
| movespeed          = Float
 
| movespeed          = Float
 +
| herdanimal        = Boolean
 +
| herdsize_min      = Integer
 +
| herdsize_max      = Integer
 +
| psychicsensitivity = Boolean
 +
| toxicsensitivity  = Boolean
 
<!--  Combat  -->
 
<!--  Combat  -->
 
| armorrating_blunt  = Float
 
| armorrating_blunt  = Float
Line 26: Line 31:
 
| life_expectancy    = Integer
 
| life_expectancy    = Integer
 
| mass_adult        = Float
 
| mass_adult        = Float
 +
| mass_juvenile      = Float
 
| mass_baby          = Float
 
| mass_baby          = Float
| mass_juvenile      = Float
 
| maturity_age      = Float
 
 
| minage_adult      = Float
 
| minage_adult      = Float
 +
| minage_juvenile    = Float
 
| minage_baby        = Float
 
| minage_baby        = Float
| minage_juvenile    = Float
 
 
| gestation_period  = Integer
 
| gestation_period  = Integer
 
| offspring_low      = Integer
 
| offspring_low      = Integer
Line 40: Line 44:
 
| manhunter_tamefail = Float
 
| manhunter_tamefail = Float
 
| nameontamechance  = Float
 
| nameontamechance  = Float
 +
| nameonnuzzlechance = Float
 
| nuzzlehours        = Integer
 
| nuzzlehours        = Integer
 
| petness            = Float
 
| petness            = Float
 
| predator          = Boolean
 
| predator          = Boolean
 
| maxpreybodysize    = Float
 
| maxpreybodysize    = Float
| trainability      = String    <!-- or Page? -->
 
 
| packanimal        = Boolean
 
| packanimal        = Boolean
 
| carryingcapacity  = Integer
 
| carryingcapacity  = Integer
| train_haul        = Boolean
+
| trainability      = String    <!-- or Page? -->
 
| train_obedience    = Boolean
 
| train_obedience    = Boolean
 
| train_release      = Boolean
 
| train_release      = Boolean
 
| train_rescue      = Boolean
 
| train_rescue      = Boolean
 +
| train_haul        = Boolean
 
| wildness          = Float
 
| wildness          = Float
 
<!--  Product  -->
 
<!--  Product  -->
 
| egg_amountlow      = Integer
 
| egg_amountlow      = Integer
 
| egg_amounthigh    = Integer
 
| egg_amounthigh    = Integer
| egg_type          = Integer
+
| egg_type          = String
 
| egg_time          = Integer
 
| egg_time          = Integer
 
| leather_amount    = Integer
 
| leather_amount    = Integer
Line 74: Line 79:
 
</noinclude><!--
 
</noinclude><!--
  
--><includeonly><!-- Cargo store section  --><!--
+
--><includeonly><!-- Cargo store section  --><!-- disable namespacecheck for now
--><!--{{#ifeq: {{NAMESPACENUMBER}} | 0 |-->
+
{{#ifeq: {{NAMESPACENUMBER}} | 0 | -->
{{#cargo_store:_table = Animal
+
{{#cargo_store:_table = Pawn
 
| name              = {{{name|}}}
 
| name              = {{{name|}}}
 
| image              = {{{image|}}}
 
| image              = {{{image|}}}
Line 91: Line 96:
 
| diet              = {{{diet|}}}
 
| diet              = {{{diet|}}}
 
| flammability      = {{{flammability|}}}
 
| flammability      = {{{flammability|}}}
| has_gender        = {{{has_gender|}}}
+
| has_gender        = {{#if: {{{has_gender|}}} | {{{has_gender}}} | yes}}
 
| marketvalue        = {{{marketvalue|}}}
 
| marketvalue        = {{{marketvalue|}}}
 
| movespeed          = {{{movespeed|}}}
 
| movespeed          = {{{movespeed|}}}
 +
| herdanimal        = {{#if: {{{herdanimal|}}} | {{{herdanimal}}} | no}}
 +
| herdsize_min      = {{{herdsize_min|}}}
 +
| herdsize_max      = {{{herdsize_max|}}}
 +
| psychicsensitivity = {{#if: {{{psychicsensitivity|}}} | {{{psychicsensitivity}}} | yes}}
 +
| toxicsensitivity  = {{#if: {{{toxicsensitivity|}}} | {{{toxicsensitivity}}} | yes}}
 
<!--  Combat  -->
 
<!--  Combat  -->
 
| armorrating_blunt  = {{{armorrating_blunt|}}}
 
| armorrating_blunt  = {{{armorrating_blunt|}}}
Line 102: Line 112:
 
| life_expectancy    = {{{life_expectancy|}}}
 
| life_expectancy    = {{{life_expectancy|}}}
 
| mass_adult        = {{{mass_adult|}}}
 
| mass_adult        = {{{mass_adult|}}}
| mass_baby          = {{#vardefine: mass_baby | {{#if: {{{mass_baby|}}} | {{{mass_baby}}} |  
+
| mass_juvenile      = {{#vardefineecho: mass_juvenile | {{#if: {{{mass_juvenile|}}} | {{{mass_juvenile}}} |  
     {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/5}} }} }} }} {{#var:mass_baby}}
+
     {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/2}} }} }} }}
| mass_juvenile      = {{#vardefine: mass_juvenile | {{#if: {{{mass_juvenile|}}} | {{{mass_juvenile}}} |  
+
| mass_baby          = {{#vardefineecho: mass_baby | {{#if: {{{mass_baby|}}} | {{{mass_baby}}} |  
     {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/2}} }} }} }} {{#var:mass_juvenile}}
+
     {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/5}} }} }} }}
| maturity_age      = {{{maturity_age|}}}
 
 
| minage_adult      = {{{minage_adult|}}}
 
| minage_adult      = {{{minage_adult|}}}
 +
| minage_juvenile    = {{{minage_juvenile|}}}
 
| minage_baby        = {{{minage_baby|}}}
 
| minage_baby        = {{{minage_baby|}}}
| minage_juvenile    = {{{minage_juvenile|}}}
 
 
| gestation_period  = {{{gestation_period|}}}
 
| gestation_period  = {{{gestation_period|}}}
 
| offspring_low      = {{{offspring_low|}}}
 
| offspring_low      = {{{offspring_low|}}}
Line 118: Line 127:
 
| manhunter_tamefail = {{{manhunter_tamefail|}}}
 
| manhunter_tamefail = {{{manhunter_tamefail|}}}
 
| nameontamechance  = {{{nameontamechance|}}}
 
| nameontamechance  = {{{nameontamechance|}}}
 +
| nameonnuzzlechance = {{{nameonnuzzlechance|}}}
 
| nuzzlehours        = {{{nuzzlehours|}}}
 
| nuzzlehours        = {{{nuzzlehours|}}}
 
| petness            = {{{petness|}}}
 
| petness            = {{{petness|}}}
Line 124: Line 134:
 
| trainability      = {{{trainability|}}}
 
| trainability      = {{{trainability|}}}
 
| packanimal        = {{{packanimal|}}}
 
| packanimal        = {{{packanimal|}}}
| carryingcapacity  = {{{carryingcapacity|}}}
+
| carryingcapacity  = {{#vardefineecho: carryingcapacity | {{#if: {{{basebodysize|}}} | {{#expr: 75 * {{{basebodysize|}}} round0}} }} }}
| train_obedience    = {{{train_obedience|}}}
+
| train_obedience    = {{#vardefineecho: train_obedience | {{#ifeq: {{{trainability|}}}|none|no|yes}} }}
| train_release      = {{{train_release|}}}
+
| train_release      = {{#vardefineecho: train_release | {{#switch: {{{trainability|}}}
| train_rescue      = {{{train_rescue|}}}
+
    |none|simple = no
| train_haul        = {{{train_haul|}}}
+
    |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|}}}
 
| wildness          = {{{wildness|}}}
 
<!--  Product  -->
 
<!--  Product  -->
Line 149: Line 165:
 
| tradetags          = {{{tradetags|}}}
 
| tradetags          = {{{tradetags|}}}
 
<!--| butcherproducts?? (mechs) = List (,) of String -->
 
<!--| butcherproducts?? (mechs) = List (,) of String -->
}}<!-- }} --><!--
+
}}<!-- }}don't forget me! --><!--
 
     ===  #vardefine to use variables outside the infobox  ===
 
     ===  #vardefine to use variables outside the infobox  ===
 
      
 
      
 
-->{{#vardefine:description_markup|{{{description_markup}}} }}<!--
 
-->{{#vardefine:description_markup|{{{description_markup}}} }}<!--
 
-->{| class="infoboxtable"
 
-->{| class="infoboxtable"
! colspan="2" class="infoboxname1" | {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
+
! colspan="2" class="infoboxname" | {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
 +
|-
 +
|{{#if: {{{type|}}} | {{!}} <div style="text-align: center;">'''[[{{{type|}}}]]'''</div>}}
 +
|{{#if: {{{subtype|}}} | {{!}} <div style="text-align: center;">'''[[{{{subtype|}}}]]'''</div>}}  
 
|-
 
|-
 
! colspan="2" | {{#if: {{{image|}}} | [[File:{{{image}}}]] | [[File:Questionmark black.png|link=]]{{#ifeq: {{NAMESPACE}} | 0 | [[Category:Image wanted]]}} }}  
 
! colspan="2" | {{#if: {{{image|}}} | [[File:{{{image}}}]] | [[File:Questionmark black.png|link=]]{{#ifeq: {{NAMESPACE}} | 0 | [[Category:Image wanted]]}} }}  
Line 160: Line 179:
 
| colspan="2" | {{#if: {{{description|}}} | ''{{{description}}}'' }}
 
| colspan="2" | {{#if: {{{description|}}} | ''{{{description}}}'' }}
 
|-
 
|-
{{#if: {{{type|}}} {{{subtype|}}} {{{basebodysize|}}} {{{basehealthscale|}}} {{{basehungerrate|}}} {{{comfytemp_min|}}} {{{comfytemp_max|}}} {{{diet|}}} {{{flammability|}}} {{{has_gender|}}} {{{marketvalue|}}} {{{movespeed|}}}
+
{{#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="infoboxdescription1" {{!}} General }}
+
| {{!}} colspan="2" class="infoboxdescription" {{!}} General }}
|-
+
|-<!--
 
{{#if: {{{type|}}} | {{!}} <div>Type</div> {{!!}} [[{{ucfirst: {{{type}}} }}]] }}
 
{{#if: {{{type|}}} | {{!}} <div>Type</div> {{!!}} [[{{ucfirst: {{{type}}} }}]] }}
 
|-
 
|-
 
{{#if: {{{subtype|}}} | {{!}} <div>Subtype</div> {{!!}} [[{{ucfirst: {{{subtype}}} }}]] }}
 
{{#if: {{{subtype|}}} | {{!}} <div>Subtype</div> {{!!}} [[{{ucfirst: {{{subtype}}} }}]] }}
 +
|-    -->
 +
{{#if: {{{marketvalue|}}} | {{!}} <div>Market value</div> {{!!}} {{formatnum:{{{marketvalue}}} }} [[File:silver_c.png|20px]] }}
 +
|-
 +
{{#if: {{{movespeed|}}} | {{!}} <div>Move speed</div> {{!!}} {{{movespeed}}} cells/sec}}
 +
|-
 +
{{#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: {{{basebodysize|}}} | {{!}} <div>Body size</div> {{!!}} {{{basebodysize}}} }}
 
{{#if: {{{basebodysize|}}} | {{!}} <div>Body size</div> {{!!}} {{{basebodysize}}} }}
 
|-
 
|-
 
{{#if: {{{basehealthscale|}}} | {{!}} <div>Health scale</div> {{!!}} {{{basehealthscale}}} }}
 
{{#if: {{{basehealthscale|}}} | {{!}} <div>Health scale</div> {{!!}} {{{basehealthscale}}} }}
 +
|-
 +
{{#if: {{{flammability|}}} | {{!}} <div>Flammability</div> {{!!}} {{{flammability}}} }}
 
|-
 
|-
 
{{#if: {{{basehungerrate|}}} | {{!}} <div>Hunger rate</div> {{!!}} {{{basehungerrate}}} }}
 
{{#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-->
+
{{#ifeq: {{{has_gender|}}} | no | {{!}} <div>Has gender</div> {{!!}} [[File:Checkoff.png|20px]] }}
 
|-
 
|-
{{#if: {{{diet|}}} | {{!}} <div>Diet</div> {{!!}} [[{{ucfirst: {{{diet}}} }}]] }}
+
{{#ifeq: {{{herdanimal|}}} | yes | {{!}} <div>Herd animal</div> {{!!}} [[File:Checkon.png|20px]] }}
 
|-
 
|-
{{#if: {{{flammability|}}} | {{!}} <div>Flammability</div> {{!!}} {{{flammability}}} }}
+
{{#if: {{{herdsize_min|}}} {{{herdsize_max|}}} | {{!}} <div>Herd size</div> {{!!}} {{#ifexpr: {{{herdsize_max|}}} > {{{herdsize_min|}}} | {{{herdsize_min}}}-{{{herdsize_max|}}} animals | {{{herdsize_min|}}} animals }} }}
 
|-
 
|-
{{#ifeq: {{{has_gender|}}} | no | {{!}} <div>Has gender</div> {{!!}} [[File:Checkoff.png|20px]] }}
+
{{#ifeq: {{{psychicsensitivity|}}} | no | {{!}} <div>Psychic immunity</div> {{!!}} [[File:Checkon.png|20px]] }}
 
|-
 
|-
{{#if: {{{marketvalue|}}} | {{!}} <div>Market value</div> {{!!}} {{formatnum:{{{marketvalue}}} }} [[File:silver_c.png|20px]] }}
+
{{#ifeq: {{{toxicsensitivity|}}} | no | {{!}} <div>Toxic immunity</div> {{!!}} [[File:Checkon.png|20px]] }}
|-
 
{{#if: {{{movespeed|}}} | {{!}} <div>Move speed</div> {{!!}} {{{movespeed}}} cells/sec}}
 
 
|-
 
|-
 
{{#if: {{{combatpower|}}} {{{armorrating_blunt|}}} {{{armorrating_heat|}}} {{{armorrating_sharp|}}}
 
{{#if: {{{combatpower|}}} {{{armorrating_blunt|}}} {{{armorrating_heat|}}} {{{armorrating_sharp|}}}
| {{!}} colspan="2" class="infoboxdescription1" {{!}} Combat }}
+
| {{!}} colspan="2" class="infoboxdescription" {{!}} Combat }}
 
|-
 
|-
 
{{#if: {{{combatpower|}}} | {{!}} <div>Combat power</div> {{!!}} {{{combatpower}}} }}
 
{{#if: {{{combatpower|}}} | {{!}} <div>Combat power</div> {{!!}} {{{combatpower}}} }}
Line 196: Line 223:
 
{{#if: {{{armorrating_sharp|}}} | {{!}} <div>Armor sharp</div> {{!!}} {{{armorrating_sharp}}}% }}
 
{{#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|}}}
+
{{#if: {{{life_expectancy|}}} {{{minage_baby|}}} {{{mass_baby|}}} {{{minage_juvenile|}}} {{{mass_juvenile|}}} {{{minage_adult|}}} {{{mass_adult|}}} {{{gestation_period|}}} {{{offspring_low|}}} {{{offspring_high|}}}
| {{!}} colspan="2" class="infoboxdescription1" {{!}} Life phases }}
+
| {{!}} colspan="2" class="infoboxdescription" {{!}} Life phases }}
 
|-
 
|-
 
{{#if: {{{life_expectancy|}}} | {{!}} <div>Life expectancy</div> {{!!}} {{{life_expectancy}}} years }}
 
{{#if: {{{life_expectancy|}}} | {{!}} <div>Life expectancy</div> {{!!}} {{{life_expectancy}}} years }}
 
|-
 
|-
{{#if: {{{minage_baby|}}} | {{!}} <div>Min age baby</div> {{!!}} {{{minage_baby}}} 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: {{#var:mass_baby}} | {{!}} <div>Mass baby</div> {{!!}} {{#var:mass_baby}} 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_juvenile|}}} | {{!}} <div>Min age juvenile</div> {{!!}} {{{minage_juvenile}}} years }}
+
{{#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: {{#var:mass_juvenile}} | {{!}} <div>Mass juvenile</div> {{!!}} {{#var: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</div> {{!!}} {{{gestation_period}}} days }}
 
{{#if: {{{gestation_period|}}} | {{!}} <div>Gestation</div> {{!!}} {{{gestation_period}}} days }}
Line 219: Line 241:
 
{{#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: {{{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|}}} {{{nameontamechance|}}}
+
{{#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="infoboxdescription1" {{!}} Hunting and taming }}
+
| {{!}} colspan="2" class="infoboxdescription" {{!}} Hunting and taming }}
 
|-
 
|-
 
{{#if: {{{predator|}}} | {{!}} <div>Predator</div> {{!!}} {{#ifeq: {{{predator|}}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
 
{{#if: {{{predator|}}} | {{!}} <div>Predator</div> {{!!}} {{#ifeq: {{{predator|}}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
 
|-
 
|-
{{#if: {{{maxpreybodysize|}}} | {{!}} <div>Max prey body size</div> {{!!}} {{{maxpreybodysize}}} }}
+
{{#if: {{{maxpreybodysize|}}} | {{!}} <div>Prey body size</div> {{!!}} Maximum {{{maxpreybodysize}}} }}
 
|-
 
|-
{{#if: {{{manhunter_damage|}}} {{{manhunter_tamefail|}}} | {{!}} <div>Manhunter chance</div> {{!!}} {{#if: {{{manhunter_damage|}}} |  
+
{{#if: {{{manhunter_damage|}}} {{{manhunter_tamefail|}}} | {{!}} <div>Manhunter chance</div> {{!!}} {{#if: {{{manhunter_damage|}}} |
* {{#expr: {{{manhunter_damage}}}*100}}% on damage }} {{#if: {{{manhunter_tamefail|}}} |  
+
  {{#ifeq: {{{manhunter_damage|}}} | 0 |
* {{#expr: {{{manhunter_tamefail}}}*100}}% on tame failure }} }}
+
* 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: {{{wildness|}}} | {{!}} <div>Wildness</div> {{!!}} {{#expr:{{{wildness}}}*100}}% }}
 
|-
 
|-
{{#if: {{{handleskill|}}} | {{!}} <div>Min. handling</div> {{!!}} {{{handleskill}}} animals skill}}
+
{{#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: {{{trainability|}}} | {{!}} <div>Trainability</div> {{!!}} {{ucfirst:{{lc:{{{trainability}}} }} }} }}
 
|-
 
|-
{{#if: {{{packanimal|}}} | {{!}} <div>Pack animal</div> {{!!}} {{#ifeq: {{{packanimal|}}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
+
{{#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: {{{carryingcapacity|}}} | {{!}} <div>Carry capacity</div> {{!!}} {{{carryingcapacity}}} kg }}
+
{{#if: {{#var: train_rescue}} | {{!}} <div>Train rescue</div> {{!!}} {{#ifeq: {{#var: train_rescue|}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
|-<!--
 
{{#if: {{#var:carryingcapacity}} | {{!}} <div>Carry capacity test</div> {{!!}} {{#var:carryingcapacity}} kg }}
 
|--->
 
{{#if: {{{train_obedience|}}} | {{!}} <div>Train obedience</div> {{!!}} {{#ifeq: {{{train_obedience|}}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
 
 
|-
 
|-
{{#if: {{{train_release|}}} | {{!}} <div>Train release</div> {{!!}} {{#ifeq: {{{train_release|}}} | 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: {{{train_rescue|}}} | {{!}} <div>Train rescue</div> {{!!}} {{#ifeq: {{{train_rescue|}}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
+
{{#if: {{{petness|}}} | {{!}} <div>Petness</div> {{!!}} {{#expr:{{{petness}}}*100}}% }}
 
|-
 
|-
{{#if: {{{train_haul|}}} | {{!}} <div>Train haul</div> {{!!}} {{#ifeq: {{{train_haul|}}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }}
+
{{#if: {{{nameontamechance|}}} | {{!}} <div>Name on tame</div> {{!!}} {{#expr: {{{nameontamechance}}}*100}}% chance }}
 
|-
 
|-
{{#if: {{{petness|}}} | {{!}} <div>Petness</div> {{!!}} {{{petness}}} }}
+
{{#if: {{{nameonnuzzlechance|}}} | {{!}} <div>Name on nuzzle</div> {{!!}} {{#expr: {{{nameonnuzzlechance}}}*100}}% chance }}
 
|-
 
|-
 
{{#if: {{{nuzzlehours|}}} | {{!}} <div>Nuzzle interval</div> {{!!}} Every {{{nuzzlehours}}} hours }}
 
{{#if: {{{nuzzlehours|}}} | {{!}} <div>Nuzzle interval</div> {{!!}} Every {{{nuzzlehours}}} hours }}
|-
 
{{#if: {{{nameontamechance|}}} | {{!}} <div>Name on tame</div> {{!!}} {{#expr: {{{nameontamechance}}}*100}}% chance }}
 
 
|-
 
|-
 
{{#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: {{{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="infoboxdescription1" {{!}} Products }}
+
| {{!}} 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: {{{leather_amount|}}} {{{leather_type|}}} | {{!}} <div>Leather</div> {{!!}} {{#if: {{{leather_amount|}}} | {{{leather_amount}}} }} {{#if: {{{leather_type|}}} | [[{{{leather_type}}}]] }} }}<!-- should be an icon? -->
Line 271: Line 296:
 
|-
 
|-
 
{{#if: {{{ecosystemweight|}}} {{{recipes_operation|}}} {{{tradetags|}}}
 
{{#if: {{{ecosystemweight|}}} {{{recipes_operation|}}} {{{tradetags|}}}
| {{!}} colspan="2" class="infoboxdescription1" {{!}} Other }}
+
| {{!}} colspan="2" class="infoboxdescription" {{!}} Other }}
 
|-
 
|-
 
{{#if: {{{ecosystemweight|}}} | {{!}} <div>Eco-system weight</div> {{!!}} {{{ecosystemweight}}} }}
 
{{#if: {{{ecosystemweight|}}} | {{!}} <div>Eco-system weight</div> {{!!}} {{{ecosystemweight}}} }}
Line 287: Line 312:
 
--></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) = -->
}}