Difference between revisions of "Template:Define"

From RimWorld Wiki
Jump to navigation Jump to search
(Added a non-factor version of insulation. As of 1.0 insulation - {hot,cold} is not a factor, but rather a simple value of textiles. Consider cleaning up Insulation - {Hot,Cold} Factor if all textiles are updated to non-factor versions.)
(moved Template:Obsolete to /doc)
 
(25 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{#set:
{{#set:
 
 
   Kind ={{{category|Unknown}}}
 
   Kind ={{{category|Unknown}}}
 
| Color =rgb{{{color|}}}
 
| Color =rgb{{{color|}}}
 
| Image =[[File:{{{image|{{BASEPAGENAME}}}}}.png]]
 
| Image =[[File:{{{image|{{BASEPAGENAME}}}}}.png]]
 
}}{{#set:
 
}}{{#set:
 +
| Name ={{BASEPAGENAME}}
 
| Accuracy (Long) Base ={{{accuracy (long) base|}}}
 
| Accuracy (Long) Base ={{{accuracy (long) base|}}}
 
| Accuracy (Medium) Base ={{{accuracy (medium) base|}}}
 
| Accuracy (Medium) Base ={{{accuracy (medium) base|}}}
Line 27: Line 27:
 
| Beauty Factor ={{{beauty factor|}}}
 
| Beauty Factor ={{{beauty factor|}}}
 
| Beauty Offset ={{{beauty offset|}}}
 
| Beauty Offset ={{{beauty offset|}}}
 +
| Bingus ={{{bingus|}}}
 
| Blast Radius ={{{blastRadius|}}}
 
| Blast Radius ={{{blastRadius|}}}
 
| Block Adjacent Sow ={{{block adjacent sow|}}}
 
| Block Adjacent Sow ={{{block adjacent sow|}}}
Line 92: Line 93:
 
| Insulation - Cold Factor ={{{insulation - cold factor|}}}
 
| Insulation - Cold Factor ={{{insulation - cold factor|}}}
 
| Insulation - Heat Factor ={{{insulation - heat factor|}}}
 
| Insulation - Heat Factor ={{{insulation - heat factor|}}}
| Insulation - Cold ={{{insulation - cold|}}}
 
| Insulation - Heat ={{{insulation - heat|}}}
 
 
| Is Body Part ={{{is body part|}}}
 
| Is Body Part ={{{is body part|}}}
 
| Is Pleasure Drug ={{{is pleasure drug|}}}
 
| Is Pleasure Drug ={{{is pleasure drug|}}}
Line 108: Line 107:
 
| Market Value Base ={{{market value base|}}}
 
| Market Value Base ={{{market value base|}}}
 
| Market Value Factor ={{{market value factor|}}}
 
| Market Value Factor ={{{market value factor|}}}
| Mass Base={{{mass|{{#switch:{{BASEPAGENAME}}|{{Define/Mass|page}}|#default={{#switch:{{{1}}}|{{Define/Mass|category}}}}}}}}}
+
<!-- The following function is broken, disabling until it's fixed or deleted.
 +
| Mass Base={{{mass|{{#switch:{{BASEPAGENAME}}|{{Define/Mass|page}}|#default={{#switch:{{{1}}}|{{Define/Mass|category}}}}}}}}}
 +
-->
 +
| Mass Base={{{mass|}}}
 
| Max Hit Points Base ={{{max hit points base|}}}
 
| Max Hit Points Base ={{{max hit points base|}}}
 
| Max Hit Points Factor ={{{max hit points factor|}}}
 
| Max Hit Points Factor ={{{max hit points factor|}}}
Line 190: Line 192:
 
| Taste ={{{taste|}}}
 
| Taste ={{{taste|}}}
 
| Tech Level ={{{tech level|}}}
 
| Tech Level ={{{tech level|}}}
 +
| Terrain Affordance Needed = {{{terrain affordance needed|}}}
 
| Thing Class ={{{thing class|}}}
 
| Thing Class ={{{thing class|}}}
 
| Ticker Type ={{{ticker type|}}}
 
| Ticker Type ={{{ticker type|}}}
Line 204: Line 207:
 
| Visual Size Range Max ={{{visual size range max|}}}
 
| Visual Size Range Max ={{{visual size range max|}}}
 
| Visual Size Range Min ={{{visual size range min|}}}
 
| Visual Size Range Min ={{{visual size range min|}}}
 +
| Volume = {{{volume|}}}
 
| Walk Speed ={{{walk speed|}}}
 
| Walk Speed ={{{walk speed|}}}
 
| Wild Cluster Radius ={{{wild cluster radius|}}}
 
| Wild Cluster Radius ={{{wild cluster radius|}}}
Line 209: Line 213:
 
| Wild Cluster Size Min ={{{wild cluster size min|}}}
 
| Wild Cluster Size Min ={{{wild cluster size min|}}}
 
| Wild Commonality Max Fraction ={{{wild commonality max fraction|}}}
 
| Wild Commonality Max Fraction ={{{wild commonality max fraction|}}}
 +
| Work To Make ={{{work to make base|}}}
 
| Work To Make Base ={{{work to make base|}}}
 
| Work To Make Base ={{{work to make base|}}}
 
| Work To Make Factor ={{{work to make factor|}}}
 
| Work To Make Factor ={{{work to make factor|}}}
Line 214: Line 219:
 
| Work To Build Factor ={{{work to build factor|}}}
 
| Work To Build Factor ={{{work to build factor|}}}
 
| Work To Build Offset ={{{work to build offset |}}}
 
| Work To Build Offset ={{{work to build offset |}}}
}}{{ {{{1}}} }}
+
}}{{ {{{1}}} }}</includeonly><noinclude>
</includeonly>
 
<noinclude>
 
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 11:45, 24 April 2022

Documentation icon Template documentation[view] [edit] [history] [purge]

Description[edit]

This template defines the stats for an item that, after a long and confusing chain of transclusions, will end up in Template:Infobox/Thing. It's usage is just like other Infobox templates, but for the first parameter you have to type either Drug, Medicine, Material, Meal, Exotic Item or Textile. Most parameters are optional. Note: Some stats may no longer have any effect on the infobox.

Keywords[edit]

base = write in decimal form about a base stat.
factor = how many times your item affects something, eg. 2.5 would show on the Infobox: 2.5x
offset = add a + or - to say how much using this item will offset a stat

Detailed Usage[edit]

{{Define | (Drug/Medicine/Material/Meal/Textile/Exotic Item)
| category = Category of the item.
| image = Define a specific image name to be used in the Infobox. Not needed if the image name is the same as the page name.
| accuracy (long) base = 
| accuracy (medium) base = 
| accuracy (short) base =
| accuracy (touch) base =
| armor - (blunt/sharp) base = no prefix or suffix
| armor - (blunt/electric/heat/sharp) factor/offset = x prefix
| beauty base/factor/offset =
| blood filtration factor/offset = 
| blood pumping factor/offset = 
| breathing factor/offset = 
| consciousness factor/offset =
| days to rot = (base)
| description = the description in-game about the object
| deterioration rate base =
| door opening speed factor =
| equipped angle offset =
| flammability base/factor =
| global work speed offset =
| hearing factor/offset =
| hunger factor/offset = 
| insulation - cold factor =
| insulation - heat factor = 
| joy offset =
| manipulation factor/offset =
| market value base/factor =
| mass = (base)
| max hit points base = 
| max hit points factor =
| maximum comfortable temperature base =
| medical potency base =
| melee blunt damage base =
| melee cooldown base/factor =
| melee damage base =
| melee sharp damage base =
| metabolism factor/offset =
| minimum comfortable temperature base =
| move speed base =
| moving factor/offset =
| pain factor/offset =
| ranged cooldown base =
| rest effectiveness factor =
| rest factor/offset=
| sell price multiplier base =
| sight factor/offset =
| stack limit = 
| talking factor/offset =
| taste =
| type = 
| type2 = 
| target hit chance factor =
| work to make base/factor/offset =
| work to build factor/offset =
}}