Difference between revisions of "Template:Define"

From RimWorld Wiki
Jump to navigation Jump to search
(moved Template:Obsolete to /doc)
 
(84 intermediate revisions by 17 users not shown)
Line 1: Line 1:
{{#set:
+
<includeonly>{{#set:
   Category = {{{category|Unknown}}}
+
   Kind ={{{category|Unknown}}}
| Color = rgb{{{color|}}}
+
| Color =rgb{{{color|}}}
| Image = [[File:{{BASEPAGENAME}}.png]]
+
| Image =[[File:{{{image|{{BASEPAGENAME}}}}}.png]]
 
}}{{#set:
 
}}{{#set:
  Always Haulable = {{{always haulable|}}}
+
| Name ={{BASEPAGENAME}}
| Appearance = {{{appearance|}}}
+
| Accuracy (Long) Base ={{{accuracy (long) base|}}}
| Beauty Factor = {{{beauty factor|}}}
+
| Accuracy (Medium) Base ={{{accuracy (medium) base|}}}
| Beauty Offset = {{{beauty offset|}}}
+
| Accuracy (Short) Base ={{{accuracy (short) base|}}}
| Construct Effect = {{{construct effect|}}}
+
| Accuracy (Touch) Base ={{{accuracy (touch) base|}}}
| Def Name = {{{def name|}}}
+
| Addictiveness ={{{addictiveness|}}}
| Default Color = {{{default color|}}}
+
| Allow Color Generators ={{{allow color generators|}}}
| Description = {{{description|}}}
+
| Altitude Layer ={{{altitude layer|}}}
| Deterioration Rate Base = {{{deterioration rate base|}}}
+
| Always Haulable ={{{always haulable|}}}
| Door Opening Speed Factor = {{{door opening speed factor|}}}
+
| Appearance ={{{appearance|}}}
| Draw Gui Overlay = {{{draw gui overlay|}}}
+
| Armor - Blunt Base ={{{armor - blunt base|}}}
| E Type = {{{e type|}}}
+
| Armor - Blunt Factor ={{{armor - blunt factor|}}}
| Equipment Type = {{{equipment type|}}}
+
| Armor - Blunt Offset ={{{armor - blunt offset|}}}
| Equipped Angle Offset = {{{equipped angle offset|}}}
+
| Armor - Electric Factor ={{{armor - electric factor|}}}
| Equipped Texture Path = {{{equipped texture path|}}}
+
| Armor - Electric Offset ={{{armor - electric offset|}}}
| Flammability Base = {{{flammability base|}}}
+
| Armor - Heat Factor ={{{armor - heat factor|}}}
| Flammability Factor = {{{flammability factor|}}}
+
| Armor - Heat Offset ={{{armor - heat offset|}}}
| Graphic Class = {{{graphic class|}}}
+
| Armor - Sharp Base ={{{armor - sharp base|}}}
| Graphic Path = {{{graphic path|}}}
+
| Armor - Sharp Factor ={{{armor - sharp factor|}}}
| Is Body Part = {{{is body part|}}}
+
| Armor - Sharp Offset ={{{armor - sharp offset|}}}
| Label = {{{label|}}}
+
| Beauty Base ={{{beauty base|}}}
| Market Value Base = {{{market value base|}}}
+
| Beauty Factor ={{{beauty factor|}}}
| Market Value Factor = {{{market value factor|}}}
+
| Beauty Offset ={{{beauty offset|}}}
| Max Health Base = {{{max health base|}}}
+
| Bingus ={{{bingus|}}}
| Max Health Factor = {{{max health factor|}}}
+
| Blast Radius ={{{blastRadius|}}}
| Melee Blunt Damage Base = {{{melee blunt damage base|}}}
+
| Block Adjacent Sow ={{{block adjacent sow|}}}
| Melee Cooldown Base = {{{melee cooldown base|}}}
+
| Blood Filtration Factor ={{{blood filtration factor|}}}
| Melee Cooldown Factor = {{{melee cooldown factor|}}}
+
| Blood Filtration Offset ={{{blood filtration offset|}}}
| Melee Damage Base = {{{melee damage base|}}}
+
| Blood Pumping Factor ={{{blood pumping factor|}}}
| Melee Sharp Damage Base = {{{melee sharp damage base|}}}
+
| Blood Pumping Offset ={{{blood pumping offset|}}}
| Note = {{{note|}}}
+
| Breathing Factor ={{{breathing factor|}}}  
| Parent Name = {{{parent name|}}}
+
| Breathing Offset ={{{breathing offset|}}}
| Path Cost = {{{path cost|}}}
+
| Burst Count ={{{burst|}}}
| Resource Readout Always Show = {{{resource readout always show|}}}
+
| Burst Ticks ={{{burstTicks||}}}  
| Resource Readout Priority = {{{resource readout priority|}}}
+
| Category ={{{category|}}}
| Rest Effectiveness Factor = {{{rest effectiveness factor|}}}
+
| Commonality ={{{commonality|}}}
| Rotatable = {{{rotatable|}}}
+
| Consciousness Factor ={{{consciousness factor|}}}
| Selectable = {{{selectable|}}}
+
| Consciousness Offset ={{{consciousness offset|}}}
| Slag Def = {{{slag def|}}}
+
| Construct Effect ={{{construct effect|}}}
| Small Volume = {{{small volume|}}}
+
| Days To Start Rot Base ={{{days to rot|}}}
| Sound Drop = {{{sound drop|}}}
+
| Def Name ={{{def name|}}}
| Sound Impact Stuff = {{{sound impact stuff|}}}
+
| Default Color ={{{default color|}}}
| Sound Interact = {{{sound interact|}}}
+
| Default Color Two ={{{default color two|}}}
| Stack Limit = {{{stack limit|}}}
+
| Description ={{{description|}}}
| Stuff Adjective = {{{stuff adjective|}}}
+
| Destroy On Drop ={{{destroy on drop|}}}
| Tech Level = {{{tech level|}}}
+
| Deterioration Rate Base ={{{deterioration rate base|}}}
| Thing Class = {{{thing class|}}}
+
| Die If Leafless ={{{die if leafless|}}}
| Use Standard Health = {{{use standard health|}}}
+
| Door Opening Speed Factor ={{{door opening speed factor|}}}
| Work To Make Factor = {{{work to make factor|}}}
+
| DPS ={{{DPS|}}}
| Work To Make Offset = {{{work to make offset|}}}}}{{ {{{1}}} }}
+
| Draw Gui Overlay ={{{draw gui overlay|}}}
 +
| Drawer Type ={{{drawer type|}}}
 +
| Drug Category ={{{drug category|}}}
 +
| 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 =
}}