Difference between revisions of "Template:Infobox pawn"
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 = | + | {{#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 | ||
− | |||
− | |||
| minage_adult = Float | | minage_adult = Float | ||
+ | | minage_juvenile = Float | ||
| minage_baby = Float | | minage_baby = 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 | ||
− | |||
| packanimal = Boolean | | packanimal = Boolean | ||
| carryingcapacity = Integer | | carryingcapacity = Integer | ||
− | | | + | | 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 = | + | | 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 | --> | |
− | {{#cargo_store:_table = | + | {{#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_juvenile = {{#vardefineecho: mass_juvenile | {{#if: {{{mass_juvenile|}}} | {{{mass_juvenile}}} | |
− | {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/ | + | {{#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}}/ | + | {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/5}} }} }} }} |
− | |||
| minage_adult = {{{minage_adult|}}} | | minage_adult = {{{minage_adult|}}} | ||
+ | | minage_juvenile = {{{minage_juvenile|}}} | ||
| minage_baby = {{{minage_baby|}}} | | minage_baby = {{{minage_baby|}}} | ||
− | |||
| 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 = {{#vardefineecho: carryingcapacity | {{#if: {{{basebodysize|}}} | {{#expr: 75 * {{{basebodysize|}}} round0}} }} }} |
− | | train_obedience = {{{ | + | | train_obedience = {{#vardefineecho: train_obedience | {{#ifeq: {{{trainability|}}}|none|no|yes}} }} |
− | | train_release = {{{ | + | | train_release = {{#vardefineecho: train_release | {{#switch: {{{trainability|}}} |
− | | train_rescue = {{{ | + | |none|simple = no |
− | | 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=" | + | ! 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=" | + | | {{!}} 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}}}°C to {{{comfytemp_max}}}°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}}} }} | ||
|- | |- | ||
− | {{# | + | {{#ifeq: {{{has_gender|}}} | no | {{!}} <div>Has gender</div> {{!!}} [[File:Checkoff.png|20px]] }} |
|- | |- | ||
− | {{# | + | {{#ifeq: {{{herdanimal|}}} | yes | {{!}} <div>Herd animal</div> {{!!}} [[File:Checkon.png|20px]] }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{herdsize_min|}}} {{{herdsize_max|}}} | {{!}} <div>Herd size</div> {{!!}} {{#ifexpr: {{{herdsize_max|}}} > {{{herdsize_min|}}} | {{{herdsize_min}}}-{{{herdsize_max|}}} animals | {{{herdsize_min|}}} animals }} }} |
|- | |- | ||
− | {{#ifeq: {{{ | + | {{#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|}}} | {{#if: {{{combatpower|}}} {{{armorrating_blunt|}}} {{{armorrating_heat|}}} {{{armorrating_sharp|}}} | ||
− | | {{!}} colspan="2" class=" | + | | {{!}} 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 | + | {{#if: {{{life_expectancy|}}} {{{minage_baby|}}} {{{mass_baby|}}} {{{minage_juvenile|}}} {{{mass_juvenile|}}} {{{minage_adult|}}} {{{mass_adult|}}} {{{gestation_period|}}} {{{offspring_low|}}} {{{offspring_high|}}} |
− | | {{!}} colspan="2" class=" | + | | {{!}} 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: {{{ | + | {{#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: | + | {{#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: {{{ | + | {{#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: | ||
− | | | ||
− | {{#if: | ||
− | |||
− | {{# | ||
− | |||
− | {{# | ||
|- | |- | ||
{{#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=" | + | | {{!}} 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> | + | {{#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> | + | {{#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: {{{ | + | {{#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: | ||
− | |||
− | {{# | ||
|- | |- | ||
− | {{#if: {{ | + | {{#if: {{#var: train_haul}} | {{!}} <div>Train haul</div> {{!!}} {{#ifeq: {{#var: train_haul|}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{petness|}}} | {{!}} <div>Petness</div> {{!!}} {{#expr:{{{petness}}}*100}}% }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{nameontamechance|}}} | {{!}} <div>Name on tame</div> {{!!}} {{#expr: {{{nameontamechance}}}*100}}% chance }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#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: {{{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=" | + | | {{!}} 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=" | + | | {{!}} 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}} | ||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 10:39, 11 August 2022
This template defines the table "Pawn". View table.
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) = --> }}
The above documentation is transcluded from Template:Infobox pawn/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |