Difference between revisions of "Template:Infobox main/testing"

From RimWorld Wiki
Jump to navigation Jump to search
(Reverting to current work piece)
Line 12: Line 12:
 
<div class="wrapper">
 
<div class="wrapper">
 
<div class="image_wrapper" title="{{#var:Name}}">[[File:{{{image|{{#var:Name}}}}}|{{{imagesize|250px}}}|link={{#var:Name}}|{{#var:Name}}]]</div>
 
<div class="image_wrapper" title="{{#var:Name}}">[[File:{{{image|{{#var:Name}}}}}|{{{imagesize|250px}}}|link={{#var:Name}}|{{#var:Name}}]]</div>
<p class="text-center" style="display:block; font-size:89%; padding: .5em;">{{#if:{{{description|}}}|{{{description|}}}
+
<p class="text-center" style="display:block; font-size:89%; padding: .5em;">{{#if:{{{description|}}}|{{{description|}}}{{#set:Description = {{{description|}}}}}}}</p>{{#set:Image = [[File:{{{image|{{#var:Name}}.png}}}]]}}
 
----
 
----
 
<dl>
 
<dl>
 
+
{{#set:Name = {{#var:Name}} }}
 
;Type
 
;Type
:[[{{{type}}}]]
+
:[[{{{type}}}]]{{#set:Type = {{{type|}}}}}{{#if: {{{type2|}}} |&#32;&ndash;&#32; [[{{{type2}}}]]{{#set:Type2 = {{{type2|}}}}} }}
  
{{#if: {{{placeable|}}}|
+
{{#if: {{{placeable|}}}|{{#set:Placeable = {{{placeable|}}} }}
 
;Placeable
 
;Placeable
 
:{{{placeable|}}}}}
 
:{{{placeable|}}}}}
  
{{#if: {{{rotatable|}}}|
+
{{#if: {{{rotatable|}}}|{{#set:Rotatable = {{{rotatable|}}} }}
 
;Rotatable
 
;Rotatable
 
:{{{rotatable|}}}}}
 
:{{{rotatable|}}}}}
  
{{#if: {{{size|}}}|
+
{{#if: {{{size|}}}|{{#set:Size = {{{size|}}} }}
 
;Size
 
;Size
 
:{{{size|}}}}}
 
:{{{size|}}}}}
  
{{#if: {{{efficiency|}}}|
+
{{#if: {{{efficiency|}}}|{{#set:Efficiency= {{{efficiency|}}} }}
 
;Efficiency
 
;Efficiency
 
:{{{efficiency|}}}}}
 
:{{{efficiency|}}}}}
  
{{#if: {{{hp|}}}|
+
{{#if: {{{hp|}}}|{{#set:Max Hit Points Base = {{{hp|}}} }}
 
;HP
 
;HP
 
:{{{hp|}}}}}
 
:{{{hp|}}}}}
  
{{#if: {{{deterioration|}}}|
+
{{#if: {{{deterioration|}}}|{{#set:Deterioration Rate Base = {{{deterioration|}}} }}
 
;Deterioration Rate
 
;Deterioration Rate
 
:{{{deterioration|}}}}}
 
:{{{deterioration|}}}}}
  
 
<!-- If market value defined, use that, else, if possible, calculate the value and use that instead but make a note that it is calculated.-->
 
<!-- If market value defined, use that, else, if possible, calculate the value and use that instead but make a note that it is calculated.-->
{{#if: {{{marketvalue|}}}|
+
{{#if: {{{marketvalue|}}}|{{#set: Market Value Base = {{{marketvalue|}}} }}
 
;Market Value
 
;Market Value
:{{Market Value | {{{marketvalue|}}}}}&nbsp;{{Icon Small|silver}} | {{#if: {{{resource 1|}}}| {{#if: {{{work to make|}}} | {{#ifeq: {{{resource 1|}}} | Stuff | |  
+
:{{Market Value | {{{marketvalue|}}}}}&nbsp;{{Icon Small|silver}} | {{#if: {{{resource 1|}}}| {{#if: {{{work to make|}}} | {{#ifeq: {{{resource 1|}}} | Stuff | | {{#set: Market Value Base = {{Market Value Calculator}} }} {{#set: Calculated Market Value  = True }}
 
;Market Value
 
;Market Value
 
:{{Market Value | {{Market Value Calculator}}}}&nbsp;{{Icon Small|silver}}  {{H:title|link=no|This value is automatically calculated by the wiki and may not be correct|<sup>[Note]</sup>}} }} }} }}
 
:{{Market Value | {{Market Value Calculator}}}}&nbsp;{{Icon Small|silver}}  {{H:title|link=no|This value is automatically calculated by the wiki and may not be correct|<sup>[Note]</sup>}} }} }} }}
 
}}
 
}}
  
{{#if: {{{beauty|}}}|
+
{{#if: {{{beauty|}}}|{{#set:Beauty Base = {{{beauty|}}} }}
 
;Beauty
 
;Beauty
 
:[[Beauty Base::{{{beauty|}}}]]}}
 
:[[Beauty Base::{{{beauty|}}}]]}}
  
{{#if: {{{mass base|}}}|
+
{{#if: {{{mass base|}}}|{{#set:Mass Base = {{{mass base|}}} }}
 
;Mass
 
;Mass
 
:{{{mass base|}}} kg}}
 
:{{{mass base|}}} kg}}
  
{{#if: {{{flammability|}}}|
+
{{#if: {{{flammability|}}}|{{#set:Flammability Base = {{{flammability|}}} }}
 
;Flammability
 
;Flammability
 
:{{#expr:{{{flammability|}}}*100}}%}}
 
:{{#expr:{{{flammability|}}}*100}}%}}
Line 69: Line 69:
 
}}
 
}}
  
{{#if: {{{insulationcold|}}}|
+
{{#if: {{{insulationcold|}}}|{{#set:Insulation - Cold Base= {{{insulationcold|}}} }}
 
;Insulation - Cold
 
;Insulation - Cold
 
:{{{insulationcold|}}}&deg;C}}
 
:{{{insulationcold|}}}&deg;C}}
  
{{#if: {{{insulationheat|}}}|
+
{{#if: {{{insulationheat|}}}|{{#set:Insulation - Heat Base= {{{insulationheat|}}} }}
 
;Insulation - Heat
 
;Insulation - Heat
 
:{{{insulationheat|}}}&deg;C}}
 
:{{{insulationheat|}}}&deg;C}}
  
{{#if: {{{insulationcoldfactor|}}}|
+
{{#if: {{{insulationcoldfactor|}}}|{{#set:Insulation Factor - Cold= {{{insulationcoldfactor|}}} }}
 
;{{H:title|link=no|See Apparel for how this is applied|Insulation Factor - Cold}}
 
;{{H:title|link=no|See Apparel for how this is applied|Insulation Factor - Cold}}
 
:{{{insulationcoldfactor|}}}x }}
 
:{{{insulationcoldfactor|}}}x }}
  
{{#if: {{{insulationheatfactor|}}}|
+
{{#if: {{{insulationheatfactor|}}}|{{#set:Insulation Factor - Heat= {{{insulationheatfactor|}}} }}
 
;{{H:title|link=no|See Apparel for how this is applied|Insulation Factor - Heat}}
 
;{{H:title|link=no|See Apparel for how this is applied|Insulation Factor - Heat}}
 
:{{{insulationheatfactor|}}}x }}
 
:{{{insulationheatfactor|}}}x }}
  
{{#if: {{{armorsharp|}}}|
+
{{#if: {{{armorsharp|}}}|{{#set:Armor - Sharp = {{{armorsharp|}}} }}
 
;Armor - Sharp
 
;Armor - Sharp
 
:{{{armorsharp|}}}%}}
 
:{{{armorsharp|}}}%}}
  
{{#if: {{{armorblunt|}}}|
+
{{#if: {{{armorblunt|}}}|{{#set:Armor - Blunt= {{{armorblunt|}}} }}
 
;Armor - Blunt
 
;Armor - Blunt
 
:{{{armorblunt|}}}%}}
 
:{{{armorblunt|}}}%}}
  
{{#if: {{{armorheat|}}}|
+
{{#if: {{{armorheat|}}}|{{#set:Armor - Heat = {{{armorheat|}}} }}
 
;Armor - Heat
 
;Armor - Heat
 
:{{{armorheat|}}}%}}
 
:{{{armorheat|}}}%}}
  
{{#if: {{{armorsharpfactor|}}}|
+
{{#if: {{{armorsharpfactor|}}}|{{#set:Armor Factor - Sharp = {{{armorsharpfactor|}}} }}
 
;Armor Factor - Sharp
 
;Armor Factor - Sharp
 
:{{{armorsharpfactor|}}}}}
 
:{{{armorsharpfactor|}}}}}
  
{{#if: {{{armorbluntfactor|}}}|
+
{{#if: {{{armorbluntfactor|}}}|{{#set:Armor Factor - Blunt= {{{armorbluntfactor|}}} }}
 
;Armor Factor - Blunt
 
;Armor Factor - Blunt
 
:{{{armorbluntfactor|}}}}}
 
:{{{armorbluntfactor|}}}}}
  
{{#if: {{{armorheatfactor|}}}|
+
{{#if: {{{armorheatfactor|}}}|{{#set:Armor Factor - Heat = {{{armorheatfactor|}}} }}
 
;Armor Factor - Heat
 
;Armor Factor - Heat
 
:{{{armorheatfactor|}}}}}
 
:{{{armorheatfactor|}}}}}
  
{{#if: {{{painshockthreshold|}}}|
+
{{#if: {{{painshockthreshold|}}}|{{#set:Pain Shock Threshold = {{{painshockthreshold|}}} }}
 
;Pain Shock Threshold
 
;Pain Shock Threshold
 
:{{{painshockthreshold|}}}%}}
 
:{{{painshockthreshold|}}}%}}
  
{{#if: {{{coverage|}}}|
+
{{#if: {{{coverage|}}}|{{#set:Coverage = {{{coverage|}}} }}
 
;Coverage
 
;Coverage
 
:{{{coverage|}}}}}
 
:{{{coverage|}}}}}
  
{{#if: {{{layer|}}}|
+
{{#if: {{{layer|}}}|{{#set:layer= {{{layer|}}} }}
 
;Layer
 
;Layer
 
:{{{layer|}}}}}
 
:{{{layer|}}}}}
  
 
<!-- All pawns (animals, humanoids, mechanoids) -->
 
<!-- All pawns (animals, humanoids, mechanoids) -->
{{#if: {{{healthscale|}}}|
+
{{#if: {{{healthscale|}}}|{{#set: Health Scale = {{{healthscale|}}} }}
 
;Health Scale
 
;Health Scale
 
:{{{healthscale|}}}
 
:{{{healthscale|}}}
 
}}
 
}}
  
{{#if: {{{bodysize|}}}|
+
{{#if: {{{bodysize|}}}|{{#set:Body Size = {{{bodysize|}}} }}
 
;Body Size
 
;Body Size
 
:{{{bodysize|}}}
 
:{{{bodysize|}}}
  
{{#ifeq: {{{type|}}}|Animals|
+
{{#ifeq: {{{type|}}}|Animals|{{#set: Type = {{{type2|}}}}}}}
  
{{#if: {{{movespeed|}}}|
+
{{#if: {{{movespeed|}}}|{{#set:Move Speed Base = {{{movespeed|}}} }}
 
;Move Speed
 
;Move Speed
 
:{{{movespeed|}}}}}
 
:{{{movespeed|}}}}}
  
{{#if: {{{massyoung|{{{massadult|}}}}}}|
+
{{#if: {{{massyoung|{{{massadult|}}}}}}|{{#set:Mass - Young= {{{massyoung|{{#expr:{{{massadult}}}/5}}}}} }}
 
;Mass - Young
 
;Mass - Young
 
:{{{massyoung|{{#expr:{{{massadult}}}/5}}}}} kg}}
 
:{{{massyoung|{{#expr:{{{massadult}}}/5}}}}} kg}}
  
{{#if: {{{massjuvenile|{{{massadult|}}}}}}|
+
{{#if: {{{massjuvenile|{{{massadult|}}}}}}|{{#set:Mass - Juvenile= {{{massjuvenile|{{#expr:{{{massadult}}}/2}}}}} }}
 
;Mass - Juvenile
 
;Mass - Juvenile
 
:{{{massjuvenile|{{#expr:{{{massadult}}}/2}}}}} kg}}
 
:{{{massjuvenile|{{#expr:{{{massadult}}}/2}}}}} kg}}
  
{{#if: {{{massadult|}}}|
+
{{#if: {{{massadult|}}}|{{#set:Mass - Adult= {{{massadult|}}} }}
 
;Mass - Adult
 
;Mass - Adult
 
:{{{massadult|}}} kg}}
 
:{{{massadult|}}} kg}}
Line 156: Line 156:
 
   {{#vardefine: MeatName | {{{meatname | {{#var:Name}} meat}}} }}
 
   {{#vardefine: MeatName | {{{meatname | {{#var:Name}} meat}}} }}
 
   {{#vardefine: LeatherName | {{{leathername | {{#var:Name}} leather}}} }}  
 
   {{#vardefine: LeatherName | {{{leathername | {{#var:Name}} leather}}} }}  
   {{#if: {{{is exotic species|}}}||
+
   {{#if: {{{is exotic species|}}}|{{#set: Is Exotic Species = true}}|{{#set: Is Exotic Species = false}}}}|
 
}}
 
}}
  
 
{{#if: {{#var:LeatherName }}|
 
{{#if: {{#var:LeatherName }}|
    
+
   {{#set: Leather Name =  {{#var:LeatherName}}}} }}
  
  
 
{{#if:{{#var:MeatName}}|{{#vardefine: MeatYield | {{{meatyield | {{#expr: 90 * {{{bodysize}}} round 0}}}}} }}
 
{{#if:{{#var:MeatName}}|{{#vardefine: MeatYield | {{{meatyield | {{#expr: 90 * {{{bodysize}}} round 0}}}}} }}
    
+
   {{#set: Meat Yield = {{#var: MeatYield}} }}
 
;Meat Yield
 
;Meat Yield
 
:{{#var: MeatYield}}  [[Meat|{{lc:{{#var:MeatName}}}}]]}}
 
:{{#var: MeatYield}}  [[Meat|{{lc:{{#var:MeatName}}}}]]}}
  
 
   {{#vardefine: CarryingCapacity | {{#expr: 75 * {{{bodysize|}}} round0}} }}
 
   {{#vardefine: CarryingCapacity | {{#expr: 75 * {{{bodysize|}}} round0}} }}
    
+
   {{#set: Carrying Capacity = {{#var: CarryingCapacity}} }}
 
;Carrying Capacity
 
;Carrying Capacity
 
:{{#var: CarryingCapacity}}
 
:{{#var: CarryingCapacity}}
Line 176: Line 176:
 
   <!-- See Property:Leather_Yield for details -->
 
   <!-- See Property:Leather_Yield for details -->
 
{{#if:{{#var:LeatherName}}|{{#vardefine: LeatherYield | {{{leatheryield | {{#expr: 30 * {{{bodysize}}} round 0}} }}} }}
 
{{#if:{{#var:LeatherName}}|{{#vardefine: LeatherYield | {{{leatheryield | {{#expr: 30 * {{{bodysize}}} round 0}} }}} }}
    
+
   {{#set: Leather Yield = {{#var: LeatherYield}} }}
 
;Leather Yield
 
;Leather Yield
 
:{{#var: LeatherYield}} [[{{#var: LeatherName}}|{{lc:{{#var: LeatherName}}}}]] }}
 
:{{#var: LeatherYield}} [[{{#var: LeatherName}}|{{lc:{{#var: LeatherName}}}}]] }}
  
 
   {{#vardefine: FilthRate | {{#expr: 1.25 * {{{bodysize|}}} * {{#if: {{{petness|}}}|{{#expr: 1 - {{{petness|}}} }}|1}} round2}} }}
 
   {{#vardefine: FilthRate | {{#expr: 1.25 * {{{bodysize|}}} * {{#if: {{{petness|}}}|{{#expr: 1 - {{{petness|}}} }}|1}} round2}} }}
    
+
   {{#set: Animal Filth Rate = {{#var: FilthRate}} }}
 
;{{H:title|link=no|The average amount of filth produced on constructed floors per 1000 cells walked by this creature.|Filth Rate}}
 
;{{H:title|link=no|The average amount of filth produced on constructed floors per 1000 cells walked by this creature.|Filth Rate}}
 
:{{#var: FilthRate}}  
 
:{{#var: FilthRate}}  
 
}}
 
}}
  
{{#if: {{{milk|}}}|
+
{{#if: {{{milk|}}}|{{#set: Milk Amount = {{{milk|}}} }}
 
;[[Milk]] Amount
 
;[[Milk]] Amount
 
:{{{milk|}}} }}
 
:{{{milk|}}} }}
  
{{#if: {{{milktime|}}}|
+
{{#if: {{{milktime|}}}|{{#set: Milking Interval Days = {{{milktime|}}} }}
 
+
{{#set: Daily Milk Average = {{#expr: {{{milk|}}}/{{{milktime|}}}round2}} }}
 
;Milking Interval
 
;Milking Interval
 
:{{{milktime|}}}&nbsp;days}}
 
:{{{milktime|}}}&nbsp;days}}
  
 
{{#if: {{{wool|}}}|
 
{{#if: {{{wool|}}}|
    
+
   {{#set: Wool Amount = {{{wool|}}}}}
 
   {{#vardefine: WoolName | {{{woolname | {{#var:Name}} wool}}} }}
 
   {{#vardefine: WoolName | {{{woolname | {{#var:Name}} wool}}} }}
    
+
   {{#set: Wool Name =  {{#var:WoolName}}}}
 
;Wool Amount
 
;Wool Amount
 
:{{{wool|}}} [[{{#var: WoolName}}|{{lc:{{#var: WoolName}}}}]]
 
:{{{wool|}}} [[{{#var: WoolName}}|{{lc:{{#var: WoolName}}}}]]
 
}}
 
}}
  
{{#if: {{{sheartime|}}}|
+
{{#if: {{{sheartime|}}}|{{#set: Shearing Interval Days = {{{sheartime|}}} }}
 
+
{{#set: Daily Wool Average = {{#expr: {{{wool|}}}/{{{sheartime}}}round2}} }}
 
;Shearing Interval
 
;Shearing Interval
 
:{{{sheartime|}}}&nbsp;days}}
 
:{{{sheartime|}}}&nbsp;days}}
Line 215: Line 215:
  
  
{{#if: {{{manhunter|}}}|
+
{{#if: {{{manhunter|}}}|{{#set:Turn Manhunter Chance When Attacked = {{{manhunter|}}} }}
 
;{{H:title|link=no|Chance of this animal turning manhunter when attacked.|Manhunter Chance}}
 
;{{H:title|link=no|Chance of this animal turning manhunter when attacked.|Manhunter Chance}}
 
:{{#expr: {{{manhunter|}}} * 100}}%}}
 
:{{#expr: {{{manhunter|}}} * 100}}%}}
  
{{#if: {{{manhuntertame|}}}|
+
{{#if: {{{manhuntertame|}}}|{{#set:Turn Manhunter Chance When Taming = {{{manhuntertame|}}} }}
 
;{{H:title|link=no|Chance of this animal turning manhunter on a failed taming attempt.|Manhunter Chance (Taming)}}
 
;{{H:title|link=no|Chance of this animal turning manhunter on a failed taming attempt.|Manhunter Chance (Taming)}}
 
:{{#expr: {{{manhuntertame|}}} * 100}}%}}
 
:{{#expr: {{{manhuntertame|}}} * 100}}%}}
  
{{#if: {{{hungerrate|}}}|
+
{{#if: {{{hungerrate|}}}|{{#set:Base Hunger Rate = {{{hungerrate|}}} }}
 
;{{H:title|link=no|Nutrition lost per day.|Hunger Rate}}
 
;{{H:title|link=no|Nutrition lost per day.|Hunger Rate}}
 
:{{#expr: {{{hungerrate|}}} * 1.6 round2}} }}
 
:{{#expr: {{{hungerrate|}}} * 1.6 round2}} }}
  
{{#if: {{{diet|}}}|
+
{{#if: {{{diet|}}}|{{#set:Diet ={{{diet|}}} }}
 
;Diet
 
;Diet
 
:{{{diet|}}}}}
 
:{{{diet|}}}}}
  
{{#if: {{{lifespan|}}}|
+
{{#if: {{{lifespan|}}}|{{#set:Life Expectancy = {{{lifespan|}}} }}
 
;Life Expectancy
 
;Life Expectancy
 
:{{{lifespan|}}}}}
 
:{{{lifespan|}}}}}
  
{{#if: {{{trainable|}}}|
+
{{#if: {{{trainable|}}}|{{#set:Trainable Intelligence = {{{trainable|}}} }}
 
;Trainable Intelligence
 
;Trainable Intelligence
 
:{{{trainable|}}}
 
:{{{trainable|}}}
 
{{#switch: {{{trainable|}}}
 
{{#switch: {{{trainable|}}}
| none =  
+
| none = {{#set: Can Train Guard = no |Can Train Attack = no |Can Train Rescue = no |Can Train Haul = no}}
| simple =  
+
| simple = {{#set: Can Train Guard = yes |Can Train Attack = no |Can Train Rescue = no |Can Train Haul = no}}
| intermediate =  
+
| intermediate = {{#set: Can Train Guard = yes |Can Train Attack = yes |Can Train Rescue = no |Can Train Haul = no}}
| advanced =  
+
| advanced = {{#set: Can Train Guard = yes |Can Train Attack = yes}}{{#ifexpr: {{{bodysize|}}} >= 0.65|{{#set: Can Train Rescue = yes}}|{{#set: Can Train Rescue = no}}}}{{#ifexpr: {{{bodysize|}}} >= 0.40|{{#set: Can Train Haul = yes}}|{{#set: Can Train Haul = no}}}}
 
}}
 
}}
 
}}
 
}}
  
{{#if: {{{wildness|}}}|
+
{{#if: {{{wildness|}}}|{{#set:Wildness = {{{wildness|}}} }}
 
;{{H:title|link=no|Wilder creatures are naturally more difficult to tame, train, and handle.|Wildness}}
 
;{{H:title|link=no|Wilder creatures are naturally more difficult to tame, train, and handle.|Wildness}}
 
:{{#expr: {{{wildness|}}} * 100 round0}}%
 
:{{#expr: {{{wildness|}}} * 100 round0}}%
Line 260: Line 260:
 
       |{{#ifexpr: {{{wildness|}}} < .97|9
 
       |{{#ifexpr: {{{wildness|}}} < .97|9
 
       |10}} }} }} }} }} }} }} }}
 
       |10}} }} }} }} }} }} }} }}
    
+
   {{#set:Minimum Handling Skill = {{#var: MinHandlingSkill}} }}
 
   {{#ifeq: {{#var: MinHandlingSkill}}|0||
 
   {{#ifeq: {{#var: MinHandlingSkill}}|0||
 
;{{H:title|link=no|This creature cannot be tamed, trained, or commanded by anyone with less than this skill in animals.|Minimum Handling Skill}}
 
;{{H:title|link=no|This creature cannot be tamed, trained, or commanded by anyone with less than this skill in animals.|Minimum Handling Skill}}
Line 266: Line 266:
 
}}
 
}}
  
{{#if: {{{petness|}}}|
+
{{#if: {{{petness|}}}|{{#set: Petness = {{{petness|}}} }} }}
  
{{#ifeq: {{{predator|}}}|true|
+
{{#ifeq: {{{predator|}}}|true|{{#set:Is Predator = true}}|}}
  
{{#if: {{{nuzzleMtb|}}}|
+
{{#if: {{{nuzzleMtb|}}}|{{#set: Nuzzle Mtb Hours = {{{nuzzleMtb|}}} }}
 
;{{H:title|link=no|How often an animal will nuzzle friendly colonists, on average.|Nuzzle Interval}}
 
;{{H:title|link=no|How often an animal will nuzzle friendly colonists, on average.|Nuzzle Interval}}
 
{{#ifexpr: {{{nuzzleMtb|}}} <= 24
 
{{#ifexpr: {{{nuzzleMtb|}}} <= 24
Line 279: Line 279:
 
   |:{{#expr: {{{nuzzleMtb|}}} / 24 round1}}&nbsp;days}} }}
 
   |:{{#expr: {{{nuzzleMtb|}}} / 24 round1}}&nbsp;days}} }}
  
{{#if: {{{eggsmin|}}}|
+
{{#if: {{{eggsmin|}}}|{{#set: Eggs Per Clutch Minimum = {{{eggsmin|}}} }}
{{#if: {{{eggsmax|}}}|
+
{{#if: {{{eggsmax|}}}|{{#set: Eggs Per Clutch Maximum = {{{eggsmax|}}} }} }}
 
;Eggs Per Clutch
 
;Eggs Per Clutch
 
:{{#show: {{#var:Name}}|?Eggs Per Clutch Minimum|link=none}} to {{#show: {{#var:Name}}|?Eggs Per Clutch Maximum|link=none}} }}
 
:{{#show: {{#var:Name}}|?Eggs Per Clutch Minimum|link=none}} to {{#show: {{#var:Name}}|?Eggs Per Clutch Maximum|link=none}} }}
  
{{#if: {{{eggtime|}}}|
+
{{#if: {{{eggtime|}}}|{{#set: Egg Laying Interval = {{{eggtime|}}} }}
 
+
{{#set: Eggs Per Season Average = {{#expr: {{{eggs_avg|}}}/{{{eggtime|}}}*15 round 2}} }}
 
;Egg Laying Interval
 
;Egg Laying Interval
 
:{{{eggtime|}}}&nbsp;days}}
 
:{{{eggtime|}}}&nbsp;days}}
  
{{#if: {{{eggs_avg|}}}|
+
{{#if: {{{eggs_avg|}}}|{{#set: Eggs Per Clutch Average = {{{eggs_avg|}}} }} }}
  
{{#if: {{{eggs_unfertilized|}}}|
+
{{#if: {{{eggs_unfertilized|}}}|{{#set: Can Lay Unfertilized Eggs = {{{eggs_unfertilized|}}} }}
 
;Can Lay Unfertilized Eggs
 
;Can Lay Unfertilized Eggs
 
:{{{eggs_unfertilized|}}} }}
 
:{{{eggs_unfertilized|}}} }}
  
{{#if: {{{gestation|}}}|
+
{{#if: {{{gestation|}}}|{{#set: Gestation Period Days = {{{gestation|}}} }}
 
;Gestation Period
 
;Gestation Period
 
{{#switch: {{{gestation|}}}
 
{{#switch: {{{gestation|}}}
Line 303: Line 303:
 
}}}}
 
}}}}
  
{{#if: {{{offspring|}}}|
+
{{#if: {{{offspring|}}}|{{#set: Offspring Per Birth = {{{offspring|}}} }}
 
;Offspring Per Birth
 
;Offspring Per Birth
 
:{{{offspring|}}} }}
 
:{{{offspring|}}} }}
  
{{#if: {{{maturityage|}}}|
+
{{#if: {{{maturityage|}}}|{{#set: Maturity Age = {{{maturityage|}}} }}
 
;Maturity Age
 
;Maturity Age
 
:{{{maturityage|}}} years {{#ifexpr: {{{maturityage|}}} < 1 | ({{formatnum: {{#expr: ({{formatnum:{{{maturityage|}}}|R}}*60)round 0}} }} days) }} |}}
 
:{{{maturityage|}}} years {{#ifexpr: {{{maturityage|}}} < 1 | ({{formatnum: {{#expr: ({{formatnum:{{{maturityage|}}}|R}}*60)round 0}} }} days) }} |}}
  
{{#if: {{{min comfortable temperature|}}}|
+
{{#if: {{{min comfortable temperature|}}}|{{#set: Min Comfortable Temperature = {{{min comfortable temperature|}}} }}
{{#if: {{{max comfortable temperature|}}}|
+
{{#if: {{{max comfortable temperature|}}}|{{#set: Max Comfortable Temperature = {{{max comfortable temperature|}}} }}
 
;Comfortable Temp Range
 
;Comfortable Temp Range
 
:{{{min comfortable temperature|}}}&deg;C - {{{max comfortable temperature|}}}&deg;C}}
 
:{{{min comfortable temperature|}}}&deg;C - {{{max comfortable temperature|}}}&deg;C}}
 
}}
 
}}
  
{{#if: {{{livesin_aridshrubland|}}}|
+
{{#if: {{{livesin_aridshrubland|}}}|{{#set: Lives in Arid Shrubland = true}} }}
{{#if: {{{livesin_borealforest|}}}|
+
{{#if: {{{livesin_borealforest|}}}|{{#set: Lives in Boreal Forest = true}} }}
{{#if: {{{livesin_desert|}}}|
+
{{#if: {{{livesin_desert|}}}|{{#set: Lives in Desert = true}} }}
{{#if: {{{livesin_extremedesert|}}}|
+
{{#if: {{{livesin_extremedesert|}}}|{{#set: Lives in Extreme Desert = true}} }}
{{#if: {{{livesin_icesheet|}}}|
+
{{#if: {{{livesin_icesheet|}}}|{{#set: Lives in Icesheet = true}} }}
{{#if: {{{livesin_seaice|}}}|
+
{{#if: {{{livesin_seaice|}}}|{{#set: Lives in Sea Ice = true}} }}
{{#if: {{{livesin_temperateforest|}}}|
+
{{#if: {{{livesin_temperateforest|}}}|{{#set: Lives in Temperate Forest = true}} }}
{{#if: {{{livesin_tropicalrainforest|}}}|
+
{{#if: {{{livesin_tropicalrainforest|}}}|{{#set: Lives in Tropical Rainforest = true}} }}
{{#if: {{{livesin_tundra|}}}|
+
{{#if: {{{livesin_tundra|}}}|{{#set: Lives in Tundra = true}} }}
  
  
Line 331: Line 331:
 
<!--Plants-->
 
<!--Plants-->
  
{{#if: {{{growth time|}}}|
+
{{#if: {{{growth time|}}}|{{#set:Growth Time = {{{growth time|}}} }}
 
;Time to grow
 
;Time to grow
 
:{{{growth time|}}} day(s)}}
 
:{{{growth time|}}} day(s)}}
Line 346: Line 346:
 
<!--Buildings-->
 
<!--Buildings-->
  
{{#if: {{{power|}}}|
+
{{#if: {{{power|}}}|{{#set:Power Consumption = {{{power|}}} }}
 
;Power
 
;Power
 
:{{{power|}}}W}}
 
:{{{power|}}}W}}
  
{{#if: {{{facility|}}}|
+
{{#if: {{{facility|}}}|{{#set:Facility = {{{facility|}}} }}}}
  
 
<!--Floors-->
 
<!--Floors-->
  
{{#if: {{{speed|}}}|
+
{{#if: {{{speed|}}}|{{#set:Move Speed Factor = {{{speed|}}} }}
 
;Move Speed Factor
 
;Move Speed Factor
 
:{{#expr:{{{speed|}}}*100}}%
 
:{{#expr:{{{speed|}}}*100}}%
Line 361: Line 361:
 
<!--Furniture-->
 
<!--Furniture-->
  
{{#if: {{{immunity gain speed factor|}}}|
+
{{#if: {{{immunity gain speed factor|}}}|{{#set:Immunity Gain Speed Factor = {{{immunity gain speed factor|}}} }}
 
;Immunity Gain Speed Factor
 
;Immunity Gain Speed Factor
 
:{{{immunity gain speed factor|}}}}}
 
:{{{immunity gain speed factor|}}}}}
  
{{#if: {{{rest effectiveness|}}}|
+
{{#if: {{{rest effectiveness|}}}|{{#set:Rest Effectiveness = {{{rest effectiveness|}}} }}
 
;Rest Effectiveness
 
;Rest Effectiveness
 
:{{{rest effectiveness|}}}}}
 
:{{{rest effectiveness|}}}}}
  
{{#if: {{{comfort|}}}|
+
{{#if: {{{comfort|}}}|{{#set:Comfort Base = {{{comfort|}}} }}
 
;Comfort
 
;Comfort
 
:{{{comfort|}}}}}
 
:{{{comfort|}}}}}
  
{{#if: {{{comfort offset|}}}|
+
{{#if: {{{comfort offset|}}}|{{#set:Comfort Offset = {{{comfort offset|}}} }}
 
;Comfort Offset  
 
;Comfort Offset  
 
:{{{comfort offset|}}}}}
 
:{{{comfort offset|}}}}}
  
{{#if: {{{cover|}}}|
+
{{#if: {{{cover|}}}|{{#set:Cover Effectiveness= {{{cover|}}} }}
 
;Cover Effectiveness
 
;Cover Effectiveness
 
:{{#expr:{{{cover|}}}*100}}%}}
 
:{{#expr:{{{cover|}}}*100}}%}}
Line 383: Line 383:
 
<!--Weapons-->
 
<!--Weapons-->
  
{{#if: {{{class|}}}|
+
{{#if: {{{class|}}}|{{#set:Class = {{{class|}}} Weapons}}
 
;Class
 
;Class
 
:[[{{{class|}}} Weapons|{{{class|}}}]]
 
:[[{{{class|}}} Weapons|{{{class|}}}]]
 
}}
 
}}
  
{{#if: {{{mode|}}}|
+
{{#if: {{{mode|}}}|{{#set:Mode = {{{mode|}}} }}
 
;Mode
 
;Mode
 
:{{{mode|}}}}}
 
:{{{mode|}}}}}
Line 396: Line 396:
  
  
{{#if: {{{damage type|}}}|
+
{{#if: {{{damage type|}}}|{{#set:Damage Type = {{{damage type|}}} }}
 
;Dmg Type
 
;Dmg Type
 
:{{{damage type|}}} }}
 
:{{{damage type|}}} }}
Line 406: Line 406:
  
 
{{#if: {{{mode|}}}|{{#ifeq: {{{mode|}}} | Melee |
 
{{#if: {{{mode|}}}|{{#ifeq: {{{mode|}}} | Melee |
 
+
{{#set:Melee Damage Base = {{{damage|}}}
 
|Melee Warmup = {{{warmup|}}}
 
|Melee Warmup = {{{warmup|}}}
 
|Melee Cooldown Base = {{{cooldown|}}}
 
|Melee Cooldown Base = {{{cooldown|}}}
 
}}
 
}}
 
|
 
|
 
+
{{#set:Damage Base = {{{damage|}}}
 
|Aiming Time Base = {{{warmup|}}}
 
|Aiming Time Base = {{{warmup|}}}
 
|Ranged Cooldown Base = {{{cooldown|}}}
 
|Ranged Cooldown Base = {{{cooldown|}}}
Line 425: Line 425:
 
}}
 
}}
  
{{#if: {{{armorPenetration|}}}|
+
{{#if: {{{armorPenetration|}}}|{{#set:ArmorPenetration= {{{armorPenetration|}}} }}
 
;Armor penetration
 
;Armor penetration
 
:{{{armorPenetration|}}}%}}
 
:{{{armorPenetration|}}}%}}
Line 437: Line 437:
 
:{{ticks|{{{cooldown|}}}}}}}
 
:{{ticks|{{{cooldown|}}}}}}}
  
{{#if: {{{range|}}}|
+
{{#if: {{{range|}}}|{{#set:Range = {{{range|}}} }}
 
;Range
 
;Range
 
:{{{range|}}} tile(s)}}
 
:{{{range|}}} tile(s)}}
Line 449: Line 449:
 
:{{{accuracy|}}}}}
 
:{{{accuracy|}}}}}
  
{{#if: {{{accuracyTouch|}}}|    
+
{{#if: {{{accuracyTouch|}}}| {{#Set: Accuracy (Touch) Base = {{{accuracyTouch|}}} }}   
{{#if: {{{accuracyShort|}}}|  
+
{{#if: {{{accuracyShort|}}}| {{#Set: Accuracy (Short) Base = {{{accuracyShort|}}} }} 
{{#if: {{{accuracyMedium|}}}|      
+
{{#if: {{{accuracyMedium|}}}| {{#Set: Accuracy (Medium) Base = {{{accuracyMedium|}}} }}     
{{#if: {{{accuracyLong|}}}|  
+
{{#if: {{{accuracyLong|}}}| {{#Set: Accuracy (Long) Base = {{{accuracyLong|}}} }}
 
;{{H:title|link=no|Touch % - Short % - Medium % - Long %|Accuracy}}
 
;{{H:title|link=no|Touch % - Short % - Medium % - Long %|Accuracy}}
 
:{{{accuracyTouch|}}}% - {{{accuracyShort|}}}% - {{{accuracyMedium|}}}% - {{{accuracyLong|}}}%
 
:{{{accuracyTouch|}}}% - {{{accuracyShort|}}}% - {{{accuracyMedium|}}}% - {{{accuracyLong|}}}%
Line 464: Line 464:
 
:{{{accuracyAvg|}}}%}}
 
:{{{accuracyAvg|}}}%}}
  
{{#if: {{{velocity|}}}|
+
{{#if: {{{velocity|}}}|{{#set:Velocity = {{{velocity|}}} }}
 
;Velocity
 
;Velocity
 
:{{{velocity|}}} (m/s)}}
 
:{{{velocity|}}} (m/s)}}
  
{{#if: {{{burst|}}}|
+
{{#if: {{{burst|}}}|{{#set:Burst Count = {{{burst|}}} }}
 
;Burst Count
 
;Burst Count
 
:{{{burst|}}} (per burst)}}
 
:{{{burst|}}} (per burst)}}
  
{{#if: {{{burstTicks|}}}|
+
{{#if: {{{burstTicks|}}}|{{#set: Burst Ticks = {{{burstTicks|}}} }}
 
;{{H:title|link=no|Time between shots in a single burst|Burst Ticks}}
 
;{{H:title|link=no|Time between shots in a single burst|Burst Ticks}}
 
:{{ticks|{{{burstTicks|}}}}}}}
 
:{{ticks|{{{burstTicks|}}}}}}}
  
{{#if: {{{missRadius|}}}|
+
{{#if: {{{missRadius|}}}|{{#set:Miss Radius = {{{missRadius|}}} }}
 
;{{H:title|link=no|Missed shots are forced to land within this radius|Miss Radius}}
 
;{{H:title|link=no|Missed shots are forced to land within this radius|Miss Radius}}
 
:{{{missRadius|}}} tile(s)}}
 
:{{{missRadius|}}} tile(s)}}
  
{{#if: {{{blastRadius|}}}|
+
{{#if: {{{blastRadius|}}}|{{#set:Blast Radius = {{{blastRadius|}}} }}
 
;Blast Radius
 
;Blast Radius
 
:{{{blastRadius|}}}}}
 
:{{{blastRadius|}}}}}
Line 487: Line 487:
 
;{{H:title|link=yes|Formatted as: Maximum damage per second (DPS with average accuracy)|DPS}}
 
;{{H:title|link=yes|Formatted as: Maximum damage per second (DPS with average accuracy)|DPS}}
 
:{{ #expr: ((( {{{damage|}}} * {{#if: {{{burst|}}}|{{{burst|}}}|1}} ) / (( {{#if: {{{cooldown|}}}|{{{cooldown|}}}|1}} + {{#if: {{{warmup|}}}|{{{warmup|}}}|0}} + ( {{#if: {{{burstTicks|}}}|{{{burstTicks|}}}|1}} * ( {{#if: {{{burst|}}}|{{{burst|}}}|1}} - 1 ))) / 60))) round2 }} {{#if: {{{accuracyTouch|}}}| {{#if: {{{accuracyShort|}}}| {{#if: {{{accuracyMedium|}}}| {{#if: {{{accuracyLong|}}}|({{ #expr: ((( {{{damage|}}} * {{#if: {{{burst|}}}|{{{burst|}}}|1}} ) / (( {{#if: {{{cooldown|}}}|{{{cooldown|}}}|1}} + {{#if: {{{warmup|}}}|{{{warmup|}}}|0}} + ( {{#if: {{{burstTicks|}}}|{{{burstTicks|}}}|1}} * ( {{#if: {{{burst|}}}|{{{burst|}}}|1}} - 1 ))) / 60)) * ({{{accuracyAvg|}}} / 100)) round2 }})}}}}}}}}
 
:{{ #expr: ((( {{{damage|}}} * {{#if: {{{burst|}}}|{{{burst|}}}|1}} ) / (( {{#if: {{{cooldown|}}}|{{{cooldown|}}}|1}} + {{#if: {{{warmup|}}}|{{{warmup|}}}|0}} + ( {{#if: {{{burstTicks|}}}|{{{burstTicks|}}}|1}} * ( {{#if: {{{burst|}}}|{{{burst|}}}|1}} - 1 ))) / 60))) round2 }} {{#if: {{{accuracyTouch|}}}| {{#if: {{{accuracyShort|}}}| {{#if: {{{accuracyMedium|}}}| {{#if: {{{accuracyLong|}}}|({{ #expr: ((( {{{damage|}}} * {{#if: {{{burst|}}}|{{{burst|}}}|1}} ) / (( {{#if: {{{cooldown|}}}|{{{cooldown|}}}|1}} + {{#if: {{{warmup|}}}|{{{warmup|}}}|0}} + ( {{#if: {{{burstTicks|}}}|{{{burstTicks|}}}|1}} * ( {{#if: {{{burst|}}}|{{{burst|}}}|1}} - 1 ))) / 60)) * ({{{accuracyAvg|}}} / 100)) round2 }})}}}}}}}}
 
+
{{#set:Maximum DPS={{ #expr: ((( {{{damage|}}} * {{#if: {{{burst|}}}|{{{burst|}}}|1}} ) / (( {{#if: {{{cooldown|}}}|{{{cooldown|}}}|1}} + {{#if: {{{warmup|}}}|{{{warmup|}}}|0}} + ( {{#if: {{{burstTicks|}}}|{{{burstTicks|}}}|1}} * ( {{#if: {{{burst|}}}|{{{burst|}}}|1}} - 1 ))) / 60))) round2 }}}}
 
+
{{#set:Average DPS={{#if: {{{accuracyTouch|}}}| {{#if: {{{accuracyShort|}}}| {{#if: {{{accuracyMedium|}}}| {{#if: {{{accuracyLong|}}}|{{#expr: ((( {{{damage|}}} * {{#if: {{{burst|}}}|{{{burst|}}}|1}} ) / (( {{#if: {{{cooldown|}}}|{{{cooldown|}}}|1}} + {{#if: {{{warmup|}}}|{{{warmup|}}}|0}} + ( {{#if: {{{burstTicks|}}}|{{{burstTicks|}}}|1}} * ( {{#if: {{{burst|}}}|{{{burst|}}}|1}} - 1 ))) / 60)) * ({{{accuracyAvg|}}} / 100)) round 2 }}}}}}}}}}}}
 
}}
 
}}
  
{{#if: {{{stoppingPower|}}}|
+
{{#if: {{{stoppingPower|}}}|{{#set: Stopping power = {{{stoppingPower|}}} }}
 
;{{H:title|link=no|Ability of a weapon to 'stagger' targets, slowing them down for a short while. Larger values allow the weapon to stagger targets with bigger body sizes.|Stopping power}}
 
;{{H:title|link=no|Ability of a weapon to 'stagger' targets, slowing them down for a short while. Larger values allow the weapon to stagger targets with bigger body sizes.|Stopping power}}
 
:{{{stoppingPower|}}}}}
 
:{{{stoppingPower|}}}}}
Line 501: Line 501:
 
}}
 
}}
 
{{#if: {{{attack1dmg|}}}{{{attack1type|}}}{{{attack1part|}}}{{{attack1cool|}}}|
 
{{#if: {{{attack1dmg|}}}{{{attack1type|}}}{{{attack1part|}}}{{{attack1cool|}}}|
    
+
   {{#set:Attack 1 Damage = {{{attack1dmg|}}} }}
    
+
   {{#set:Attack 1 Type = {{{attack1type|}}} }}
    
+
   {{#set:Attack 1 Part = {{{attack1part|}}} }}
    
+
   {{#set:Attack 1 Cooldown = {{{attack1cool|}}} }}
 
   {{#vardefine: Attack1DPS | {{#expr: {{{attack1dmg|}}} / ({{{attack1cool}}} / 60) }} }}
 
   {{#vardefine: Attack1DPS | {{#expr: {{{attack1dmg|}}} / ({{{attack1cool}}} / 60) }} }}
    
+
   {{#set: Attack 1 DPS = {{#var: Attack1DPS}} }}
 
;Attack{{#if: {{{attack2dmg|}}}|&nbsp;1}}
 
;Attack{{#if: {{{attack2dmg|}}}|&nbsp;1}}
 
:{{{attack1part|Body part?}}}<br>{{{attack1dmg|?}}} dmg ({{{attack1type|type?}}})<br>{{#expr: ({{{attack1dmg|}}}*1.5-0.001) round 0}}% AP<br>{{ticks|{{{attack1cool|0}}}}} }}<!--
 
:{{{attack1part|Body part?}}}<br>{{{attack1dmg|?}}} dmg ({{{attack1type|type?}}})<br>{{#expr: ({{{attack1dmg|}}}*1.5-0.001) round 0}}% AP<br>{{ticks|{{{attack1cool|0}}}}} }}<!--
-->{{#if: {{{attack1stun|}}}|
+
-->{{#if: {{{attack1stun|}}}|{{#set:Attack 1 Stun = {{{attack1stun|}}}}}<br>Stun for {{ticks|{{{attack1stun|0}}}*20}} on first strike}}
  
 
{{#if: {{{attack2dmg|}}}{{{attack2type|}}}{{{attack2part|}}}{{{attack2cool|}}}|
 
{{#if: {{{attack2dmg|}}}{{{attack2type|}}}{{{attack2part|}}}{{{attack2cool|}}}|
    
+
   {{#set:Attack 2 Damage = {{{attack2dmg|}}} }}
    
+
   {{#set:Attack 2 Type = {{{attack2type|}}} }}
    
+
   {{#set:Attack 2 Part = {{{attack2part|}}} }}
    
+
   {{#set:Attack 2 Cooldown = {{{attack2cool|}}} }}
 
   {{#vardefine: Attack2DPS | {{#expr: {{{attack2dmg|}}} / ({{{attack2cool}}} / 60) }} }}
 
   {{#vardefine: Attack2DPS | {{#expr: {{{attack2dmg|}}} / ({{{attack2cool}}} / 60) }} }}
    
+
   {{#set: Attack 2 DPS = {{#var: Attack2DPS}} }}
 
;Attack 2
 
;Attack 2
 
:{{{attack2part|Body part?}}}<br>{{{attack2dmg|?}}} dmg ({{{attack2type|type?}}})<br>{{#expr:  ({{{attack1dmg|}}}*1.5-0.001) round 0}}% AP<br>{{ticks|{{{attack2cool|0}}}}} }}<!--
 
:{{{attack2part|Body part?}}}<br>{{{attack2dmg|?}}} dmg ({{{attack2type|type?}}})<br>{{#expr:  ({{{attack1dmg|}}}*1.5-0.001) round 0}}% AP<br>{{ticks|{{{attack2cool|0}}}}} }}<!--
-->{{#if: {{{attack2stun|}}}|
+
-->{{#if: {{{attack2stun|}}}|{{#set:Attack 2 Stun = {{{attack2stun|}}}}}<br>Stun for {{ticks|{{{attack2stun|0}}}*20}} on first strike}}
  
 
{{#if: {{{attack3dmg|}}}{{{attack3type|}}}{{{attack3part|}}}{{{attack3cool|}}}|
 
{{#if: {{{attack3dmg|}}}{{{attack3type|}}}{{{attack3part|}}}{{{attack3cool|}}}|
    
+
   {{#set:Attack 3 Damage = {{{attack3dmg|}}} }}
    
+
   {{#set:Attack 3 Type = {{{attack3type|}}} }}
    
+
   {{#set:Attack 3 Part = {{{attack3part|}}} }}
    
+
   {{#set:Attack 3 Cooldown = {{{attack3cool|}}} }}
 
   {{#vardefine: Attack3DPS | {{#expr: {{{attack3dmg|}}} / ({{{attack3cool}}} / 60) }} }}
 
   {{#vardefine: Attack3DPS | {{#expr: {{{attack3dmg|}}} / ({{{attack3cool}}} / 60) }} }}
    
+
   {{#set: Attack 3 DPS = {{#var: Attack3DPS}} }}
 
;Attack 3
 
;Attack 3
 
:{{{attack3part|Body part?}}}<br>{{{attack3dmg|?}}} dmg ({{{attack3type|type?}}})<br>{{#expr:  ({{{attack1dmg|}}}*1.5-0.001) round 0}}% AP<br>{{ticks|{{{attack3cool|0}}}}} }}<!--
 
:{{{attack3part|Body part?}}}<br>{{{attack3dmg|?}}} dmg ({{{attack3type|type?}}})<br>{{#expr:  ({{{attack1dmg|}}}*1.5-0.001) round 0}}% AP<br>{{ticks|{{{attack3cool|0}}}}} }}<!--
-->{{#if: {{{attack3stun|}}}|
+
-->{{#if: {{{attack3stun|}}}|{{#set:Attack 3 Stun = {{{attack3stun|}}}}}<br>Stun for {{ticks|{{{attack3stun|0}}}*20}} on first strike}}
  
 
{{#if: {{{attack4dmg|}}}{{{attack4type|}}}{{{attack4part|}}}{{{attack4cool|}}}|
 
{{#if: {{{attack4dmg|}}}{{{attack4type|}}}{{{attack4part|}}}{{{attack4cool|}}}|
    
+
   {{#set:Attack 4 Damage = {{{attack4dmg|}}} }}
    
+
   {{#set:Attack 4 Type = {{{attack4type|}}} }}
    
+
   {{#set:Attack 4 Part = {{{attack4part|}}} }}
    
+
   {{#set:Attack 4 Cooldown = {{{attack4cool|}}} }}
 
   {{#vardefine: Attack4DPS | {{#expr: {{{attack4dmg|}}} / ({{{attack4cool}}} / 60) }} }}
 
   {{#vardefine: Attack4DPS | {{#expr: {{{attack4dmg|}}} / ({{{attack4cool}}} / 60) }} }}
    
+
   {{#set: Attack 4 DPS = {{#var: Attack4DPS}} }}
 
;Attack 4
 
;Attack 4
 
:{{{attack4part|Body part?}}}<br>{{{attack4dmg|?}}} dmg ({{{attack4type|type?}}})<br>{{#expr:  ({{{attack1dmg|}}}*1.5-0.001) round 0}}% AP<br>{{ticks|{{{attack4cool|0}}}}} on first strike}}<!--
 
:{{{attack4part|Body part?}}}<br>{{{attack4dmg|?}}} dmg ({{{attack4type|type?}}})<br>{{#expr:  ({{{attack1dmg|}}}*1.5-0.001) round 0}}% AP<br>{{ticks|{{{attack4cool|0}}}}} on first strike}}<!--
-->{{#if: {{{attack4stun|}}}|
+
-->{{#if: {{{attack4stun|}}}|{{#set:Attack 4 Stun = {{{attack4stun|}}}}}<br>Stun for {{ticks|{{{attack4stun|0}}}*20}}}}
  
 
{{#ifeq: {{#varexists: Attack4DPS}}|1|
 
{{#ifeq: {{#varexists: Attack4DPS}}|1|
Line 556: Line 556:
 
;Average DPS
 
;Average DPS
 
:{{#var: MobAverageDPS}}
 
:{{#var: MobAverageDPS}}
 +
{{#set: Mob Average DPS = {{#var: MobAverageDPS}} }} }} }}
  
 
+
{{#if: {{{mobdamage|}}}|{{#set:Melee Damage Base = {{{mobdamage|}}} }}
{{#if: {{{mobdamage|}}}|
 
 
;Damage
 
;Damage
 
:{{{mobdamage|}}}}}
 
:{{{mobdamage|}}}}}
  
{{#if: {{{mobdamagetype|}}}|
+
{{#if: {{{mobdamagetype|}}}|{{#set:Melee Damage Def = {{{mobdamagetype|}}} }}
 
;Damage Type
 
;Damage Type
 
:{{{mobdamagetype|}}}}}
 
:{{{mobdamagetype|}}}}}
  
{{#if: {{{mobdamage2|}}}|
+
{{#if: {{{mobdamage2|}}}|{{#set:Melee Damage Base = {{{mobdamage2|}}} }}
 
;Damage
 
;Damage
 
:{{{mobdamage2|}}}}}
 
:{{{mobdamage2|}}}}}
  
{{#if: {{{mobdamagetype2|}}}|
+
{{#if: {{{mobdamagetype2|}}}|{{#set:Melee Damage Def = {{{mobdamagetype2|}}} }}
 
;Damage Type
 
;Damage Type
 
:{{{mobdamagetype2|}}}}}
 
:{{{mobdamagetype2|}}}}}
  
{{#if: {{{mobdamage3|}}}|
+
{{#if: {{{mobdamage3|}}}|{{#set:Melee Damage Base = {{{mobdamage3|}}} }}
 
;Damage
 
;Damage
 
:{{{mobdamage3|}}}}}
 
:{{{mobdamage3|}}}}}
  
{{#if: {{{mobdamagetype3|}}}|
+
{{#if: {{{mobdamagetype3|}}}|{{#set:Melee Damage Def = {{{mobdamagetype3|}}} }}
 
;Damage Type
 
;Damage Type
 
:{{{mobdamagetype3|}}}}}
 
:{{{mobdamagetype3|}}}}}
  
{{#if: {{{mobdamageaverage|}}}|
+
{{#if: {{{mobdamageaverage|}}}|{{#set:Average Melee Damage = {{{mobdamageaverage|}}}}}}}
  
 
<!-- New melee starting from Beta 18 -->
 
<!-- New melee starting from Beta 18 -->
Line 588: Line 588:
  
 
{{#if: {{{meleeattack1dmg|}}}{{{meleeattack1type|}}}{{{meleeattack1part|}}}{{{meleeattack1cool|}}}|
 
{{#if: {{{meleeattack1dmg|}}}{{{meleeattack1type|}}}{{{meleeattack1part|}}}{{{meleeattack1cool|}}}|
    
+
   {{#set:Attack 1 Damage = {{{meleeattack1dmg|}}} }}
    
+
   {{#set:Attack 1 Type = {{{meleeattack1type|}}} }}
    
+
   {{#set:Attack 1 Part = {{{meleeattack1part|}}} }}
    
+
   {{#set:Attack 1 Cooldown = {{{meleeattack1cool|}}} }}
    
+
   {{#set:Attack 1 AP = {{{meleeattack1ap|}}} }}
 
   {{#vardefine: MeleeAttack1DPS | {{#expr: {{{meleeattack1dmg|}}} / ({{{meleeattack1cool}}}) }} }}
 
   {{#vardefine: MeleeAttack1DPS | {{#expr: {{{meleeattack1dmg|}}} / ({{{meleeattack1cool}}}) }} }}
 
   {{#vardefine: MeleeAttack1Chance | {{#expr: {{{meleeattack1dmg|}}} ^ 2 }} }}
 
   {{#vardefine: MeleeAttack1Chance | {{#expr: {{{meleeattack1dmg|}}} ^ 2 }} }}
Line 599: Line 599:
  
 
{{#if: {{{meleeattack2dmg|}}}{{{meleeattack2type|}}}{{{meleeattack2part|}}}{{{meleeattack2cool|}}}|
 
{{#if: {{{meleeattack2dmg|}}}{{{meleeattack2type|}}}{{{meleeattack2part|}}}{{{meleeattack2cool|}}}|
    
+
   {{#set:Attack 2 Damage = {{{meleeattack2dmg|}}} }}
    
+
   {{#set:Attack 2 Type = {{{meleeattack2type|}}} }}
    
+
   {{#set:Attack 2 Part = {{{meleeattack2part|}}} }}
    
+
   {{#set:Attack 2 Cooldown = {{{meleeattack2cool|}}} }}
    
+
   {{#set:Attack 2 AP = {{{meleeattack2ap|}}} }}
 
   {{#vardefine: MeleeAttack2DPS | {{#expr: {{{meleeattack2dmg|}}} / ({{{meleeattack2cool}}}) }} }}
 
   {{#vardefine: MeleeAttack2DPS | {{#expr: {{{meleeattack2dmg|}}} / ({{{meleeattack2cool}}}) }} }}
 
   {{#vardefine: MeleeAttack2Chance | {{#expr: {{{meleeattack2dmg|}}} ^ 2 }} }}
 
   {{#vardefine: MeleeAttack2Chance | {{#expr: {{{meleeattack2dmg|}}} ^ 2 }} }}
Line 610: Line 610:
  
 
{{#if: {{{meleeattack3dmg|}}}{{{meleeattack3type|}}}{{{meleeattack3part|}}}{{{meleeattack3cool|}}}|
 
{{#if: {{{meleeattack3dmg|}}}{{{meleeattack3type|}}}{{{meleeattack3part|}}}{{{meleeattack3cool|}}}|
    
+
   {{#set:Attack 3 Damage = {{{meleeattack3dmg|}}} }}
    
+
   {{#set:Attack 3 Type = {{{meleeattack3type|}}} }}
    
+
   {{#set:Attack 3 Part = {{{meleeattack3part|}}} }}
    
+
   {{#set:Attack 3 Cooldown = {{{meleeattack3cool|}}} }}
    
+
   {{#set:Attack 3 AP = {{{meleeattack3ap|}}} }}
 
   {{#vardefine: MeleeAttack3DPS | {{#expr: {{{meleeattack3dmg|}}} / ({{{meleeattack3cool}}}) }} }}
 
   {{#vardefine: MeleeAttack3DPS | {{#expr: {{{meleeattack3dmg|}}} / ({{{meleeattack3cool}}}) }} }}
 
   {{#vardefine: MeleeAttack3Chance | {{#expr: {{{meleeattack3dmg|}}} ^ 2 }} }}
 
   {{#vardefine: MeleeAttack3Chance | {{#expr: {{{meleeattack3dmg|}}} ^ 2 }} }}
Line 621: Line 621:
  
 
{{#if: {{{meleeattack4dmg|}}}{{{meleeattack4type|}}}{{{meleeattack4part|}}}{{{meleeattack4cool|}}}|
 
{{#if: {{{meleeattack4dmg|}}}{{{meleeattack4type|}}}{{{meleeattack4part|}}}{{{meleeattack4cool|}}}|
    
+
   {{#set:Attack 4 Damage = {{{meleeattack4dmg|}}} }}
    
+
   {{#set:Attack 4 Type = {{{meleeattack4type|}}} }}
    
+
   {{#set:Attack 4 Part = {{{meleeattack4part|}}} }}
    
+
   {{#set:Attack 4 Cooldown = {{{meleeattack4cool|}}} }}
    
+
   {{#set:Attack 4 AP = {{{meleeattack4ap|}}} }}
 
   {{#vardefine: MeleeAttack4DPS | {{#expr: {{{meleeattack4dmg|}}} / ({{{meleeattack4cool}}}) }} }}
 
   {{#vardefine: MeleeAttack4DPS | {{#expr: {{{meleeattack4dmg|}}} / ({{{meleeattack4cool}}}) }} }}
 
   {{#vardefine: MeleeAttack4Chance | {{#expr: {{{meleeattack4dmg|}}} ^ 2 }} }}
 
   {{#vardefine: MeleeAttack4Chance | {{#expr: {{{meleeattack4dmg|}}} ^ 2 }} }}
Line 632: Line 632:
  
  
{{#if: {{{MeleeWeaponAverageDPS|}}}|
+
{{#if: {{{MeleeWeaponAverageDPS|}}}|{{#set:MeleeDPS= {{{MeleeWeaponAverageDPS|}}} }}
 
;Melee Average DPS
 
;Melee Average DPS
 
:{{{MeleeWeaponAverageDPS|}}} }}
 
:{{{MeleeWeaponAverageDPS|}}} }}
  
{{#if: {{{MeleeWeaponAverageAP|}}}|
+
{{#if: {{{MeleeWeaponAverageAP|}}}|{{#set:MeleeAP= {{{MeleeWeaponAverageAP|}}} }}
 
;Melee Average AP
 
;Melee Average AP
 
:{{{MeleeWeaponAverageAP|}}}%}}
 
:{{{MeleeWeaponAverageAP|}}}%}}
Line 666: Line 666:
  
 
<!-- Work to make should be specified in *ticks*, like in the game files.  This has been inconsistent in the past -->
 
<!-- Work to make should be specified in *ticks*, like in the game files.  This has been inconsistent in the past -->
{{#if: {{{work to make|}}}|
+
{{#if: {{{work to make|}}}|{{#set:Work To Make = {{{work to make|}}} }}
 
;Work To Make
 
;Work To Make
 
:{{ticks|{{{work to make|}}}}}
 
:{{ticks|{{{work to make|}}}}}
Line 676: Line 676:
 
}}
 
}}
  
{{#if: {{{stuff tags|}}}|
+
{{#if: {{{stuff tags|}}}|{{#set:Stuff Tags = {{{stuff tags}}}}}
 
;{{H:title|link=no|The types of resource that can be substituted for the generic resource type|Stuff tags}}
 
;{{H:title|link=no|The types of resource that can be substituted for the generic resource type|Stuff tags}}
 
:{{{stuff tags|}}}
 
:{{{stuff tags|}}}
 
}}
 
}}
  
{{#if: {{{resource 1|}}}|
+
{{#if: {{{resource 1|}}}|{{#set:Resource 1 = {{{resource 1|}}} }}}}
{{#if: {{{resource 2|}}}|
+
{{#if: {{{resource 2|}}}|{{#set:Resource 2 = {{{resource 2|}}} }}}}
{{#if: {{{resource 3|}}}|
+
{{#if: {{{resource 3|}}}|{{#set:Resource 3 = {{{resource 3|}}} }}}}
{{#if: {{{resource 4|}}}|
+
{{#if: {{{resource 4|}}}|{{#set:Resource 4 = {{{resource 4|}}} }}}}
{{#if: {{{resource 5|}}}|
+
{{#if: {{{resource 5|}}}|{{#set:Resource 5 = {{{resource 5|}}} }}}}
{{#if: {{{resource 6|}}}|
+
{{#if: {{{resource 6|}}}|{{#set:Resource 6 = {{{resource 6|}}} }}}}
{{#if: {{{resource 1 amount|}}}|
+
{{#if: {{{resource 1 amount|}}}|{{#set:Resource 1 Amount = {{{resource 1 amount|}}} }}}}
{{#if: {{{resource 2 amount|}}}|
+
{{#if: {{{resource 2 amount|}}}|{{#set:Resource 2 Amount = {{{resource 2 amount|}}} }}}}
{{#if: {{{resource 3 amount|}}}|
+
{{#if: {{{resource 3 amount|}}}|{{#set:Resource 3 Amount = {{{resource 3 amount|}}} }}}}
{{#if: {{{resource 4 amount|}}}|
+
{{#if: {{{resource 4 amount|}}}|{{#set:Resource 4 Amount = {{{resource 4 amount|}}} }}}}
{{#if: {{{resource 5 amount|}}}|
+
{{#if: {{{resource 5 amount|}}}|{{#set:Resource 5 Amount = {{{resource 5 amount|}}} }}}}
{{#if: {{{resource 6 amount|}}}|
+
{{#if: {{{resource 6 amount|}}}|{{#set:Resource 6 Amount = {{{resource 6 amount|}}} }}}}
  
 
{{#if: {{{resource 1|}}}|
 
{{#if: {{{resource 1|}}}|
Line 712: Line 712:
  
 
{{#if: {{{page verified for version|}}}|{{Verified|{{{page verified for version|}}}}}| {{Verified}} }}
 
{{#if: {{{page verified for version|}}}|{{Verified|{{{page verified for version|}}}}}| {{Verified}} }}
 
  
 
<br style="clear: both; height: 0px;" />
 
<br style="clear: both; height: 0px;" />
 
</dl></div></div></includeonly><noinclude>
 
</dl></div></div></includeonly><noinclude>
 
{{documentation}}</noinclude><!-- Add categories and interwikis to the /doc subpage, not here! -->
 
{{documentation}}</noinclude><!-- Add categories and interwikis to the /doc subpage, not here! -->

Revision as of 01:43, 2 March 2021

Documentation icon Template documentation[view] [edit] [history] [purge]

This is a testing version of Template:Infobox main for trying out changes without breaking the site.

Example #1

Muffalo

Muffalo

"A large herding herbivore descended from buffalo and adapted for both cold and warm environments. While enraged muffalo are deadly, tamed muffalo are quite docile and can be used as pack animals.
Nobody is quite sure why they're blue - it might even be some early genetic modification test that just never got changed."


Type
AnimalsWild
Market Value
300 Silver
Health Scale
1.75
Body Size
2.1
Move Speed
4.50
Mass - Young
29.4 kg
Mass - Juvenile
73.5 kg
Mass - Adult
147 kg

Production

Meat Yield
189 muffalo meat
Carrying Capacity
158
Leather Yield
63 bluefur
Filth Rate
2.63
Wool Amount
100 muffalo wool
Shearing Interval
25 days
Manhunter Chance
1.3%
Hunger Rate
1.36
Diet
herbivorous
Life Expectancy
15
Trainable Intelligence
simple
Wildness
60%
Minimum Handling Skill
5
Gestation Period
28 days
Offspring Per Birth
1
Maturity Age
0.5 years (30 days)
Comfortable Temp Range
-55°C - 45°C

Melee Combat

"blunt" is not in the list (Cut, Crush, Blunt, Poke, Demolish, Stab, Scratch, Toxic scratch, Bite, Toxic bite) of allowed values for the "Attack 1 Type" property.
Attack 1
head
10 dmg (blunt)
15% AP
2.6 ticks (0.04 secs)
"blunt" is not in the list (Cut, Crush, Blunt, Poke, Demolish, Stab, Scratch, Toxic scratch, Bite, Toxic bite) of allowed values for the "Attack 2 Type" property.
Attack 2
left hoof
10 dmg (blunt)
15% AP
ticks (0.03 secs)
"blunt" is not in the list (Cut, Crush, Blunt, Poke, Demolish, Stab, Scratch, Toxic scratch, Bite, Toxic bite) of allowed values for the "Attack 3 Type" property.
Attack 3
right hoof
10 dmg (blunt)
15% AP
ticks (0.03 secs)
"bite" is not in the list (Cut, Crush, Blunt, Poke, Demolish, Stab, Scratch, Toxic scratch, Bite, Toxic bite) of allowed values for the "Attack 4 Type" property.
Attack 4
Teeth
10 dmg (bite)
15% AP
ticks (0.03 secs) on first strike
Average DPS
175.27

{{infobox main/testing|animal|
|name = Muffalo
|image = Muffalo east.png
|description = Desc
|type = Animals
|type2 = Wild
|bodysize = 2.1
|healthscale = 1.75
|movespeed = 4.50
|attack1dmg = 10
|attack1type = blunt
|attack1part = head
|attack1cool = 156
|attack2dmg = 10
|attack2type = blunt
|attack2part = left hoof
|attack2cool = 120
|attack3dmg = 10
|attack3type = blunt
|attack3part = right hoof
|attack3cool = 120
|attack4dmg = 10
|attack4type = bite
|attack4part = Teeth
|attack4cool = 120
|attack4chance = 0.5
|leathername = bluefur
|leatheryield = 63
|woolname = muffalo wool
|wool = 100
|sheartime = 25
|manhunter = 0.013
|hungerrate = 0.85
|diet = herbivorous
|trainable = simple
|wildness = 0.6
|gestation = 28
|lifespan = 15
|offspring = 1
|massadult = 147
|maturityage = 0.5
|marketvalue  = 300
|livesin_aridshrubland = true
|livesin_borealforest = true
|livesin_icesheet = true
|livesin_seaice = true
|livesin_temperateforest = true
|livesin_tundra = true
|min comfortable temperature = -55
|max comfortable temperature = 45
}}