Difference between revisions of "Template:Infobox pawn"
Jump to navigation
Jump to search
m (Pangaea moved page Template:Infobox animal to Template:Infobox pawn: rename) |
m (category) |
||
(2 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 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 = | + | {{#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 = {{# | + | | mass_juvenile = {{#vardefineecho: mass_juvenile | {{#if: {{{mass_juvenile|}}} | {{{mass_juvenile}}} | |
− | {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/2}} }} }} | + | {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/2}} }} }} }} |
− | | mass_baby = {{# | + | | mass_baby = {{#vardefineecho: mass_baby | {{#if: {{{mass_baby|}}} | {{{mass_baby}}} | |
− | {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/5}} }} }} | + | {{#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 = {{# | + | | 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|}}} |
|none|simple = no | |none|simple = no | ||
− | |intermediate|advanced = yes }} | + | |intermediate|advanced = yes }} }} |
− | | train_rescue = {{# | + | | train_rescue = {{#vardefineecho: train_rescue | {{#switch: {{{trainability|}}} |
|none|simple|intermediate = no | |none|simple|intermediate = no | ||
− | |advanced = {{#ifexpr: {{{basebodysize}}} >= 0.65 |yes|no}} }} | + | |advanced = {{#ifexpr: {{{basebodysize}}} >= 0.65 |yes|no}} }} }} |
− | | train_haul = {{# | + | | train_haul = {{#vardefineecho: train_haul | {{#switch: {{{trainability|}}} |
|none|simple|intermediate = no | |none|simple|intermediate = no | ||
− | |advanced = {{#ifexpr: {{{basebodysize}}} >= 0.40 |yes|no}} }} | + | |advanced = {{#ifexpr: {{{basebodysize}}} >= 0.40 |yes|no}} }} }} |
| wildness = {{{wildness|}}} | | wildness = {{{wildness|}}} | ||
<!-- Product --> | <!-- Product --> | ||
Line 170: | Line 170: | ||
-->{{#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: {{{type|}}} | {{!}} <div style="text-align: center;">'''[[{{{type|}}}]]'''</div>}} | ||
Line 180: | Line 180: | ||
|- | |- | ||
{{#if: {{{type|}}} {{{subtype|}}} {{{basebodysize|}}} {{{basehealthscale|}}} {{{basehungerrate|}}} {{{comfytemp_min|}}} {{{comfytemp_max|}}} {{{diet|}}} {{{flammability|}}} {{{has_gender|}}} {{{marketvalue|}}} {{{movespeed|}}} {{{herdanimal|}}} {{{herdsize_min|}}} {{{herdsize_max|}}} {{{psychicsensitivity|}}} {{{toxicsensitivity|}}} | {{#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}}} }}]] }} | ||
Line 213: | Line 213: | ||
|- | |- | ||
{{#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 224: | Line 224: | ||
|- | |- | ||
{{#if: {{{life_expectancy|}}} {{{minage_baby|}}} {{{mass_baby|}}} {{{minage_juvenile|}}} {{{mass_juvenile|}}} {{{minage_adult|}}} {{{mass_adult|}}} {{{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=" | + | | {{!}} 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 }} | ||
Line 242: | Line 242: | ||
|- | |- | ||
{{#if: {{{predator|}}} {{{maxpreybodysize|}}} {{{manhunter_damage|}}} {{{manhunter_tamefail|}}} {{{wildness|}}} {{{handleskill|}}} {{{trainability|}}} {{{train_obedience|}}} {{{train_haul|}}} {{{train_release|}}} {{{train_rescue|}}} {{{petness|}}} {{{nuzzlehours|}}} {{{nameonnuzzlechance|}}} {{{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]] }} }} | ||
Line 282: | Line 282: | ||
|- | |- | ||
{{#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 296: | 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 312: | 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. |