Difference between revisions of "Template:Infobox pawn"
Jump to navigation
Jump to search
m (category) |
|||
(10 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 | + | | name = String |
− | | image | + | | image = File |
− | | description | + | | description = Text <!-- Plain, from XML files --> |
− | | type | + | | description_markup = Wikitext <!-- With markup, for use in the article intro --> |
− | | subtype | + | | type = Page <!-- Animal? Mech? --> |
− | | | + | | subtype = Page <!-- Domesticated? Wild? --> |
− | | | + | <!-- General --> |
− | | movespeed | + | | basebodysize = Float |
− | <!-- | + | | basehealthscale = Float |
− | | | + | | basehungerrate = Float |
− | | | + | | comfytemp_min = Integer |
− | | | + | | comfytemp_max = Integer |
− | | | + | | diet = Page |
− | | | + | | flammability = Float |
− | | | + | | has_gender = Boolean |
− | | | + | | marketvalue = Integer |
− | | | + | | movespeed = Float |
− | | | + | | herdanimal = Boolean |
− | | | + | | herdsize_min = Integer |
− | | | + | | herdsize_max = Integer |
− | | | + | | psychicsensitivity = Boolean |
− | | | + | | toxicsensitivity = Boolean |
− | | | + | <!-- Combat --> |
− | | | + | | armorrating_blunt = Float |
− | | | + | | armorrating_heat = Float |
− | | | + | | armorrating_sharp = Float |
+ | | combatpower = Integer | ||
+ | <!-- Life phases --> | ||
+ | | life_expectancy = Integer | ||
+ | | mass_adult = Float | ||
+ | | mass_juvenile = Float | ||
+ | | mass_baby = Float | ||
+ | | minage_adult = Float | ||
+ | | minage_juvenile = Float | ||
+ | | minage_baby = Float | ||
+ | | gestation_period = Integer | ||
+ | | offspring_low = Integer | ||
+ | | offspring_high = Integer | ||
+ | <!-- Taming/hunting --> | ||
+ | | handleskill = Integer | ||
+ | | manhunter_damage = Float | ||
+ | | manhunter_tamefail = Float | ||
+ | | nameontamechance = Float | ||
+ | | nameonnuzzlechance = Float | ||
+ | | nuzzlehours = Integer | ||
+ | | petness = Float | ||
+ | | predator = Boolean | ||
+ | | maxpreybodysize = Float | ||
+ | | packanimal = Boolean | ||
+ | | carryingcapacity = Integer | ||
+ | | trainability = String <!-- or Page? --> | ||
+ | | train_obedience = Boolean | ||
+ | | train_release = Boolean | ||
+ | | train_rescue = Boolean | ||
+ | | train_haul = Boolean | ||
+ | | wildness = Float | ||
<!-- Product --> | <!-- Product --> | ||
− | | | + | | egg_amountlow = Integer |
− | | | + | | egg_amounthigh = Integer |
− | | | + | | egg_type = String |
− | | | + | | egg_time = Integer |
− | | | + | | leather_amount = Integer |
− | | | + | | leather_type = Page |
− | + | | meat_amount = Integer | |
− | | | + | | meat_type = Page |
− | | | + | | milk_amount = Integer |
− | | | + | | milk_time = Integer |
− | | | + | | shear_time = Integer |
− | | | + | | wool_amount = Integer |
− | | | + | | wool_type = Page |
<!-- Other --> | <!-- Other --> | ||
− | | | + | | ecosystemweight = Float |
− | + | | recipes_operation = List (,) of String | |
− | + | | tradetags = List (,) of String | |
− | + | <!--| butcherproducts?? (mechs) = List (,) of String --> | |
− | |||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | | | ||
}} | }} | ||
</noinclude><!-- | </noinclude><!-- | ||
− | --><includeonly><!-- Cargo store section --><!-- | + | --><includeonly><!-- Cargo store section --><!-- disable namespacecheck for now |
− | + | {{#ifeq: {{NAMESPACENUMBER}} | 0 | --> | |
− | {{#cargo_store:_table = | + | {{#cargo_store:_table = Pawn |
− | | name | + | | name = {{{name|}}} |
− | | image | + | | image = {{{image|}}} |
− | | description | + | | description = {{{description|}}} |
− | | type | + | | description_markup = {{{description_markup|}}} |
− | | subtype | + | | type = {{{type|}}} |
− | | | + | | subtype = {{{subtype|}}} |
− | | | + | <!-- General --> |
− | | movespeed | + | | basebodysize = {{{basebodysize|}}} |
− | <!-- | + | | basehealthscale = {{{basehealthscale|}}} |
− | | | + | | basehungerrate = {{{basehungerrate|}}} |
− | | | + | | comfytemp_min = {{{comfytemp_min|}}} |
− | | | + | | comfytemp_max = {{{comfytemp_max|}}} |
− | | | + | | diet = {{{diet|}}} |
− | | | + | | flammability = {{{flammability|}}} |
− | | | + | | has_gender = {{#if: {{{has_gender|}}} | {{{has_gender}}} | yes}} |
− | | | + | | marketvalue = {{{marketvalue|}}} |
− | | | + | | 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 --> |
− | | | + | | armorrating_blunt = {{{armorrating_blunt|}}} |
− | | | + | | armorrating_heat = {{{armorrating_heat|}}} |
− | | | + | | armorrating_sharp = {{{armorrating_sharp|}}} |
+ | | combatpower = {{{combatpower|}}} | ||
+ | <!-- Life phases --> | ||
+ | | life_expectancy = {{{life_expectancy|}}} | ||
+ | | mass_adult = {{{mass_adult|}}} | ||
+ | | mass_juvenile = {{#vardefineecho: mass_juvenile | {{#if: {{{mass_juvenile|}}} | {{{mass_juvenile}}} | | ||
+ | {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/2}} }} }} }} | ||
+ | | mass_baby = {{#vardefineecho: mass_baby | {{#if: {{{mass_baby|}}} | {{{mass_baby}}} | | ||
+ | {{#if: {{{mass_adult|}}} | {{#expr: {{formatnum: {{{mass_adult}}}|R}}/5}} }} }} }} | ||
+ | | minage_adult = {{{minage_adult|}}} | ||
+ | | minage_juvenile = {{{minage_juvenile|}}} | ||
+ | | minage_baby = {{{minage_baby|}}} | ||
+ | | gestation_period = {{{gestation_period|}}} | ||
+ | | offspring_low = {{{offspring_low|}}} | ||
+ | | offspring_high = {{{offspring_high|}}} | ||
+ | <!-- Taming/hunting --> | ||
+ | | handleskill = {{{handleskill|}}} | ||
+ | | manhunter_damage = {{{manhunter_damage|}}} | ||
+ | | manhunter_tamefail = {{{manhunter_tamefail|}}} | ||
+ | | nameontamechance = {{{nameontamechance|}}} | ||
+ | | nameonnuzzlechance = {{{nameonnuzzlechance|}}} | ||
+ | | nuzzlehours = {{{nuzzlehours|}}} | ||
+ | | petness = {{{petness|}}} | ||
+ | | predator = {{{predator|}}} | ||
+ | | maxpreybodysize = {{{maxpreybodysize|}}} | ||
+ | | trainability = {{{trainability|}}} | ||
+ | | packanimal = {{{packanimal|}}} | ||
+ | | carryingcapacity = {{#vardefineecho: carryingcapacity | {{#if: {{{basebodysize|}}} | {{#expr: 75 * {{{basebodysize|}}} round0}} }} }} | ||
+ | | train_obedience = {{#vardefineecho: train_obedience | {{#ifeq: {{{trainability|}}}|none|no|yes}} }} | ||
+ | | train_release = {{#vardefineecho: train_release | {{#switch: {{{trainability|}}} | ||
+ | |none|simple = no | ||
+ | |intermediate|advanced = yes }} }} | ||
+ | | train_rescue = {{#vardefineecho: train_rescue | {{#switch: {{{trainability|}}} | ||
+ | |none|simple|intermediate = no | ||
+ | |advanced = {{#ifexpr: {{{basebodysize}}} >= 0.65 |yes|no}} }} }} | ||
+ | | train_haul = {{#vardefineecho: train_haul | {{#switch: {{{trainability|}}} | ||
+ | |none|simple|intermediate = no | ||
+ | |advanced = {{#ifexpr: {{{basebodysize}}} >= 0.40 |yes|no}} }} }} | ||
+ | | wildness = {{{wildness|}}} | ||
<!-- Product --> | <!-- Product --> | ||
− | | | + | | egg_amountlow = {{{egg_amountlow|}}} |
− | | | + | | egg_amounthigh = {{{egg_amounthigh|}}} |
− | | | + | | egg_type = {{{egg_type|}}} |
− | | | + | | egg_time = {{{egg_time|}}} |
− | | | + | | leather_amount = {{{leather_amount|}}} |
− | | | + | | leather_type = {{{leather_type|}}} |
− | + | | meat_amount = {{{meat_amount|}}} | |
− | | | + | | meat_type = {{{meat_type|}}} |
− | | | + | | milk_amount = {{{milk_amount|}}} |
− | | | + | | milk_time = {{{milk_time|}}} |
− | | | + | | shear_time = {{{shear_time|}}} |
− | | | + | | wool_amount = {{{wool_amount|}}} |
− | | | + | | wool_type = {{{wool_type|}}} |
<!-- Other --> | <!-- Other --> | ||
− | | | + | | ecosystemweight = {{{ecosystemweight|}}} |
− | | | + | | recipes_operation = {{{recipes_operation|}}} |
− | | | + | | tradetags = {{{tradetags|}}} |
− | | | + | <!--| butcherproducts?? (mechs) = List (,) of String --> |
− | + | }}<!-- }}don't forget me! --><!-- | |
− | + | === #vardefine to use variables outside the infobox === | |
− | + | ||
− | | | + | -->{{#vardefine:description_markup|{{{description_markup}}} }}<!-- |
− | + | -->{| class="infoboxtable" | |
− | + | ! colspan="2" class="infoboxname" | {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }} | |
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | + | |{{#if: {{{type|}}} | {{!}} <div style="text-align: center;">'''[[{{{type|}}}]]'''</div>}} | |
− | + | |{{#if: {{{subtype|}}} | {{!}} <div style="text-align: center;">'''[[{{{subtype|}}}]]'''</div>}} | |
− | |||
− | {{!}}- | ||
− | |||
− | |||
|- | |- | ||
− | ! colspan="2" | + | ! colspan="2" | {{#if: {{{image|}}} | [[File:{{{image}}}]] | [[File:Questionmark black.png|link=]]{{#ifeq: {{NAMESPACE}} | 0 | [[Category:Image wanted]]}} }} |
|- | |- | ||
− | {{#if: {{{ | + | | colspan="2" | {{#if: {{{description|}}} | ''{{{description}}}'' }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#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="infoboxdescription" {{!}} General }} |
− | | | + | |-<!-- |
+ | {{#if: {{{type|}}} | {{!}} <div>Type</div> {{!!}} [[{{ucfirst: {{{type}}} }}]] }} | ||
|- | |- | ||
− | {{#if: {{{subtype|}}} | {{!}} <div> | + | {{#if: {{{subtype|}}} | {{!}} <div>Subtype</div> {{!!}} [[{{ucfirst: {{{subtype}}} }}]] }} |
+ | |- --> | ||
+ | {{#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: {{{comfytemp_min|}}} {{{comfytemp_max|}}} | {{!}} <div>Temperature</div> {{!!}} {{{comfytemp_min}}}°C to {{{comfytemp_max}}}°C }}<!-- need more elaborate if--> |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{diet|}}} | {{!}} <div>Diet</div> {{!!}} [[{{ucfirst: {{{diet}}} }}]] }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{basebodysize|}}} | {{!}} <div>Body size</div> {{!!}} {{{basebodysize}}} }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{basehealthscale|}}} | {{!}} <div>Health scale</div> {{!!}} {{{basehealthscale}}} }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#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: {{{herdanimal|}}} | yes | {{!}} <div>Herd animal</div> {{!!}} [[File:Checkon.png|20px]] }} | |
− | {| class=" | + | |- |
− | ! colspan=" | + | {{#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|}}} | ||
+ | | {{!}} colspan="2" class="infoboxdescription" {{!}} Combat }} | ||
+ | |- | ||
+ | {{#if: {{{combatpower|}}} | {{!}} <div>Combat power</div> {{!!}} {{{combatpower}}} }} | ||
+ | |- | ||
+ | {{#if: {{{armorrating_blunt|}}} | {{!}} <div>Armor blunt</div> {{!!}} {{{armorrating_blunt}}}% }} | ||
+ | |- | ||
+ | {{#if: {{{armorrating_heat|}}} | {{!}} <div>Armor heat</div> {{!!}} {{{armorrating_heat}}}% }} | ||
+ | |- | ||
+ | {{#if: {{{armorrating_sharp|}}} | {{!}} <div>Armor sharp</div> {{!!}} {{{armorrating_sharp}}}% }} | ||
+ | |- | ||
+ | {{#if: {{{life_expectancy|}}} {{{minage_baby|}}} {{{mass_baby|}}} {{{minage_juvenile|}}} {{{mass_juvenile|}}} {{{minage_adult|}}} {{{mass_adult|}}} {{{gestation_period|}}} {{{offspring_low|}}} {{{offspring_high|}}} | ||
+ | | {{!}} colspan="2" class="infoboxdescription" {{!}} Life phases }} | ||
+ | |- | ||
+ | {{#if: {{{life_expectancy|}}} | {{!}} <div>Life expectancy</div> {{!!}} {{{life_expectancy}}} years }} | ||
+ | |- | ||
+ | {{#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: {{{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: {{{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: {{{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|}}} {{{nameonnuzzlechance|}}} {{{nameontamechance|}}} | ||
+ | | {{!}} colspan="2" class="infoboxdescription" {{!}} Hunting and taming }} | ||
+ | |- | ||
+ | {{#if: {{{predator|}}} | {{!}} <div>Predator</div> {{!!}} {{#ifeq: {{{predator|}}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }} | ||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{maxpreybodysize|}}} | {{!}} <div>Prey body size</div> {{!!}} Maximum {{{maxpreybodysize}}} }} |
|- | |- | ||
− | + | {{#if: {{{manhunter_damage|}}} {{{manhunter_tamefail|}}} | {{!}} <div>Manhunter chance</div> {{!!}} {{#if: {{{manhunter_damage|}}} | | |
− | {{#if: {{{ | + | {{#ifeq: {{{manhunter_damage|}}} | 0 | |
− | + | * Never on damage | | |
− | | | + | * {{#expr: {{{manhunter_damage}}}*100}}% on damage }} }} {{#if: {{{manhunter_tamefail|}}} | {{#ifeq: {{{manhunter_tamefail|}}} | 0 | |
− | + | * Never on tame failure | | |
− | {{#if: {{{ | + | * {{#expr: {{{manhunter_tamefail}}}*100}}% on tame failure }} }} }} |
− | |||
|- | |- | ||
− | {{#if: {{{ | + | {{#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: {{ | + | {{#if: {{#var: train_obedience}} | {{!}} <div>Train obedience</div> {{!!}} {{#ifeq: {{#var: train_obedience|}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }} |
− | |||
− | {{# | ||
− | | | ||
|- | |- | ||
− | {{#if: {{ | + | {{#if: {{#var: train_release}} | {{!}} <div>Train release</div> {{!!}} {{#ifeq: {{#var: train_release|}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }} |
− | {{# | ||
|- | |- | ||
− | {{#if: {{ | + | {{#if: {{#var: train_rescue}} | {{!}} <div>Train rescue</div> {{!!}} {{#ifeq: {{#var: train_rescue|}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }} |
− | {{# | ||
|- | |- | ||
− | {{#if: {{ | + | {{#if: {{#var: train_haul}} | {{!}} <div>Train haul</div> {{!!}} {{#ifeq: {{#var: train_haul|}} | yes | [[File:Checkon.png|20px]] | [[File:Checkoff.png|20px]] }} }} |
− | {{# | ||
− | |||
− | {{# | ||
− | | | ||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{petness|}}} | {{!}} <div>Petness</div> {{!!}} {{#expr:{{{petness}}}*100}}% }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{nameontamechance|}}} | {{!}} <div>Name on tame</div> {{!!}} {{#expr: {{{nameontamechance}}}*100}}% chance }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{nameonnuzzlechance|}}} | {{!}} <div>Name on nuzzle</div> {{!!}} {{#expr: {{{nameonnuzzlechance}}}*100}}% chance }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{nuzzlehours|}}} | {{!}} <div>Nuzzle interval</div> {{!!}} Every {{{nuzzlehours}}} hours }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#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="infoboxdescription" {{!}} Products }} |
− | |||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{leather_amount|}}} {{{leather_type|}}} | {{!}} <div>Leather</div> {{!!}} {{#if: {{{leather_amount|}}} | {{{leather_amount}}} }} {{#if: {{{leather_type|}}} | [[{{{leather_type}}}]] }} }}<!-- should be an icon? --> |
− | |||
− | {{#if: {{{ | ||
− | |||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{meat_amount|}}} {{{meat_type|}}} | {{!}} <div>Meat</div> {{!!}} {{#if: {{{meat_amount|}}} | {{{meat_amount}}} }} {{#if: {{{meat_type|}}} | [[{{{meat_type}}}]] }} }}<!-- should be an icon? --> |
− | |||
− | {{#if: {{{ | ||
− | |||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{wool_amount|}}} {{{wool_type|}}} {{{shear_time|}}} | {{!}} <div>Wool</div> {{!!}} {{#if: {{{wool_amount|}}} | {{{wool_amount}}} }} {{#if: {{{wool_type|}}} | [[{{{wool_type}}}]] }}<!-- should be an icon? -->{{#if: {{{shear_time|}}} | every {{{shear_time}}} days }} }} |
− | |||
− | {{#if: {{{ | ||
− | |||
− | |||
− | {{#if: {{{ | ||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{milk_amount|}}} {{{milk_time|}}} | {{!}} <div>Milk</div> {{!!}} {{#if: {{{milk_amount|}}} | {{{milk_amount}}} }} {{#if: {{{milk_time|}}} | [[milk]] every {{{milk_time}}} day(s) }} }}<!-- should be an icon? --> |
− | |||
− | |||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{egg_amountlow|}}} {{{egg_amounthigh|}}} {{{egg_type|}}} {{{egg_time|}}} | {{!}} <div>Eggs</div> |
− | + | {{!!}} {{#ifexpr: {{{egg_amounthigh|}}} > {{{egg_amountlow|}}} | {{{egg_amountlow}}}-{{{egg_amounthigh|}}} | {{{egg_amountlow|}}} }} {{#if: {{{egg_type|}}} | [[{{{egg_type}}}]] }}<!-- should be an icon? -->{{#if: {{{egg_time|}}} | every {{{egg_time}}} day(s) }} }} | |
− | < | ||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{ecosystemweight|}}} {{{recipes_operation|}}} {{{tradetags|}}} |
− | + | | {{!}} colspan="2" class="infoboxdescription" {{!}} Other }} | |
− | |||
|- | |- | ||
− | + | {{#if: {{{ecosystemweight|}}} | {{!}} <div>Eco-system weight</div> {{!!}} {{{ecosystemweight}}} }} | |
− | {{#if: {{{ | ||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{recipes_operation|}}} | {{!}} <div>Recipes</div> {{!!}} {{#if:{{#pos: {{{recipes_operation}}} |,}} | {{#arraymap:{{{recipes_operation|}}}|,|x|* x|\n}} | {{{recipes_operation}}} }} }}<!-- beware of x in names--> |
− | | {{ | ||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{tradetags|}}} | {{!}} <div>Trade tags</div> {{!!}} {{#if:{{#pos: {{{tradetags}}} |,}} | {{#arraymap:{{{tradetags|}}}|,|x|* x|\n}} | {{{tradetags}}} }} }}<!-- beware of x in names--> |
− | |}--><!-- | + | |} |
+ | <!-- Auto categories --><!-- | ||
+ | |||
+ | {{#ifeq: {{NAMESPACENUMBER}} | 0 | [[Category:{{#if:{{{added_in|}}}|{{game|{{{added_in|}}} }} }} weapons]] }}<!-- | ||
− | + | <!-- | |
− | |||
− | |||
− | |||
− | |||
--></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. |