Difference between revisions of "Template:Infobox pawn"

From RimWorld Wiki
Jump to navigation Jump to search
m (Pangaea moved page Template:Infobox animal to Template:Infobox pawn: rename)
(rename and update)
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 81: Line 81:
 
--><includeonly><!-- Cargo store section  --><!-- disable namespacecheck for now
 
--><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 112: Line 112:
 
| life_expectancy    = {{{life_expectancy|}}}
 
| life_expectancy    = {{{life_expectancy|}}}
 
| mass_adult        = {{{mass_adult|}}}
 
| mass_adult        = {{{mass_adult|}}}
| mass_juvenile      = {{#vardefine: mass_juvenile | {{#if: {{{mass_juvenile|}}} | {{{mass_juvenile}}} |  
+
| mass_juvenile      = {{#vardefineecho: mass_juvenile | {{#if: {{{mass_juvenile|}}} | {{{mass_juvenile}}} |  
     {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/2}} }} }} }} {{#var:mass_juvenile}}
+
     {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/2}} }} }} }}
| mass_baby          = {{#vardefine: mass_baby | {{#if: {{{mass_baby|}}} | {{{mass_baby}}} |  
+
| mass_baby          = {{#vardefineecho: mass_baby | {{#if: {{{mass_baby|}}} | {{{mass_baby}}} |  
     {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/5}} }} }} }} {{#var:mass_baby}}
+
     {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/5}} }} }} }}
 
| minage_adult      = {{{minage_adult|}}}
 
| minage_adult      = {{{minage_adult|}}}
 
| minage_juvenile    = {{{minage_juvenile|}}}
 
| minage_juvenile    = {{{minage_juvenile|}}}
Line 134: Line 134:
 
| trainability      = {{{trainability|}}}
 
| trainability      = {{{trainability|}}}
 
| packanimal        = {{{packanimal|}}}
 
| packanimal        = {{{packanimal|}}}
| carryingcapacity  = {{#vardefine: carryingcapacity | {{#if: {{{basebodysize|}}} | {{#expr: 75 * {{{basebodysize|}}} round0}} }} }} {{#var: carryingcapacity}}
+
| carryingcapacity  = {{#vardefineecho: carryingcapacity | {{#if: {{{basebodysize|}}} | {{#expr: 75 * {{{basebodysize|}}} round0}} }} }}
| train_obedience    = {{#vardefine: train_obedience | {{#ifeq: {{{trainability|}}}|none|no|yes}} }} {{#var: train_obedience}}
+
| train_obedience    = {{#vardefineecho: train_obedience | {{#ifeq: {{{trainability|}}}|none|no|yes}} }}
| train_release      = {{#vardefine: train_release | {{#switch: {{{trainability|}}}
+
| train_release      = {{#vardefineecho: train_release | {{#switch: {{{trainability|}}}
 
     |none|simple = no
 
     |none|simple = no
     |intermediate|advanced = yes }} }} {{#var: train_release}}
+
     |intermediate|advanced = yes }} }}
| train_rescue      = {{#vardefine: train_rescue | {{#switch: {{{trainability|}}}
+
| train_rescue      = {{#vardefineecho: train_rescue | {{#switch: {{{trainability|}}}
 
     |none|simple|intermediate = no
 
     |none|simple|intermediate = no
     |advanced = {{#ifexpr: {{{basebodysize}}} >= 0.65 |yes|no}} }} }} {{#var: train_rescue}}
+
     |advanced = {{#ifexpr: {{{basebodysize}}} >= 0.65 |yes|no}} }} }}
| train_haul        = {{#vardefine: train_haul | {{#switch: {{{trainability|}}}
+
| train_haul        = {{#vardefineecho: train_haul | {{#switch: {{{trainability|}}}
 
     |none|simple|intermediate = no
 
     |none|simple|intermediate = no
     |advanced = {{#ifexpr: {{{basebodysize}}} >= 0.40 |yes|no}} }} }} {{#var: train_haul}}
+
     |advanced = {{#ifexpr: {{{basebodysize}}} >= 0.40 |yes|no}} }} }}
 
| wildness          = {{{wildness|}}}
 
| wildness          = {{{wildness|}}}
 
<!--  Product  -->
 
<!--  Product  -->

Revision as of 07:00, 31 July 2019

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

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