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

From RimWorld Wiki
Jump to navigation Jump to search
m
m
 
(20 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 78: Line 82:
 
:{{{efficiency|}}}}}
 
:{{{efficiency|}}}}}
  
<!-- Apparel-->
+
{{#if: {{{recreation power|}}} {{{recreation type|}}}|{{#set:Recreation Power= {{{recreation power|}}} }}{{#set:Recreation Type= {{{recreation type|}}} }}
 +
;Recreation
 +
:{{#if:{{{recreation power|}}}|{{#expr:{{{recreation power|}}}*100}}%}} {{{recreation type|}}}}}
 +
 
 +
 
 +
<!--===============================================================-->
 +
<!--========================== 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 137: 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 148: Line 165:
  
 
{{#if: {{{movespeed|}}}
 
{{#if: {{{movespeed|}}}
|{{#set:Move Speed Base = {{{movespeed|}}}}}
+
| {{#set:Move Speed Base = {{{movespeed|}}} }}
 
;Move Speed
 
;Move Speed
 
:{{{movespeed|}}}
 
:{{{movespeed|}}}
|{{#ifeq:{{{movespeed|}}}||;Move Speed:{{#invoke:Test|query|label=hare|MoveSpeed}}}}
+
|;Move Speed
 +
:{{#invoke:Test|query|label={{#var:Name}}|MoveSpeed}}
 
}}
 
}}
  
Line 192: 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 351: Line 372:
 
:{{{offspring|}}} }}
 
:{{{offspring|}}} }}
  
<!--Buildings-->
+
 
 +
<!--=================================================================-->
 +
<!--========================== Buildings ============================-->
 +
<!--=================================================================-->
 +
 
  
 
{{#if: {{{power|}}}|{{#set:Power Consumption = {{{power|}}} }}
 
{{#if: {{{power|}}}|{{#set:Power Consumption = {{{power|}}} }}
Line 366: 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 389: 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 445: Line 478:
 
}}
 
}}
  
<!--Weapons-->
+
 
 +
<!--===============================================================-->
 +
<!--========================== Weapons ============================-->
 +
<!--===============================================================-->
 +
 
 +
 
 
{{#if: {{{mode|}}}|{{#set:Mode = {{{mode|}}} }} }}
 
{{#if: {{{mode|}}}|{{#set:Mode = {{{mode|}}} }} }}
  
Line 725: Line 763:
  
 
<!--- Creation --->
 
<!--- Creation --->
{{#IF: {{{work to make|}}} {{{resources to make|}}} {{{stuff tags|}}} {{{deconstruct yield|}}} {{{resource 1|}}} {{{resource 2|}}}{{{resource 3|}}} {{{resource 4|}}} {{{resource 5|}}} {{{resource 6|}}} {{{resource 1 amount|}}} {{{resource 2 amount|}}} {{{resource 3 amount|}}} {{{resource 4 amount|}}} {{{resource 5 amount|}}} {{{resource 6 amount|}}} |
+
{{#IF: {{{production facility 1|}}} {{{work to make|}}} {{{resources to make|}}} {{{stuff tags|}}} {{{deconstruct yield|}}} {{{resource 1|}}} {{{resource 2|}}}{{{resource 3|}}} {{{resource 4|}}} {{{resource 5|}}} {{{resource 6|}}} {{{resource 1 amount|}}} {{{resource 2 amount|}}} {{{resource 3 amount|}}} {{{resource 4 amount|}}} {{{resource 5 amount|}}} {{{resource 6 amount|}}} |
 
</dl>{{clear}}
 
</dl>{{clear}}
 
<p class='subheading' style='height: 1.75em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>'''Creation'''</p>
 
<p class='subheading' style='height: 1.75em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>'''Creation'''</p>
 
<dl>
 
<dl>
 +
}}
 +
 +
{{#if: {{{production facility 1|}}}|{{#set:Production Facility 1= {{{production facility 1|}}} }}}}
 +
{{#if: {{{production facility 2|}}}|{{#set:Production Facility 2= {{{production facility 2|}}} }}}}
 +
{{#if: {{{production facility 3|}}}|{{#set:Production Facility 3= {{{production facility 3|}}} }}}}
 +
{{#if: {{{production facility 4|}}}|{{#set:Production Facility 4= {{{production facility 4|}}} }}}}
 +
{{#if: {{{production facility 1|}}}|
 +
;Crafted at
 +
:{{#if:{{{production facility 1|}}}|{{Icon Small|{{{production facility 1|}}}|{{#ifeq:{{lc:{{{production facility 1|}}}}}|crafting spot|16|32}}}}}}{{#if:{{{production facility 2|}}}|/{{Icon Small|{{{production facility 2|}}}|{{#ifeq:{{lc:{{{production facility 2|}}}}}|crafting spot|16|32}}}}}}{{#if:{{{production facility 3|}}}|/{{Icon Small|{{{production facility 3|}}}|{{#ifeq:{{lc:{{{production facility 3|}}}}}|crafting spot|16|32}}}}}}{{#if:{{{production facility 4|}}}|/{{Icon Small|{{{production facility 4|}}}|{{#ifeq:{{lc:{{{production facility 4|}}}}}|crafting spot|16|32}}}}}}
 
}}
 
}}
  
Line 833: Line 880:
 
:{{{ResearchProjectTagDef|}}}
 
:{{{ResearchProjectTagDef|}}}
 
}}<!--
 
}}<!--
-->{{#if: {{{sowTag|}}} |
+
-->{{#if: {{{sowTag|}}} |{{#set:  sowTag = {{{sowTag|}}}}}
 
;sowTag
 
;sowTag
 
:{{{sowTag|}}}
 
:{{{sowTag|}}}
 
}}<!--
 
}}<!--
-->{{#if: {{{sowTags|}}} |
+
-->{{#if: {{{sowTags|}}} |{{#set:  sowTags = {{{sowTags|}}}}}
 
;sowTags
 
;sowTags
 
:{{{sowTags|}}}
 
:{{{sowTags|}}}
Line 895: 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]