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) |
(rename and update) |
||
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 --> |
Revision as of 07:00, 31 July 2019
This template defines the table "Pawn". View table.
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. |