Difference between revisions of "Template:Define"

From RimWorld Wiki
Jump to navigation Jump to search
(moved Template:Obsolete to /doc)
 
(87 intermediate revisions by 17 users not shown)
Line 1: Line 1:
{{#set:
+
<includeonly>{{#set:
   image = [[File:{{BASEPAGENAME}}.png]]
+
   Kind ={{{category|Unknown}}}
}}
+
| Color =rgb{{{color|}}}
{{#set:
+
| Image =[[File:{{{image|{{BASEPAGENAME}}}}}.png]]
  always haulable = {{{always haulable|}}}
+
}}{{#set:
| appearance = {{{appearance|}}}
+
| Name ={{BASEPAGENAME}}
| beauty factor = {{{beauty factor|}}}
+
| Accuracy (Long) Base ={{{accuracy (long) base|}}}
| beauty offset = {{{beauty offset|}}}
+
| Accuracy (Medium) Base ={{{accuracy (medium) base|}}}
| category = {{{category|}}}
+
| Accuracy (Short) Base ={{{accuracy (short) base|}}}
| color = {{{color|}}}
+
| Accuracy (Touch) Base ={{{accuracy (touch) base|}}}
| construct effect = {{{construct effect|}}}
+
| Addictiveness ={{{addictiveness|}}}
| def name = {{{def name|}}}
+
| Allow Color Generators ={{{allow color generators|}}}
| default color = {{{default color|}}}
+
| Altitude Layer ={{{altitude layer|}}}
| description = {{{description|}}}
+
| Always Haulable ={{{always haulable|}}}
| deterioration rate base = {{{deterioration rate base|}}}
+
| Appearance ={{{appearance|}}}
| door opening speed factor = {{{door opening speed factor|}}}
+
| Armor - Blunt Base ={{{armor - blunt base|}}}
| draw gui overlay = {{{draw gui overlay|}}}
+
| Armor - Blunt Factor ={{{armor - blunt factor|}}}
| e type = {{{e type|}}}
+
| Armor - Blunt Offset ={{{armor - blunt offset|}}}
| equipment type = {{{equipment type|}}}
+
| Armor - Electric Factor ={{{armor - electric factor|}}}
| equipped angle offset = {{{equipped angle offset|}}}
+
| Armor - Electric Offset ={{{armor - electric offset|}}}
| equipped texture path = {{{equipped texture path|}}}
+
| Armor - Heat Factor ={{{armor - heat factor|}}}
| flammability base = {{{flammability base|}}}
+
| Armor - Heat Offset ={{{armor - heat offset|}}}
| flammability factor = {{{flammability factor|}}}
+
| Armor - Sharp Base ={{{armor - sharp base|}}}
| graphic class = {{{graphic class|}}}
+
| Armor - Sharp Factor ={{{armor - sharp factor|}}}
| graphic path = {{{graphic path|}}}
+
| Armor - Sharp Offset ={{{armor - sharp offset|}}}
| is body part = {{{is body part|}}}
+
| Beauty Base ={{{beauty base|}}}
| label = {{{label|}}}
+
| Beauty Factor ={{{beauty factor|}}}
| market value base = {{{market value base|}}}
+
| Beauty Offset ={{{beauty offset|}}}
| market value factor = {{{market value factor|}}}
+
| Bingus ={{{bingus|}}}
| max health base = {{{max health base|}}}
+
| Blast Radius ={{{blastRadius|}}}
| max health factor = {{{max health factor|}}}
+
| Block Adjacent Sow ={{{block adjacent sow|}}}
| melee blunt damage base = {{{melee blunt damage base|}}}
+
| Blood Filtration Factor ={{{blood filtration factor|}}}
| melee cooldown base = {{{melee cooldown base|}}}
+
| Blood Filtration Offset ={{{blood filtration offset|}}}
| melee cooldown factor = {{{melee cooldown factor|}}}
+
| Blood Pumping Factor ={{{blood pumping factor|}}}
| melee damage base = {{{melee damage base|}}}
+
| Blood Pumping Offset ={{{blood pumping offset|}}}
| melee sharp damage base = {{{melee sharp damage base|}}}
+
| Breathing Factor ={{{breathing factor|}}}  
| note = {{{note|}}}
+
| Breathing Offset ={{{breathing offset|}}}
| parent name = {{{parent name|}}}
+
| Burst Count ={{{burst|}}}
| path cost = {{{path cost|}}}
+
| Burst Ticks ={{{burstTicks||}}}  
| resource readout always show = {{{resource readout always show|}}}
+
| Category ={{{category|}}}
| resource readout priority = {{{resource readout priority|}}}
+
| Commonality ={{{commonality|}}}
| rest effectiveness factor = {{{rest effectiveness factor|}}}
+
| Consciousness Factor ={{{consciousness factor|}}}
| rotatable = {{{rotatable|}}}
+
| Consciousness Offset ={{{consciousness offset|}}}
| selectable = {{{selectable|}}}
+
| Construct Effect ={{{construct effect|}}}
| slag def = {{{slag def|}}}
+
| Days To Start Rot Base ={{{days to rot|}}}
| small volume = {{{small volume|}}}
+
| Def Name ={{{def name|}}}
| sound drop = {{{sound drop|}}}
+
| Default Color ={{{default color|}}}
| sound impact stuff = {{{sound impact stuff|}}}
+
| Default Color Two ={{{default color two|}}}
| sound interact = {{{sound interact|}}}
+
| Description ={{{description|}}}
| stack limit = {{{stack limit|}}}
+
| Destroy On Drop ={{{destroy on drop|}}}
| stuff adjective = {{{stuff adjective|}}}
+
| Deterioration Rate Base ={{{deterioration rate base|}}}
| tech level = {{{tech level|}}}
+
| Die If Leafless ={{{die if leafless|}}}
| thing class = {{{thing class|}}}
+
| Door Opening Speed Factor ={{{door opening speed factor|}}}
| use standard health = {{{use standard health|}}}
+
| DPS ={{{DPS|}}}
| work to make factor = {{{work to make factor|}}}
+
| Draw Gui Overlay ={{{draw gui overlay|}}}
| work to make offset = {{{work to make offset|}}}
+
| Drawer Type ={{{drawer type|}}}
}}
+
| Drug Category ={{{drug category|}}}
{{ {{{1}}} }}
+
| E Type ={{{e type|}}}
 +
| Eat Effect ={{{eat effect|}}}
 +
| Equipment Type ={{{equipment type|}}}
 +
| Equipped Angle Offset ={{{equipped angle offset|}}}
 +
| Equipped Texture Path ={{{equipped texture path|}}}
 +
| Fertility ={{{fertility|}}}
 +
| Fertility Factor Plant Chance ={{{fertility factor plant chance|}}}
 +
| Fertility Min ={{{fertility min|}}}
 +
| Fertility Sensitivity ={{{fertility sensitivity|}}}
 +
| Fill Percent ={{{fill percent|}}}
 +
| Flammability Base ={{{flammability base|}}}{{{flammability|}}}
 +
| Flammability Factor ={{{flammability factor|}}}
 +
| Food Preference ={{{food preference|}}}
 +
| Global Work Speed Offset ={{{global work speed offset|}}}
 +
| Graphic Class ={{{graphic class|}}}
 +
| Graphic On Ground Random Rotate Angle ={{{graphic on ground random rotate angle|}}}
 +
| Graphic Overdraw ={{{graphic overdraw|}}}
 +
| Graphic Path ={{{graphic path|}}}
 +
| Graphic Shader Type ={{{graphic shader type|}}}
 +
| Grow Days ={{{grow days|}}}
 +
| Grow Min Glow ={{{grow min glow|}}}
 +
| Harvest Destroys ={{{harvest destroys|}}}
 +
| Harvest Min Growth ={{{harvest min growth|}}}
 +
| Harvest Tag ={{{harvest tag|}}}
 +
| Harvest Work ={{{harvest work|}}}
 +
| Harvest Yield ={{{harvest yield|}}}
 +
| Harvest Yield Range Max ={{{harvest yield range max|}}}
 +
| Harvest Yield Range Min ={{{harvest yield range min|}}}
 +
| Harvested Thing Def ={{{harvested thing def|}}}
 +
| Hearing Factor ={{{hearing factor|}}}
 +
| Hearing Offset ={{{hearing offset|}}}
 +
| Hide At Snow Depth ={{{hide at snow depth|}}}
 +
| Hunger Factor ={{{hunger factor|}}}
 +
| Hunger Offset ={{{hunger offset|}}}
 +
| Ingested Direct Thought ={{{ingested direct thought|}}}
 +
| Insulation - Cold Factor ={{{insulation - cold factor|}}}
 +
| Insulation - Heat Factor ={{{insulation - heat factor|}}}
 +
| Is Body Part ={{{is body part|}}}
 +
| Is Pleasure Drug ={{{is pleasure drug|}}}
 +
| Joy ={{{joy|}}}
 +
| Joy Offset ={{{joy offset|}}}
 +
| Joy Kind ={{{joy kind|}}}
 +
| Label ={{{label|}}}
 +
| Leafless Graphic Path ={{{leafless graphic path|}}}
 +
| Lifespan ={{{lifespan|}}}
 +
| Lifespan Fraction ={{{lifespan fraction|}}}
 +
| Light Requirement ={{{light requirement|}}}
 +
| Manipulation Factor ={{{manipulation factor|}}}
 +
| Manipulation Offset ={{{manipulation offset|}}}
 +
| Market Value Base ={{{market value base|}}}
 +
| Market Value Factor ={{{market value factor|}}}
 +
<!-- 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 Factor ={{{max hit points factor|}}}
 +
| Max Mesh Count ={{{max mesh count|}}}
 +
| Max Num To Ingest At Once ={{{max num to ingest at once|}}}
 +
| Maximum Comfortable Temperature Base ={{{maximum comfortable temperature base|}}}
 +
| Medical Potency Base ={{{medical potency base|}}}
 +
| Melee Blunt Damage Base ={{{melee blunt damage base|}}}
 +
| Melee Blunt Damage Factor ={{{melee blunt damage factor|}}}
 +
| Melee Cooldown Base ={{{melee cooldown base|}}}
 +
| Melee Cooldown Factor ={{{melee cooldown factor|}}}
 +
| Melee Damage Base ={{{melee damage base|}}}
 +
| Melee Sharp Damage Base ={{{melee sharp damage base|}}}
 +
| Melee Sharp Damage Factor ={{{melee sharp damage factor|}}}
 +
| Metabolism Factor ={{{metabolism factor|}}}
 +
| Metabolism Offset ={{{metabolism offset|}}}
 +
| Minimum Comfortable Temperature Base ={{{minimum comfortable temperature base|}}}
 +
| Minimum Required Cooking Skill ={{{minimum required cooking skill|}}}
 +
| Minimum Required Crafting Skill ={{{minimum required crafting skill|}}}
 +
| Minimum Required Growing Skill ={{{minimum required growing skill|}}}
 +
| Minimum Required Medicine Skill ={{{minimum required medicine skill|}}}
 +
| Miss Radius ={{{missRadius|}}}|
 +
| Mode ={{{mode|}}}
 +
| Mood Offset ={{{mood offset|}}}
 +
| Move Speed Base ={{{move speed base|}}}
 +
| Moving Factor ={{{moving factor|}}}
 +
| Moving Offset ={{{moving offset|}}}
 +
| Never Multi Select ={{{never multi select|}}}
 +
| Nutrition ={{{nutrition|}}}
 +
| Nutrition per Day ={{{nutrition per day|}}}
 +
| Nutrition per Day (70) ={{{nutrition per day (70)|}}}
 +
| Nutrition per Day (140) ={{{nutrition per day (140)|}}}
 +
| Nutrition per Day (280) ={{{nutrition per day (280)|}}}
 +
| On Ground Random Rotate Angle ={{{on ground random rotate angle|}}}
 +
| Pain Factor ={{{pain factor|}}}
 +
| Pain Offset ={{{pain offset|}}}
 +
| Parent Name ={{{parent name|}}}
 +
| Passability ={{{passability|}}}
 +
| Path Cost ={{{path cost|}}}
 +
| Preferability ={{{preferability|}}}
 +
| Quest Item ={{{quest item|}}}
 +
| Range ={{{range|}}}
 +
| Ranged Cooldown Base ={{{ranged cooldown base|}}}
 +
| Real Grow Days ={{{real grow days|}}}
 +
| Resource Readout Always Show ={{{resource readout always show|}}}
 +
| Resource Readout Priority ={{{resource readout priority|}}}
 +
| Rest Effectiveness Factor ={{{rest effectiveness factor|}}}
 +
| Rest Factor ={{{rest factor|}}}
 +
| Rest Fall Factor ={{{rest fall factor|}}}
 +
| Rest Offset ={{{rest offset|}}}
 +
| Rotatable ={{{rotatable|}}}
 +
| Seed Emit Mtb Days ={{{seed emit mtb days|}}}
 +
| Seed Shoot Radius ={{{seed shoot radius|}}}
 +
| Selectable ={{{selectable|}}}
 +
| Sell Price Multiplier Base ={{{sell price multiplier base|}}}
 +
| Shader Type ={{{shader type|}}}
 +
| Shoots Seeds ={{{shoots seeds|}}}
 +
| Sight Factor ={{{sight factor|}}}
 +
| Sight Offset ={{{sight offset|}}}
 +
| Slag Def ={{{slag def|}}}
 +
| Small Volume ={{{small volume|}}}
 +
| Social Properness Matters ={{{social properness matters|}}}
 +
| Sound Drop ={{{sound drop|}}}
 +
| Sound Eat ={{{sound eat|}}}
 +
| Sound Harvest Finish ={{{sound harvest finish|}}}
 +
| Sound Harvesting ={{{sound harvesting|}}}
 +
| Sound Impact Default ={{{sound impact default|}}}
 +
| Sound Impact Stuff ={{{sound impact stuff|}}}
 +
| Sound Interact ={{{sound interact|}}}
 +
| Sound Melee Hit Blunt ={{{sound melee hit blunt|}}}
 +
| Sound Melee Hit Sharp ={{{sound melee hit sharp|}}}
 +
| Sow Tag Decorative ={{{sow tag decorative|}}}
 +
| Sow Tag Ground ={{{sow tag ground|}}}
 +
| Sow Tag Hydroponic ={{{sow tag hydroponic|}}}
 +
| Sow Work ={{{sow work|}}}
 +
| Stack Limit ={{{stack limit|}}}
 +
| Stuff Adjective ={{{stuff adjective|}}}
 +
| Talking Factor ={{{talking factor|}}}
 +
| Talking Offset ={{{talking offset|}}}
 +
| Target Hit Chance Factor ={{{target hit chance factor|}}}
 +
| Taste ={{{taste|}}}
 +
| Tech Level ={{{tech level|}}}
 +
| Terrain Affordance Needed = {{{terrain affordance needed|}}}
 +
| Thing Class ={{{thing class|}}}
 +
| Ticker Type ={{{ticker type|}}}
 +
| Tooltip ={{{tooltip|}}}
 +
| Top Wind Exposure ={{{top wind exposure|}}}
 +
| Trade Never Stack ={{{trade never stack|}}}
 +
| Tradeability ={{{tradeability|}}}
 +
| Type ={{{type|}}}
 +
| Type2 ={{{type2|}}}
 +
| Ui Icon Path ={{{ui icon path|}}}
 +
| Use Hit Points ={{{use hit points|}}}
 +
| Visual Size Max ={{{visual size max|}}}
 +
| Visual Size Min ={{{visual size min|}}}
 +
| Visual Size Range Max ={{{visual size range max|}}}
 +
| Visual Size Range Min ={{{visual size range min|}}}
 +
| Volume = {{{volume|}}}
 +
| Walk Speed ={{{walk speed|}}}
 +
| Wild Cluster Radius ={{{wild cluster radius|}}}
 +
| Wild Cluster Size Max ={{{wild cluster size max|}}}
 +
| Wild Cluster Size Min ={{{wild cluster size min|}}}
 +
| 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 Factor ={{{work to make factor|}}}
 +
| Work To Make Offset ={{{work to make offset|}}}
 +
| Work To Build Factor ={{{work to build factor|}}}
 +
| Work To Build Offset ={{{work to build offset |}}}
 +
}}{{ {{{1}}} }}</includeonly><noinclude>
 +
{{documentation}}
 +
</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 =
}}