Difference between revisions of "User:Dr. Strangelove/Template:Infobox"

From RimWorld Wiki
Jump to navigation Jump to search
m
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:Name|{{{name|{{BASEPAGENAME}}}}}}} <div class="infobox float:right; {{#if:{{{1|}}}|{{#switch:{{{1}}}|<!--
+
<includeonly>{{#vardefine:Name|{{{name|{{BASEPAGENAME}}}}}}}{{#vardefine:Name|arctic wolf}} <div class="infobox float:right; {{#if:{{{1|}}}|{{#switch:{{{1}}}|<!--
 
--> animal = c_08 |<!--
 
--> animal = c_08 |<!--
 
--> plant = c_14 |<!--
 
--> plant = c_14 |<!--
Line 60: Line 60:
 
}}
 
}}
  
<!---Building--->
+
 
 +
<!--=================================================================-->
 +
<!--========================== Buildings ============================-->
 +
<!--=================================================================-->
 +
 
  
 
{{#if: {{{placeable|}}}|{{#set:Placeable = {{{placeable|}}} }}
 
{{#if: {{{placeable|}}}|{{#set:Placeable = {{{placeable|}}} }}
Line 82: Line 86:
 
:{{#if:{{{recreation power|}}}|{{#expr:{{{recreation power|}}}*100}}%}} {{{recreation type|}}}}}
 
:{{#if:{{{recreation power|}}}|{{#expr:{{{recreation power|}}}*100}}%}} {{{recreation type|}}}}}
  
<!-- Apparel-->
+
 
 +
<!--===============================================================-->
 +
<!--========================== Apparel ============================-->
 +
<!--===============================================================-->
 +
 
 +
 
 
{{#if:  {{{insulationcold|}}} {{{insulationheat|}}} {{{insulationcoldfactor|}}} {{{insulationheatfactor|}}} {{{armorsharp|}}} {{{armorblunt|}}} {{{armorheat|}}} {{{armorsharpfactor|}}} {{{armorbluntfactor|}}} {{{armorheatfactor|}}} {{{painshockthreshold|}}}  {{{coverage|}}} {{{layer|}}}|
 
{{#if:  {{{insulationcold|}}} {{{insulationheat|}}} {{{insulationcoldfactor|}}} {{{insulationheatfactor|}}} {{{armorsharp|}}} {{{armorblunt|}}} {{{armorheat|}}} {{{armorsharpfactor|}}} {{{armorbluntfactor|}}} {{{armorheatfactor|}}} {{{painshockthreshold|}}}  {{{coverage|}}} {{{layer|}}}|
 
</dl>{{clear}}
 
</dl>{{clear}}
Line 141: Line 150:
 
:{{{layer|}}}}}
 
:{{{layer|}}}}}
  
<!-- All pawns (animals, humanoids, mechanoids) -->
+
 
<!-- Animal Health --->
+
<!--=============================================================-->
 +
<!--========================== Pawns ============================-->
 +
<!--=============================================================-->
 +
 
 +
 
 
{{#if:  {{{movespeed|}}} {{{massyoung|}}} {{{massjuvenile|}}} {{{massadult|}}}  {{{healthscale|}}} {{{bodysize|}}} {{{hungerrate|}}} {{{diet|}}} {{{lifespan|}}} {{{manhunter|}}} {{{manhuntertame|}}} {{{trainable|}}} {{{wildness|}}} {{{petness|}}} {{{predator|}}} {{{nuzzleMtb|}}}|
 
{{#if:  {{{movespeed|}}} {{{massyoung|}}} {{{massjuvenile|}}} {{{massadult|}}}  {{{healthscale|}}} {{{bodysize|}}} {{{hungerrate|}}} {{{diet|}}} {{{lifespan|}}} {{{manhunter|}}} {{{manhuntertame|}}} {{{trainable|}}} {{{wildness|}}} {{{petness|}}} {{{predator|}}} {{{nuzzleMtb|}}}|
 
</dl>{{clear}}
 
</dl>{{clear}}
Line 151: Line 164:
 
{{#ifeq: {{{type|}}}|Animals|{{#set: Type = {{{type2|}}}}}}}
 
{{#ifeq: {{{type|}}}|Animals|{{#set: Type = {{{type2|}}}}}}}
  
{{#if: {{{movespeed|}}}|{{#set:Move Speed Base = {{{movespeed|}}} }}
+
{{#if: {{{movespeed|}}}
 +
| {{#set:Move Speed Base = {{{movespeed|}}} }}
 
;Move Speed
 
;Move Speed
:{{{movespeed|}}}}}
+
:{{{movespeed|}}}
 +
|;Move Speed
 +
:{{#invoke:Test|query|label={{#var:Name}}|MoveSpeed}}
 +
}}
  
 
{{#if: {{{massyoung|{{{massadult|}}}}}}|{{#set:Mass - Young= {{{massyoung|{{#expr:{{{massadult}}}/5}}}}} }}
 
{{#if: {{{massyoung|{{{massadult|}}}}}}|{{#set:Mass - Young= {{{massyoung|{{#expr:{{{massadult}}}/5}}}}} }}
Line 193: Line 210:
 
{{#if: {{{diet|}}}|{{#set:Diet ={{{diet|}}} }}
 
{{#if: {{{diet|}}}|{{#set:Diet ={{{diet|}}} }}
 
;Diet
 
;Diet
:{{{diet|}}}}}
+
:{{{diet|}}}
 +
|;Diet
 +
:{{#invoke:Test|query|label={{#var:Name}}|foodTypeExpanded}}
 +
}}
  
 
{{#if: {{{lifespan|}}}|{{#set:Life Expectancy = {{{lifespan|}}} }}
 
{{#if: {{{lifespan|}}}|{{#set:Life Expectancy = {{{lifespan|}}} }}
Line 352: Line 372:
 
:{{{offspring|}}} }}
 
:{{{offspring|}}} }}
  
<!--Buildings-->
+
 
 +
<!--=================================================================-->
 +
<!--========================== Buildings ============================-->
 +
<!--=================================================================-->
 +
 
  
 
{{#if: {{{power|}}}|{{#set:Power Consumption = {{{power|}}} }}
 
{{#if: {{{power|}}}|{{#set:Power Consumption = {{{power|}}} }}
Line 367: Line 391:
 
}}
 
}}
  
<!--Furniture-->
+
 
 +
<!--=================================================================-->
 +
<!--========================== Furniture ============================-->
 +
<!--=================================================================-->
 +
 
  
 
{{#if: {{{immunity gain speed factor|}}}|{{#set:Immunity Gain Speed Factor = {{{immunity gain speed factor|}}} }}
 
{{#if: {{{immunity gain speed factor|}}}|{{#set:Immunity Gain Speed Factor = {{{immunity gain speed factor|}}} }}
Line 390: Line 418:
  
  
<!--Plants-->
+
<!--==============================================================-->
 +
<!--========================== Plants ============================-->
 +
<!--==============================================================-->
 +
 
 +
 
 
{{#if: {{{grow days|}}} {{{sow work|}}}  {{{harvest work|}}} {{{product|}}}  {{{yield|}}} {{{min sowing skill|}}} {{{min fertility|}}} {{{fertility sensitivity|}}}|
 
{{#if: {{{grow days|}}} {{{sow work|}}}  {{{harvest work|}}} {{{product|}}}  {{{yield|}}} {{{min sowing skill|}}} {{{min fertility|}}} {{{fertility sensitivity|}}}|
 
</dl>{{clear}}
 
</dl>{{clear}}
Line 446: Line 478:
 
}}
 
}}
  
<!--Weapons-->
+
 
 +
<!--===============================================================-->
 +
<!--========================== Weapons ============================-->
 +
<!--===============================================================-->
 +
 
 +
 
 
{{#if: {{{mode|}}}|{{#set:Mode = {{{mode|}}} }} }}
 
{{#if: {{{mode|}}}|{{#set:Mode = {{{mode|}}} }} }}
  
Line 905: Line 942:
 
</span> </div> </div>}}
 
</span> </div> </div>}}
 
<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! -->

Latest revision as of 00:01, 18 May 2021

}}

Documentation[create]