Difference between revisions of "Template:Define/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(WIP)
 
m (category)
 
(17 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
{{Obsolete|reason = I'm proud to announce that the changeover from ''Define'' to ''Infobox main'' is complete! This template is no longer used by any page. Template retained to keep page histories legible.}}
 
===Description===
 
===Description===
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 Medicine, Material, Exotic Item or Textile. Most parameters are optional. Note: Some stats may no longer have any effect in the Infobox.
+
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===
 +
 
 +
base = write in decimal form about a base stat.<br />
 +
factor = how many times your item affects something, eg. 2.5 would show on the Infobox: 2.5x<br />
 +
offset = add a + or - to say how much using this item will offset a stat
  
 
===Detailed Usage===
 
===Detailed Usage===
 
<pre style="word-wrap:break-word">
 
<pre style="word-wrap:break-word">
(When stats have a prefix suffix eg. 25%, the suffix is automatically added, no need to add your own suffix.)
+
{{Define | (Drug/Medicine/Material/Meal/Textile/Exotic Item)
{{Define | (Medicine/Material/Textile/Exotic Item)
+
| category = Category of the item.
| category = (Deprecated? Needs verification, not compulsory)
 
| color = No apparent effect. (Deprecated?)
 
 
| 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.
 
| 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 (long) base =  
Line 13: Line 18:
 
| accuracy (short) base =
 
| accuracy (short) base =
 
| accuracy (touch) base =
 
| accuracy (touch) base =
| addictiveness = % suffix
+
| armor - (blunt/sharp) base = no prefix or suffix
| allow color generators =  
+
| armor - (blunt/electric/heat/sharp) factor/offset = x prefix
| altitude layer =  
+
| beauty base/factor/offset =
| always haulable =  
+
| blood filtration factor/offset =
| appearance =  
+
| blood pumping factor/offset =  
| armor - blunt base = no prefix or suffix
+
| breathing factor/offset =  
| armor - blunt factor = x prefix
+
| consciousness factor/offset =
| armor - blunt offset = % suffix
+
| 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 =
 +
}}
 
</pre>
 
</pre>
 +
 +
<includeonly>[[Category:SMW templates]]</includeonly>

Latest revision as of 11:46, 24 April 2022

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 =
}}