Editing Template:Infobox pawn
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
<noinclude><!-- Cargo declare section --> | <noinclude><!-- Cargo declare section --> | ||
− | {{#cargo_declare:_table = | + | {{#cargo_declare:_table = Animal |
| 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 = Animal |
| 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 = {{#vardefine: 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}} }} }} }} {{#var:mass_juvenile}} |
− | | mass_baby = {{# | + | | mass_baby = {{#vardefine: 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}} }} }} }} {{#var:mass_baby}} |
| 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 = {{#vardefine: carryingcapacity | {{#if: {{{basebodysize|}}} | {{#expr: 75 * {{{basebodysize|}}} round0}} }} }} {{#var: carryingcapacity}} |
− | | train_obedience = {{# | + | | train_obedience = {{#vardefine: train_obedience | {{#ifeq: {{{trainability|}}}|none|no|yes}} }} {{#var: train_obedience}} |
− | | train_release = {{# | + | | train_release = {{#vardefine: train_release | {{#switch: {{{trainability|}}} |
|none|simple = no | |none|simple = no | ||
− | |intermediate|advanced = yes }} }} | + | |intermediate|advanced = yes }} }} {{#var: train_release}} |
− | | train_rescue = {{# | + | | train_rescue = {{#vardefine: 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}} }} }} {{#var: train_rescue}} |
− | | train_haul = {{# | + | | train_haul = {{#vardefine: 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}} }} }} {{#var: train_haul}} |
| 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="infoboxname1" | {{#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="infoboxdescription1" {{!}} 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: {{{marketvalue|}}} | {{!}} <div>Market value</div> {{!!}} {{formatnum:{{{marketvalue}}} }} [[File:silver_c.png|20px]] }} | ||
|- | |- | ||
{{#if: {{{movespeed|}}} | {{!}} <div>Move speed</div> {{!!}} {{{movespeed}}} cells/sec}} | {{#if: {{{movespeed|}}} | {{!}} <div>Move speed</div> {{!!}} {{{movespeed}}} cells/sec}} | ||
+ | |- | ||
+ | {{#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: {{{basebodysize|}}} | {{!}} <div>Body size</div> {{!!}} {{{basebodysize}}} }} | {{#if: {{{basebodysize|}}} | {{!}} <div>Body size</div> {{!!}} {{{basebodysize}}} }} | ||
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="infoboxdescription1" {{!}} 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="infoboxdescription1" {{!}} 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="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]] }} }} | ||
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="infoboxdescription1" {{!}} 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="infoboxdescription1" {{!}} 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}} | ||
+ | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> |