Difference between revisions of "Template:Infobox pawn"
Jump to navigation
Jump to search
(New update with training code) |
(More fields and re-ordering some things) |
||
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 | ||
Line 55: | Line 60: | ||
| 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 94: | Line 99: | ||
| 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 = {{#vardefine: mass_juvenile | {{#if: {{{mass_juvenile|}}} | {{{mass_juvenile}}} | | ||
+ | {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/2}} }} }} }} {{#var:mass_juvenile}} | ||
| mass_baby = {{#vardefine: mass_baby | {{#if: {{{mass_baby|}}} | {{{mass_baby}}} | | | mass_baby = {{#vardefine: 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}} }} }} }} {{#var:mass_baby}} | ||
− | |||
− | |||
− | |||
| 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 161: | Line 171: | ||
-->{| class="infoboxtable" | -->{| class="infoboxtable" | ||
! colspan="2" class="infoboxname1" | {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }} | ! colspan="2" class="infoboxname1" | {{#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 166: | 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="infoboxdescription1" {{!}} General }} | ||
|- | |- | ||
Line 173: | Line 186: | ||
{{#if: {{{subtype|}}} | {{!}} <div>Subtype</div> {{!!}} [[{{ucfirst: {{{subtype}}} }}]] }} | {{#if: {{{subtype|}}} | {{!}} <div>Subtype</div> {{!!}} [[{{ucfirst: {{{subtype}}} }}]] }} | ||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{marketvalue|}}} | {{!}} <div>Market value</div> {{!!}} {{formatnum:{{{marketvalue}}} }} [[File:silver_c.png|20px]] }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{movespeed|}}} | {{!}} <div>Move speed</div> {{!!}} {{{movespeed}}} cells/sec}} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{diet|}}} | {{!}} <div>Diet</div> {{!!}} [[{{ucfirst: {{{diet}}} }}]] }} |
|- | |- | ||
{{#if: {{{comfytemp_min|}}} {{{comfytemp_max|}}} | {{!}} <div>Temperature</div> {{!!}} {{{comfytemp_min}}}°C to {{{comfytemp_max}}}°C }}<!-- need more elaborate if--> | {{#if: {{{comfytemp_min|}}} {{{comfytemp_max|}}} | {{!}} <div>Temperature</div> {{!!}} {{{comfytemp_min}}}°C to {{{comfytemp_max}}}°C }}<!-- need more elaborate if--> | ||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{basebodysize|}}} | {{!}} <div>Body size</div> {{!!}} {{{basebodysize}}} }} |
+ | |- | ||
+ | {{#if: {{{basehealthscale|}}} | {{!}} <div>Health scale</div> {{!!}} {{{basehealthscale}}} }} | ||
|- | |- | ||
{{#if: {{{flammability|}}} | {{!}} <div>Flammability</div> {{!!}} {{{flammability}}} }} | {{#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]] }} | {{#ifeq: {{{has_gender|}}} | no | {{!}} <div>Has gender</div> {{!!}} [[File:Checkoff.png|20px]] }} | ||
|- | |- | ||
− | {{#if: {{{ | + | {{#ifeq: {{{herdanimal|}}} | yes | {{!}} <div>Herd animal</div> {{!!}} [[File:Checkon.png|20px]] }} |
+ | |- | ||
+ | {{#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|}}} | {{#if: {{{combatpower|}}} {{{armorrating_blunt|}}} {{{armorrating_heat|}}} {{{armorrating_sharp|}}} | ||
Line 202: | 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="infoboxdescription1" {{!}} Life phases }} | | {{!}} colspan="2" class="infoboxdescription1" {{!}} 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: {{{ | ||
− | |||
− | |||
− | | | ||
− | {{#if: {{{ | ||
|- | |- | ||
− | {{#if: {{{ | + | {{#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: {{{gestation_period|}}} | {{!}} <div>Gestation</div> {{!!}} {{{gestation_period}}} days }} | {{#if: {{{gestation_period|}}} | {{!}} <div>Gestation</div> {{!!}} {{{gestation_period}}} days }} | ||
Line 225: | 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="infoboxdescription1" {{!}} 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|}}} | | ||
Line 241: | Line 257: | ||
{{#if: {{{wildness|}}} | {{!}} <div>Wildness</div> {{!!}} {{#expr:{{{wildness}}}*100}}% }} | {{#if: {{{wildness|}}} | {{!}} <div>Wildness</div> {{!!}} {{#expr:{{{wildness}}}*100}}% }} | ||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{packanimal|}}} | {{!}} <div>Pack animal</div> {{!!}} {{#ifeq: {{{packanimal|}}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }} |
|- | |- | ||
− | {{#if: {{ | + | {{#if: {{#var:carryingcapacity}} | {{!}} <div>Carry capacity</div> {{!!}} {{#var:carryingcapacity}} kg }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{handleskill|}}} | {{!}} <div>Handling skill</div> {{!!}} {{{handleskill}}} animals skill}} |
|- | |- | ||
− | {{#if: {{ | + | {{#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_obedience}} | {{!}} <div>Train obedience</div> {{!!}} {{#ifeq: {{#var: train_obedience|}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }} | ||
Line 257: | Line 273: | ||
{{#if: {{#var: train_haul}} | {{!}} <div>Train haul</div> {{!!}} {{#ifeq: {{#var: train_haul|}} | 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> {{!!}} {{{petness}}} }} | + | {{#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: {{{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|}}} |
Revision as of 09:08, 27 July 2019
This template defines the table "Animal". This table has not been created yet.
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) = --> }}
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. |