Difference between revisions of "Template:Sandbox/Arcangelus"

From RimWorld Wiki
Jump to navigation Jump to search
m (For test.)
m
 
(5 intermediate revisions by the same user not shown)
Line 609: Line 609:
 
:{{{bodysize|}}}
 
:{{{bodysize|}}}
  
{{#ifeq: {{{type|}}} | Mechanoid |
+
  <!-- Moved outside as this is always used -->
 
   {{#vardefine:MassAdult | {{#expr: 60 * {{{bodysize}}} }} }}
 
   {{#vardefine:MassAdult | {{#expr: 60 * {{{bodysize}}} }} }}
 
   {{#if: {{#var:setProperty}} | {{#set:Mass - Adult = {{#var:MassAdult}} }} }}
 
   {{#if: {{#var:setProperty}} | {{#set:Mass - Adult = {{#var:MassAdult}} }} }}
 +
  {{#vardefine:PackCapacity | {{#expr: {{{bodysize|}}} * 35 }} }}
 +
 
 +
{{#ifeq: {{{type|}}} | Mechanoid |
 
;Mass
 
;Mass
 
:{{#var:MassAdult}} kg   
 
:{{#var:MassAdult}} kg   
  
 
  {{#vardefine:PackCapacity | {{#expr: {{{bodysize|}}} * 35 }} }}
 
 
   {{#if: {{#var:setProperty}} | {{#set:Pack Capacity = {{#var:PackCapacity}} }} }}
 
   {{#if: {{#var:setProperty}} | {{#set:Pack Capacity = {{#var:PackCapacity}} }} }}
 
;Pack Capacity
 
;Pack Capacity
Line 624: Line 625:
  
 
{{#ifeq: {{{type|}}} | Entity |
 
{{#ifeq: {{{type|}}} | Entity |
  {{#vardefine:MassAdult | {{#expr: 60 * {{{bodysize}}} }} }}
 
  {{#if: {{#var:setProperty}} | {{#set:Mass - Adult = {{#var:MassAdult}} }} }}
 
 
;Mass
 
;Mass
 
:{{#var:MassAdult}} kg   
 
:{{#var:MassAdult}} kg   
 
 
|  
 
|  
 
   <!-- Most animal babies are 0.2 the size of the adults, but birds are 0.1 -->
 
   <!-- Most animal babies are 0.2 the size of the adults, but birds are 0.1 -->
Line 645: Line 643:
 
:{{#var:MassJuvenile}} kg
 
:{{#var:MassJuvenile}} kg
  
  {{#vardefine:MassAdult | {{#expr: 60 * {{{bodysize}}} }} }}
 
  {{#if: {{#var:setProperty}} | {{#set:Mass - Adult = {{#var:MassAdult}} }} }}
 
 
;Mass - Adult
 
;Mass - Adult
 
:{{#var:MassAdult}} kg
 
:{{#var:MassAdult}} kg
  
 
{{#ifeq: {{lc:{{{packanimal|}}} }} | true |
 
{{#ifeq: {{lc:{{{packanimal|}}} }} | true |
  {{#vardefine:PackCapacity | {{#expr: {{{bodysize|}}} * 35 }} }}
 
 
   {{#if: {{#var:setProperty}} | {{#set:Pack Capacity = {{#var:PackCapacity}} }} }}
 
   {{#if: {{#var:setProperty}} | {{#set:Pack Capacity = {{#var:PackCapacity}} }} }}
 
;Pack Capacity
 
;Pack Capacity
Line 666: Line 661:
 
}}
 
}}
 
}}
 
}}
 +
  
 
{{#if: {{{ridingspeed|}}} |
 
{{#if: {{{ridingspeed|}}} |
Line 1,681: Line 1,677:
 
<p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Creation</p>
 
<p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Creation</p>
 
<dl>
 
<dl>
}}
 
  
 
{{#if: {{{production facility 1|}}} | <!-- Compressed -->
 
{{#if: {{{production facility 1|}}} | <!-- Compressed -->
{{#if: {{#var:setProperty}} |
+
{{#if: {{#var:setProperty}} | {{#set:Production Facility 1 = {{{production facility 1|}}} }} }}
{{#set:Production Facility 1 = {{{production facility 1|}}} }}
+
{{#if: {{{production facility 2|}}} | {{#if: {{#var:setProperty}} | {{#set:Production Facility 2 = {{{production facility 2|}}} }} }} }}
{{#if: {{{production facility 2|}}} | {{#set:Production Facility 2 = {{{production facility 2|}}} }} }}
+
{{#if: {{{production facility 3|}}} | {{#if: {{#var:setProperty}} | {{#set:Production Facility 3 = {{{production facility 3|}}} }} }} }}
{{#if: {{{production facility 3|}}} | {{#set:Production Facility 3 = {{{production facility 3|}}} }} }}
+
{{#if: {{{production facility 4|}}} | {{#if: {{#var:setProperty}} | {{#set:Production Facility 4 = {{{production facility 4|}}} }} }} }}
{{#if: {{{production facility 4|}}} | {{#set:Production Facility 4 = {{{production facility 4|}}} }} }}  
 
}}
 
 
;Crafted At
 
;Crafted At
 
:{{Icon Small|{{{production facility 1|}}}|{{#switch:{{lc:{{{production facility 1|}}} }}|butcher spot|crafting spot|campfire|fermenting barrel|nutrient paste dispenser=16|#default=32}} }}{{#if:{{{production facility 2|}}}|&nbsp;/&nbsp;{{Icon Small|{{{production facility 2|}}}|{{#switch:{{lc:{{{production facility 2|}}} }}|butcher spot|crafting spot|campfire|fermenting barrel|nutrient paste dispenser=16|#default=32}} }} }}{{#if:{{{production facility 3|}}}|&nbsp;/&nbsp;{{Icon Small|{{{production facility 3|}}}|{{#switch:{{lc:{{{production facility 3|}}} }}|butcher spot|crafting spot|campfire|fermenting barrel|nutrient paste dispenser=16|#default=32}} }} }}{{#if:{{{production facility 4|}}}|&nbsp;/&nbsp;{{Icon Small|{{{production facility 4|}}}|{{#switch:{{lc:{{{production facility 4|}}} }}|butcher spot|crafting spot|campfire|fermenting barrel|nutrient paste dispenser=16|#default=32}} }} }}
 
:{{Icon Small|{{{production facility 1|}}}|{{#switch:{{lc:{{{production facility 1|}}} }}|butcher spot|crafting spot|campfire|fermenting barrel|nutrient paste dispenser=16|#default=32}} }}{{#if:{{{production facility 2|}}}|&nbsp;/&nbsp;{{Icon Small|{{{production facility 2|}}}|{{#switch:{{lc:{{{production facility 2|}}} }}|butcher spot|crafting spot|campfire|fermenting barrel|nutrient paste dispenser=16|#default=32}} }} }}{{#if:{{{production facility 3|}}}|&nbsp;/&nbsp;{{Icon Small|{{{production facility 3|}}}|{{#switch:{{lc:{{{production facility 3|}}} }}|butcher spot|crafting spot|campfire|fermenting barrel|nutrient paste dispenser=16|#default=32}} }} }}{{#if:{{{production facility 4|}}}|&nbsp;/&nbsp;{{Icon Small|{{{production facility 4|}}}|{{#switch:{{lc:{{{production facility 4|}}} }}|butcher spot|crafting spot|campfire|fermenting barrel|nutrient paste dispenser=16|#default=32}} }} }}
 
}}
 
}}
  
{{#if: {{#var:setProperty}} |
+
<!-- Research section -->
{{#if: {{#vardefineecho:research|{{{research|}}} }} | {{#vardefine:research1|{{ucfirst:{{#explode:{{#var:research}}|,|0}} }} }}{{#vardefine:research2|{{ucfirst:{{#explode:{{#var:research}}|,|1}} }} }}{{#vardefine:research3|{{ucfirst:{{#explode:{{#var:research}}|,|2}} }} }}{{#vardefine:research4|{{ucfirst:{{#explode:{{#var:research}}|,|3}} }} }}{{#vardefine:research5|{{ucfirst:{{#explode:{{#var:research}}|,|4}} }} }}
+
{{#if: {{#vardefineecho:research|{{{research|}}} }} | {{#vardefine:research1|{{ucfirst:{{#explode:{{#var:research}}|,|0}} }} }}{{#vardefine:research2|{{ucfirst:{{#explode:{{#var:research}}|,|1}} }} }}{{#vardefine:research3|{{ucfirst:{{#explode:{{#var:research}}|,|2}} }} }}{{#vardefine:research4|{{ucfirst:{{#explode:{{#var:research}}|,|3}} }} }}{{#vardefine:research5|{{ucfirst:{{#explode:{{#var:research}}|,|4}} }} }}
{{#set:
+
{{#if: {{#var:setProperty}} | {{#set:
 
   Required Research = {{#var:research1}}
 
   Required Research = {{#var:research1}}
 
  | Required Research = {{#var:research2}}
 
  | Required Research = {{#var:research2}}
Line 1,702: Line 1,695:
 
  | Required Research = {{#var:research4}}
 
  | Required Research = {{#var:research4}}
 
  | Required Research = {{#var:research5}}
 
  | Required Research = {{#var:research5}}
}} }} }}
+
}} }}
 
 
 
;Required Research
 
;Required Research
 
:[[Research#{{#var:research1}}|{{#var:research1}}]]{{#if: {{#pos:Artificial metabolism, Brain wiring, Cataphract armor, Circadian influence, Compact weaponry, Flesh shaping, Healing factors, Jump packs, Molecular analysis, Neural computation, Poison synthesis, Specialized limbs, Skin hardening | {{#var:research1}} }} | {{Icon Small|Techprint|16}} }}<!--
 
:[[Research#{{#var:research1}}|{{#var:research1}}]]{{#if: {{#pos:Artificial metabolism, Brain wiring, Cataphract armor, Circadian influence, Compact weaponry, Flesh shaping, Healing factors, Jump packs, Molecular analysis, Neural computation, Poison synthesis, Specialized limbs, Skin hardening | {{#var:research1}} }} | {{Icon Small|Techprint|16}} }}<!--
Line 1,832: Line 1,824:
 
-->|}}<!--
 
-->|}}<!--
 
-->}}
 
-->}}
 
+
}}
  
 
<!-- 14. ABILITY -->
 
<!-- 14. ABILITY -->
Line 2,189: Line 2,181:
 
</div></div></includeonly><noinclude>
 
</div></div></includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
+
<!--
 
{{Sandbox/Arcangelus
 
{{Sandbox/Arcangelus
 
| name = Locust armor
 
| name = Locust armor
Line 2,231: Line 2,223:
 
| defaultOutfitTags = Soldier
 
| defaultOutfitTags = Soldier
 
| thingSetMakerTags = RewardStandardHighFreq
 
| thingSetMakerTags = RewardStandardHighFreq
}}
+
}} -->
 
</noinclude><!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude><!-- Add categories and interwikis to the /doc subpage, not here! -->

Latest revision as of 19:25, 14 January 2025

Documentation icon Template documentation[create]