Difference between revisions of "Template:Define"

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