Difference between revisions of "Template:Sandbox"

From RimWorld Wiki
Jump to navigation Jump to search
Line 201: Line 201:
  
 
{{#if: {{{mobdamageaverage|}}}|{{#set:Average Melee Damage = {{{mobdamageaverage|}}}}}}}
 
{{#if: {{{mobdamageaverage|}}}|{{#set:Average Melee Damage = {{{mobdamageaverage|}}}}}}}
 +
 +
  
 
{{#ifeq: {{{type|}}} | Animals |
 
{{#ifeq: {{{type|}}} | Animals |
Line 210: Line 212:
 
{{#if: {{{bodysize|}}}|
 
{{#if: {{{bodysize|}}}|
 
   {{#set: Body Size = {{{bodysize|}}} }}
 
   {{#set: Body Size = {{{bodysize|}}} }}
 +
 +
{{#if:
 +
{{{massyoung|
 +
{{{bodysize|
 +
}}}
 +
}}}|
 +
{{#set: Mass - Young=
 +
{{{massyoung|
 +
{{#expr:
 +
{{{bodysize
 +
}}}*60/5
 +
}}
 +
}}}
 +
}}
 +
;Mass - Young:
 +
{{{massyoung|
 +
{{#expr:
 +
{{{bodysize
 +
}}}*60/5
 +
}}
 +
}}}kg
 +
}}
 +
 +
 +
 +
 +
{{#if:
 +
{{{massjuvenile|
 +
{{{bodysize|
 +
}}}
 +
}}}|
 +
{{#set: Mass - Juvenile=
 +
{{{massjuvenile|
 +
{{#expr:
 +
{{{bodysize
 +
}}}*60/2
 +
}}
 +
}}}
 +
}}
 +
;Mass - Juvenile:
 +
{{{massjuvenile|
 +
{{#expr:
 +
{{{bodysize
 +
}}}*60/2
 +
}}
 +
}}}kg
 +
}}
 +
 +
 +
 +
 +
{{#if:
 +
{{{massadult|
 +
{{{bodysize|
 +
}}}
 +
}}}|
 +
{{#set: Mass - Adult=
 +
{{{massadult|
 +
{{#expr:
 +
{{{bodysize
 +
}}}*60
 +
}}
 +
}}}
 +
}}
 +
;Mass - Adult:
 +
{{{massadult|
 +
{{#expr:
 +
{{{bodysize
 +
}}}*60
 +
}}
 +
}}}kg
 +
}}
 +
  
 
   {{#vardefine: MeatYield | {{{meatyield | {{#expr: 90 * {{{bodysize}}} round 0}}}}} }}
 
   {{#vardefine: MeatYield | {{{meatyield | {{#expr: 90 * {{{bodysize}}} round 0}}}}} }}

Revision as of 15:18, 8 May 2020


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

Description

This template is placed at the top of sandbox pages. By using a template, it becomes easy to fix if users make a mistake while playing in the sandbox.

Syntax

Type {{sandbox}} at the top of a sandbox.

Output

Sandbox


Type
[[{{{type}}}]]