Difference between revisions of "User:Theaetetus/sandbox2"

From RimWorld Wiki
Jump to navigation Jump to search
Line 156: Line 156:
 
{{#if: {{{bodysize|}}}|
 
{{#if: {{{bodysize|}}}|
 
   {{#set: Body Size = {{{bodysize|}}} }}
 
   {{#set: Body Size = {{{bodysize|}}} }}
;DEBUG
+
;TEST2
:HI
+
:PASS
 
   <!-- This section only for when meat yield is overridden in the XML def -->
 
   <!-- This section only for when meat yield is overridden in the XML def -->
 
   <!-- As of A14, only Thrumbo, Scyther and Centipede should have this param specified -->
 
   <!-- As of A14, only Thrumbo, Scyther and Centipede should have this param specified -->
 
   {{#if: {{{meatyield|}}}|
 
   {{#if: {{{meatyield|}}}|
 +
;TEST3
 +
:PASS
 
     {{#set: Meat Yield = {{{meatyield|}}} }}
 
     {{#set: Meat Yield = {{{meatyield|}}} }}
 
;Meat Yield
 
;Meat Yield
 
:{{{meatyield|}}}|
 
:{{{meatyield|}}}|
 
   <!-- Section end -->
 
   <!-- Section end -->
 +
;TEST4
 +
:PASS
 
     {{#vardefine: MeatYield | {{#expr: 90 * {{{bodysize|}}} round0}} }}
 
     {{#vardefine: MeatYield | {{#expr: 90 * {{{bodysize|}}} round0}} }}
 
     {{#set: Meat Yield = {{#var: MeatYield}} }}
 
     {{#set: Meat Yield = {{#var: MeatYield}} }}
Line 171: Line 175:
 
   {{#vardefine: CarryingCapacity | {{#expr: 75 * {{{bodysize|}}} round0}} }}
 
   {{#vardefine: CarryingCapacity | {{#expr: 75 * {{{bodysize|}}} round0}} }}
 
   {{#set: Carrying Capacity = {{#var: CarryingCapacity}} }
 
   {{#set: Carrying Capacity = {{#var: CarryingCapacity}} }
 +
;TEST5
 +
:PASS
 
;Carrying Capacity
 
;Carrying Capacity
 
:{{#var: CarryingCapacity}}
 
:{{#var: CarryingCapacity}}
Line 179: Line 185:
 
:{{#var: LeatherYield}}}}}}
 
:{{#var: LeatherYield}}}}}}
  
;TEST5
+
;TEST6
 
:PASS
 
:PASS
  

Revision as of 04:59, 27 July 2016

Theaetetus


Type
[[{{{type}}}]]
TEST1
PASS
{{#if: |
TEST2
PASS
TEST4
PASS
"Expression error: Unexpected round operator." is not a number.
Meat Yield
Expression error: Unexpected round operator.
"Expressionerror:Unexpectedroundoperator.}</br>;TEST" can not be assigned to a declared number type with value 5.
TEST6
PASS
TEST2
PASS


Template:Theaetetus/doc