Editing Template:Infobox main

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 41: Line 41:
  
 
{{#if: {{{stuff category|}}} |
 
{{#if: {{{stuff category|}}} |
   {{#if: {{#var:setProperty}} |  
+
   {{#if: {{#var:setProperty}} | {{#set:Stuff Category = {{{stuff category|}}} }} }}
    {{#set:Stuff Category = {{#explode:{{{stuff category|}}}|,|0}}
+
;Stuff Category
        | Stuff Category = {{#explode:{{{stuff category|}}}|,|1}}
+
:{{{stuff category|}}}
        | Stuff Category = {{#explode:{{{stuff category|}}}|,|2}}
+
}}
        | Stuff Category = {{#explode:{{{stuff category|}}}|,|3}}
 
        | Stuff Category = {{#explode:{{{stuff category|}}}|,|4}} }} }}
 
;Stuff Categories
 
:{{{stuff category|}}} {{#if: {{{color|}}} |
 
  {{#vardefine:Red  | {{#replace:{{#explode:{{{color|}}}|,|0}}|(}} }}
 
  {{#vardefine:Green| {{#explode:{{{color|}}}|,|1}} }}
 
  {{#vardefine:Blue | {{#replace:{{#explode:{{{color|}}}|,|2}}|)}} }}
 
<abbr title="Buildings and items made with this as stuff will have the color RGB: {{{color|}}}"><span><div style="width:16px;height:16px;background-color:rgb({{#var:Red}},{{#var:Green}},{{#var:Blue}});display:inline-block;border:1px solid black;vertical-align:middle;"></div></span></abbr>}} }}
 
  
 
{{#if: {{{tech level|}}} |
 
{{#if: {{{tech level|}}} |
Line 266: Line 258:
 
   {{#if: {{#var:setProperty}} | {{#set:Light Radius = {{#var:LightRadius}} }} }}
 
   {{#if: {{#var:setProperty}} | {{#set:Light Radius = {{#var:LightRadius}} }} }}
 
;<abbr title="The furthest away a tile can be before it falls below 30% light">Light Radius</abbr>
 
;<abbr title="The furthest away a tile can be before it falls below 30% light">Light Radius</abbr>
:{{#expr:{{#var:LightRadius}} round 2}} <!--
+
:{{#expr:{{#var:LightRadius}} round 2}}
Color Square: --><abbr title="RGB: {{{glowcolor|}}}"><span><div style="width:16px;height:16px;background-color:rgb({{#var:Red}},{{#var:Green}},{{#var:Blue}});display:inline-block;border:1px solid black;vertical-align:middle;"></div></span></abbr>
 
 
}}
 
}}
  
Line 713: Line 704:
 
}}
 
}}
  
{{#ifexpr: {{{meatyield|1}}} * {{{basemeatamount|1}}}
+
{{#ifeq:{{#expr:{{#ifeq:{{{type|}}}|Animals|1|0}} or {{#ifeq:{{{type|}}}|Animal|1|0}} }}|1|
| {{#if: {{{meatname|}}} {{{meatyield|}}}
+
  {{#vardefine: MeatName | {{{meatname | {{#var:Name}} meat}}} }}
   | {{#vardefine:hasMeat|1}}
+
   {{#vardefine: LeatherName | {{{leathername | {{#var:Name}} leather}}} }}
   | {{#ifeq: {{{type|}}}|Animal
+
   {{#if: {{{is exotic species|}}} | {{#if: {{#var:setProperty}} | {{#set:Is Exotic Species = true}} }} | {{#if: {{#var:setProperty}} | {{#set:Is Exotic Species = false }} }} }}|
    | {{#vardefine:hasMeat|1}}
 
    | {{#vardefine:hasMeat|0}}
 
    }}
 
  }}
 
| {{#vardefine:hasMeat|0}}
 
 
}}
 
}}
  
{{#ifexpr: {{#var:hasMeat}}|
+
{{#if: {{#var:LeatherName }} | {{#if: {{#var:setProperty}} | {{#set:Leather Name = {{#var:LeatherName}} }} }} }}
  {{#vardefine: MeatName | {{ucfirst: {{{meatname | {{#var:Name}} meat}}} }}}}
+
 
  {{#if: {{#var:setProperty}} | {{#set:Meat Name = {{#var:MeatName}} }} }}
+
{{#if: {{{bodysize|}}} |
 
   <!-- Uses meatyield when set, otherwise interpolates from curve applied to 140*body_size or basemeatamount*bodysize -->
 
   <!-- Uses meatyield when set, otherwise interpolates from curve applied to 140*body_size or basemeatamount*bodysize -->
 
   <!-- See Property:Meat_Yield for details -->
 
   <!-- See Property:Meat_Yield for details -->
   {{#vardefine: MeatYield | {{{meatyield | {{#if: {{{bodysize|}}} |{{Meat Leather Curve | {{{basemeatamount|140}}} * {{{bodysize|}}} }} }} }}} }}
+
   {{#if:{{#var:MeatName}} |
  {{#if: {{#var:setProperty}} | {{#set:Meat Yield = {{#var:MeatYield}} }} }}
+
    {{#vardefine: MeatYield | {{{meatyield | {{Meat Leather Curve | {{{basemeatamount|140}}} * {{{bodysize|}}} }} }}} }}
 
+
    {{#if: {{#var:setProperty}} | {{#set:Meat Yield = {{#var:MeatYield}} }} }}
 
;Meat Yield
 
;Meat Yield
:{{#switch: {{#var:MeatName}}
+
:{{#var:MeatYield}} [[Meat|{{lc:{{#var:MeatName}} }}]]
| Human meat = {{#var:MeatYield}} [[human meat]]
 
| Insect meat = {{#var:MeatYield}} [[insect meat]]
 
| Twisted meat = {{#var:MeatYield}} [[twisted meat]]
 
| #default = {{#var:MeatYield}} [[Meat|{{lc:{{#var:MeatName}} }}]]
 
}}
 
}}
 
 
 
{{#ifexpr: {{{leatheryield|1}}} * {{{baseleatheramount|1}}}
 
| {{#if: {{{leathername|}}} {{{leatheryield|}}}
 
  | {{#vardefine:hasLeather|1}}
 
  | {{#ifeq: {{{type|}}}|Animal
 
    | {{#vardefine:hasLeather|1}}
 
    | {{#vardefine:hasLeather|0}}
 
    }}
 
 
   }}
 
   }}
| {{#vardefine:hasLeather|0}}
 
}}
 
  
{{#ifexpr: {{#var:hasLeather}}|
 
  {{#vardefine: LeatherName | {{ucfirst: {{{leathername | {{#var:Name}} leather}}} }}}}
 
  {{#if: {{#var:setProperty}} | {{#set:Leather Name = {{#var:LeatherName}} }} }}
 
 
   <!-- Uses leatheryield when set, otherwise interpolates from curve applied to 40*body_size or baseleatheramount*bodysize-->
 
   <!-- Uses leatheryield when set, otherwise interpolates from curve applied to 40*body_size or baseleatheramount*bodysize-->
 
   <!-- See Property:Leather_Yield for details -->
 
   <!-- See Property:Leather_Yield for details -->
   {{#vardefine: LeatherYield | {{{leatheryield | {{#if: {{{bodysize|}}} |{{Meat Leather Curve | {{{baseleatheramount|40}}} * {{{bodysize|}}} }} }} }}} }}
+
   {{#if: {{#var:LeatherName}}
  {{#if: {{#var:setProperty}} | {{#set:Leather Yield = {{#var:LeatherYield}} }} }}
+
    | {{#ifeq: {{#vardefineecho:LeatherYield | {{{leatheryield | {{Meat Leather Curve | {{{baseleatheramount|40}}} * {{{bodysize|}}} }} }}} }}
 
+
| 0 |
 +
| {{#if: {{#var:setProperty}} | {{#set:Leather Yield = {{#var:LeatherYield}} }} }}
 
;Leather Yield
 
;Leather Yield
 
:{{#var:LeatherYield}} [[{{#var:LeatherName}}|{{lc:{{#var:LeatherName}} }}]]
 
:{{#var:LeatherYield}} [[{{#var:LeatherName}}|{{lc:{{#var:LeatherName}} }}]]
}}
+
}} }} }}
  
 
{{#if: {{{milk|}}} |
 
{{#if: {{{milk|}}} |
Line 1,239: Line 1,207:
  
 
<!-- 12. MELEE COMBAT -->
 
<!-- 12. MELEE COMBAT -->
{{#if: {{{attack1dmg|}}}{{{attack1ap|}}}{{{attack1type|}}}{{{attack1part|}}}{{{attack1cool|}}}{{{attack1chancefactor|}}}    {{{attack2dmg|}}}{{{attack2ap|}}}{{{attack2type|}}}{{{attack2part|}}}{{{attack2cool|}}}{{{attack2chancefactor|}}}    {{{attack3dmg|}}}{{{attack3ap|}}}{{{attack3type|}}}{{{attack3part|}}}{{{attack3cool|}}}{{{attack3chancefactor|}}}    {{{attack4dmg|}}}{{{attack4ap|}}}{{{attack4type|}}}{{{attack4part|}}}{{{attack4cool|}}}{{{attack4chancefactor|}}}    {{{attack5dmg|}}}{{{attack5ap|}}}{{{attack5type|}}}{{{attack45art|}}}{{{attack5cool|}}}{{{attack5chancefactor|}}}    {{{attack6dmg|}}}{{{attack6ap|}}}{{{attack6type|}}}{{{attack46art|}}}{{{attack6cool|}}}{{{attack6chancefactor|}}} {{{meleeattack1dmg|}}}{{{meleeattack1type|}}}{{{meleeattack1part|}}}{{{meleeattack1cool|}}} {{{MeleeWeaponAverageDPS|}}} {{{MeleeWeaponAverageAP|}}}|
+
{{#if: {{{attack1dmg|}}}{{{attack1ap|}}}{{{attack1type|}}}{{{attack1part|}}}{{{attack1cool|}}}{{{attack1chancefactor|}}}    {{{attack2dmg|}}}{{{attack2ap|}}}{{{attack2type|}}}{{{attack2part|}}}{{{attack2cool|}}}{{{attack2chancefactor|}}}    {{{attack3dmg|}}}{{{attack3ap|}}}{{{attack3type|}}}{{{attack3part|}}}{{{attack3cool|}}}{{{attack3chancefactor|}}}    {{{attack4dmg|}}}{{{attack4ap|}}}{{{attack4type|}}}{{{attack4part|}}}{{{attack4cool|}}}{{{attack4chancefactor|}}}    {{{attack5dmg|}}}{{{attack5ap|}}}{{{attack5type|}}}{{{attack45art|}}}{{{attack5cool|}}}{{{attack5chancefactor|}}}    {{{attack6dmg|}}}{{{attack6ap|}}}{{{attack6type|}}}{{{attack46art|}}}{{{attack6cool|}}}{{{attack6chancefactor|}}}    {{{mobdamageaverage|}}} {{{mobdamage|}}} {{{meleeattack1dmg|}}}{{{meleeattack1type|}}}{{{meleeattack1part|}}}{{{meleeattack1cool|}}} {{{MeleeWeaponAverageDPS|}}} {{{MeleeWeaponAverageAP|}}}|
 
</dl>{{clear}}
 
</dl>{{clear}}
 
<p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Melee Combat</p>
 
<p class='subheading' style='height: 1em !important; padding: 0.25em 0 0.5em !important; margin: 0.5em 0 0.5em !important'>Melee Combat</p>
Line 1,372: Line 1,340:
 
;Average {{DPS}}
 
;Average {{DPS}}
 
:{{#var:MobAverageDPS}}
 
:{{#var:MobAverageDPS}}
 +
}}
 +
 +
{{#if: {{{mobdamage|}}} |
 +
  {{#if: {{#var:setProperty}} | {{#set:Melee Damage Base = {{{mobdamage|}}} }} }}
 +
;Damage
 +
:{{{mobdamage|}}}
 +
}}
 +
 +
{{#if: {{{mobdamagetype|}}} |
 +
  {{#if: {{#var:setProperty}} | {{#set:Melee Damage Def = {{{mobdamagetype|}}} }} }}
 +
;Damage Type
 +
:{{{mobdamagetype|}}}
 +
}}
 +
 +
{{#if: {{{mobdamage2|}}} |
 +
  {{#if: {{#var:setProperty}} | {{#set:Melee Damage Base = {{{mobdamage2|}}} }} }}
 +
;Damage
 +
:{{{mobdamage2|}}}
 +
}}
 +
 +
{{#if: {{{mobdamagetype2|}}} |
 +
  {{#if: {{#var:setProperty}} | {{#set:Melee Damage Def = {{{mobdamagetype2|}}} }} }}
 +
;Damage Type
 +
:{{{mobdamagetype2|}}}
 +
}}
 +
 +
{{#if: {{{mobdamage3|}}} |
 +
  {{#if: {{#var:setProperty}} | {{#set:Melee Damage Base = {{{mobdamage3|}}} }} }}
 +
;Damage
 +
:{{{mobdamage3|}}}
 +
}}
 +
 +
{{#if: {{{mobdamagetype3|}}} |
 +
  {{#if: {{#var:setProperty}} | {{#set:Melee Damage Def = {{{mobdamagetype3|}}} }} }}
 +
;Damage Type
 +
:{{{mobdamagetype3|}}}
 +
}}
 +
 +
{{#if: {{{mobdamageaverage|}}} |
 +
  {{#if: {{#var:setProperty}} | {{#set:Average Melee Damage = {{{mobdamageaverage|}}} }} }}
 
}}
 
}}
  

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)