Difference between revisions of "Template:Infobox pawn"
Jump to navigation
Jump to search
m |
(Updated) |
||
Line 45: | Line 45: | ||
| maxpreybodysize = Float | | maxpreybodysize = Float | ||
| trainability = String <!-- or Page? --> | | trainability = String <!-- or Page? --> | ||
+ | | packanimal = Boolean | ||
+ | | carryingcapacity = Integer | ||
| train_haul = Boolean | | train_haul = Boolean | ||
| train_obedience = Boolean | | train_obedience = Boolean | ||
Line 73: | Line 75: | ||
--><includeonly><!-- Cargo store section --><!-- | --><includeonly><!-- Cargo store section --><!-- | ||
− | + | --><!--{{#ifeq: {{NAMESPACENUMBER}} | 0 |--> | |
− | {{#ifeq: {{NAMESPACENUMBER}} | 0 | | ||
{{#cargo_store:_table = Animal | {{#cargo_store:_table = Animal | ||
| name = {{{name|}}} | | name = {{{name|}}} | ||
Line 101: | Line 102: | ||
| life_expectancy = {{{life_expectancy|}}} | | life_expectancy = {{{life_expectancy|}}} | ||
| mass_adult = {{{mass_adult|}}} | | mass_adult = {{{mass_adult|}}} | ||
− | | mass_baby = {{{mass_baby|}}} | + | | mass_baby = {{#vardefine: mass_baby | {{#if: {{{mass_baby|}}} | {{{mass_baby}}} | |
− | | mass_juvenile = {{{mass_juvenile|}}} | + | {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/5}} }} }} }} {{#var:mass_baby}} |
+ | | mass_juvenile = {{#vardefine: mass_juvenile | {{#if: {{{mass_juvenile|}}} | {{{mass_juvenile}}} | | ||
+ | {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/2}} }} }} }} {{#var:mass_juvenile}} | ||
| maturity_age = {{{maturity_age|}}} | | maturity_age = {{{maturity_age|}}} | ||
| minage_adult = {{{minage_adult|}}} | | minage_adult = {{{minage_adult|}}} | ||
Line 120: | Line 123: | ||
| maxpreybodysize = {{{maxpreybodysize|}}} | | maxpreybodysize = {{{maxpreybodysize|}}} | ||
| trainability = {{{trainability|}}} | | trainability = {{{trainability|}}} | ||
− | | | + | | packanimal = {{{packanimal|}}} |
+ | | carryingcapacity = {{{carryingcapacity|}}} | ||
| train_obedience = {{{train_obedience|}}} | | train_obedience = {{{train_obedience|}}} | ||
| train_release = {{{train_release|}}} | | train_release = {{{train_release|}}} | ||
| train_rescue = {{{train_rescue|}}} | | train_rescue = {{{train_rescue|}}} | ||
+ | | train_haul = {{{train_haul|}}} | ||
| wildness = {{{wildness|}}} | | wildness = {{{wildness|}}} | ||
<!-- Product --> | <!-- Product --> | ||
Line 144: | Line 149: | ||
| tradetags = {{{tradetags|}}} | | tradetags = {{{tradetags|}}} | ||
<!--| butcherproducts?? (mechs) = List (,) of String --> | <!--| butcherproducts?? (mechs) = List (,) of String --> | ||
− | }}<!-- }} | + | }}<!-- }} --><!-- |
=== #vardefine to use variables outside the infobox === | === #vardefine to use variables outside the infobox === | ||
Line 174: | Line 179: | ||
{{#if: {{{flammability|}}} | {{!}} <div>Flammability</div> {{!!}} {{{flammability}}} }} | {{#if: {{{flammability|}}} | {{!}} <div>Flammability</div> {{!!}} {{{flammability}}} }} | ||
|- | |- | ||
− | {{#ifeq: {{{has_gender|}}} | no | {{!}} <div>Has gender</div> {{!!}} [[File: | + | {{#ifeq: {{{has_gender|}}} | no | {{!}} <div>Has gender</div> {{!!}} [[File:Checkoff.png|20px]] }} |
|- | |- | ||
{{#if: {{{marketvalue|}}} | {{!}} <div>Market value</div> {{!!}} {{formatnum:{{{marketvalue}}} }} [[File:silver_c.png|20px]] }} | {{#if: {{{marketvalue|}}} | {{!}} <div>Market value</div> {{!!}} {{formatnum:{{{marketvalue}}} }} [[File:silver_c.png|20px]] }} | ||
Line 198: | Line 203: | ||
{{#if: {{{minage_baby|}}} | {{!}} <div>Min age baby</div> {{!!}} {{{minage_baby}}} years }} | {{#if: {{{minage_baby|}}} | {{!}} <div>Min age baby</div> {{!!}} {{{minage_baby}}} years }} | ||
|- | |- | ||
− | {{#if: {{ | + | {{#if: {{#var:mass_baby}} | {{!}} <div>Mass baby</div> {{!!}} {{#var:mass_baby}} kg }} |
|- | |- | ||
{{#if: {{{minage_juvenile|}}} | {{!}} <div>Min age juvenile</div> {{!!}} {{{minage_juvenile}}} years }} | {{#if: {{{minage_juvenile|}}} | {{!}} <div>Min age juvenile</div> {{!!}} {{{minage_juvenile}}} years }} | ||
|- | |- | ||
− | {{#if: {{ | + | {{#if: {{#var:mass_juvenile}} | {{!}} <div>Mass juvenile</div> {{!!}} {{#var:mass_juvenile}} kg }} |
|- | |- | ||
{{#if: {{{minage_adult|}}} | {{!}} <div>Min age adult</div> {{!!}} {{{minage_adult}}} years }} | {{#if: {{{minage_adult|}}} | {{!}} <div>Min age adult</div> {{!!}} {{{minage_adult}}} years }} | ||
Line 210: | Line 215: | ||
{{#if: {{{maturity_age|}}} | {{!}} <div>Maturity age</div> {{!!}} {{{maturity_age}}} years }} | {{#if: {{{maturity_age|}}} | {{!}} <div>Maturity age</div> {{!!}} {{{maturity_age}}} years }} | ||
|- | |- | ||
− | {{#if: {{{gestation_period|}}} | {{!}} <div>Gestation | + | {{#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: {{{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 --> | ||
Line 217: | Line 222: | ||
| {{!}} colspan="2" class="infoboxdescription1" {{!}} Hunting and taming }} | | {{!}} colspan="2" class="infoboxdescription1" {{!}} Hunting and taming }} | ||
|- | |- | ||
− | {{#if: {{{predator|}}} | {{!}} <div>Predator</div> {{!!}} {{#ifeq: {{{predator|}}} | yes | [[File: | + | {{#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>Max prey body size</div> {{!!}} {{{maxpreybodysize}}} }} | ||
Line 231: | Line 236: | ||
{{#if: {{{trainability|}}} | {{!}} <div>Trainability</div> {{!!}} {{ucfirst:{{lc:{{{trainability}}} }} }} }} | {{#if: {{{trainability|}}} | {{!}} <div>Trainability</div> {{!!}} {{ucfirst:{{lc:{{{trainability}}} }} }} }} | ||
|- | |- | ||
− | {{#if: {{{train_obedience|}}} | {{!}} <div>Train obedience</div> {{!!}} {{#ifeq: {{{train_obedience|}}} | yes | [[File: | + | {{#if: {{{packanimal|}}} | {{!}} <div>Pack animal</div> {{!!}} {{#ifeq: {{{packanimal|}}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }} |
+ | |- | ||
+ | {{#if: {{{carryingcapacity|}}} | {{!}} <div>Carry capacity</div> {{!!}} {{{carryingcapacity}}} kg }} | ||
+ | |-<!-- | ||
+ | {{#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: {{{ | + | {{#if: {{{train_release|}}} | {{!}} <div>Train release</div> {{!!}} {{#ifeq: {{{train_release|}}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{train_rescue|}}} | {{!}} <div>Train rescue</div> {{!!}} {{#ifeq: {{{train_rescue|}}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{train_haul|}}} | {{!}} <div>Train haul</div> {{!!}} {{#ifeq: {{{train_haul|}}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }} |
|- | |- | ||
{{#if: {{{petness|}}} | {{!}} <div>Petness</div> {{!!}} {{{petness}}} }} | {{#if: {{{petness|}}} | {{!}} <div>Petness</div> {{!!}} {{{petness}}} }} | ||
Line 243: | Line 254: | ||
{{#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}}% }} | + | {{#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|}}} | ||
Line 262: | Line 273: | ||
| {{!}} colspan="2" class="infoboxdescription1" {{!}} Other }} | | {{!}} colspan="2" class="infoboxdescription1" {{!}} Other }} | ||
|- | |- | ||
− | {{#if: {{{ecosystemweight|}}} | {{!}} <div> | + | {{#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: {{{recipes_operation|}}} | {{!}} <div>Recipes</div> {{!!}} {{#if:{{#pos: {{{recipes_operation}}} |,}} | {{#arraymap:{{{recipes_operation|}}}|,|x|* x|\n}} | {{{recipes_operation}}} }} }}<!-- beware of x in names--> |
Revision as of 00:21, 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. |