Editing Template:Infobox main/doc

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 25: Line 25:
 
<pre>
 
<pre>
 
{{infobox main
 
{{infobox main
 +
|animal/plant/weapon/area/structure/production/security/furniture/fabric/leathery/metallic/stony (used to set color theme)
 +
|additional styles (optional)
 +
 +
|set property = Boolean value for whether the template should set properties. This defaults to true on main pages, and false on namespaced pages.
 +
 +
|name = Title of the infobox. Defaults to current page name if not specified.
 +
|image = Picture name.(jpg/png)| variables such as size, alt text (optional)
 +
|audio = Audio name.(.wav)
 +
|description = Short description of the item. Recommended to use the description from the in-game info page.
 +
|type = use for main category
 +
|type2 = use for subcategory (optional)
 +
|beauty = use for beauty
 +
|flammability = how quickly it burns. format: in decimals(vb:0.8) , displayed as % vb(80%)
 +
|market value = the amount of currency the item is worth
 +
|mass base = mass in kilograms - DO NOT USE FOR ANIMALS
 +
|hp = the amount of damage an object can take; use for objects with hit points
  
 
<!-- All pawns (animals, humanoids, mechanoids) -->
 
<!-- All pawns (animals, humanoids, mechanoids) -->
Line 116: Line 132:
 
| max num to ingest at once = number
 
| max num to ingest at once = number
 
| days to rot              = number
 
| days to rot              = number
 +
 +
<!-- Materials -->
 +
| beauty factor            = number
 +
| beauty offset            = number
 +
| work to make factor      = number
 +
| work to build factor      = number
 +
| work to build offset      = number in ticks
 +
| max hit points factor    = number
 +
| flammability factor      = number
 +
| armor - sharp factor      = number
 +
| armor - blunt factor      = number
 +
| armor - heat factor      = number
 +
| insulation - cold factor  = number in °C
 +
| insulation - heat factor  = number in °C
 +
| melee blunt damage factor = number
 +
| melee sharp damage factor = number
 +
| melee cooldown factor    = number
 +
| door opening speed factor = number
 +
| rest effectiveness factor = number
  
 
<!-- Plants -->
 
<!-- Plants -->
Line 169: Line 204:
  
 
<!-- All Weapons -->
 
<!-- All Weapons -->
 +
|class      = neolithic/modern/advanced/mechanoid
 
|damage      = Base weapon damage
 
|damage      = Base weapon damage
 
|cooldown    = use for cooldown time of weapon (in ticks)
 
|cooldown    = use for cooldown time of weapon (in ticks)
Line 247: Line 283:
  
 
<!--Undocumented parameters -->
 
<!--Undocumented parameters -->
 +
|deterioration =
 
|is exotic species =
 
|is exotic species =
 
|petness =
 
|petness =
Line 278: Line 315:
 
</div>
 
</div>
 
{{clear}}
 
{{clear}}
 
{| class="wikitable mw-collapsible mw-collapsed"
 
! Parameter !! Dependencies !! Type/Unit !! Property !! Description !! xml-tag
 
|-
 
! colspan="6" style="text-align:left;" | 0. Testing
 
|-
 
| set property || optional || boolean || – || Boolean value for whether the template should set properties. This defaults to true on main namespace pages, and false on all other namespace pages. Only use it when absolutely neccesary. || –
 
|-
 
! colspan="6" style="text-align:left;" | 1. Head
 
|-
 
| <1> || optional || One of:
 
* animal
 
* area
 
* drug
 
* exotic
 
* fabric
 
* food
 
* furniture
 
* leathery
 
* medicine
 
* metallic
 
* plant
 
* production
 
* resource
 
* security
 
* stony
 
* structure
 
* weapon
 
| – || Sets the color of the infobox. || –
 
|-
 
| name || optional || pagename || [[Property:Name]] || Title of the infobox. Defaults to current page name if not specified. || <label>
 
|-
 
| image || optional || Picture name.png || [[Property:Image]] || Defaults to name.png. || <graphicData>
 
|-
 
| imagesize || optional, image || px || – || See [https://www.mediawiki.org/wiki/Help:Images#Rendering_a_single_image https://www.mediawiki.org/wiki/Help:Images#Rendering_a_single_image]. || –
 
|-
 
| audio || optional || Audio name.wav || [[Property:Audio]] || So far only used for [[musical instrument]]s. || <soundPlayInstrument>
 
|-
 
| description || optional || text || [[Property:Description]] || In-game description of the item. || <description>
 
|-
 
! colspan="6" style="text-align:left;" | 2. Base Stats
 
|-
 
| type || mandatory || pagename || [[Property:Type]] || Sets main category. || –
 
|-
 
| type2 || optional || pagename || [[Property:Type2]] || Sets subcategory. || –
 
|-
 
| stuff category || optional || One of:
 
* Metallic
 
* Woody
 
* Stony
 
* Fabric
 
* Leathery
 
| [[Property:Stuff Category]] || Used by [[materials]]. || <stuffProps><categories>
 
|-
 
| tech level || optional || One of:
 
* Neolithic
 
* Medieval
 
* Industrial
 
* Archotech
 
* Spacer
 
* Ultra
 
| [[Property:Tech Level]] || || <techLevel>
 
|-
 
| class || optional || One of:
 
* Neolithic
 
* Medieval
 
* Industrial
 
* Spacer
 
* Ultra
 
* Mechanoid
 
| [[Property:Class]] || Used by [[weapons]]. || <weaponClasses>
 
|-
 
| market value || optional || silver || [[Property:Market Value Base]] || The amount of silver the item is worth. Defaults to [[Template:Market Value Calculator]]. || <statBases><MarketValue>
 
|-
 
| stack limit || optional || integer || [[Property:Stack Limit]] || Maximum stach size. || <stackLimit>
 
|-
 
| mass base || optional || kg || [[Property:Mass Base]] || Mass in kilograms - DO NOT USE FOR ANIMALS. || <statBases><Mass>
 
|-
 
| beauty || optional || integer || [[Property:Beauty]] || || <statBases><Beauty>
 
|-
 
| beauty outdoors || optional || integer || [[Property:Beauty]] || Beauty score when outdoors. || <statBases><BeautyOutdoors>
 
|-
 
| styledominance || optional || integer || [[Property:Style Dominance]] || How much this object contributes to overall style dominance in an area. || <statBases><StyleDominance>
 
|-
 
| style || optional, styledominance || One of:
 
* Hindu
 
* Christian
 
* Islamic
 
* Buddhist
 
* Morbid
 
* Totemic
 
* Spikecore
 
* Rustic
 
* Animalist
 
* Techist
 
| [[Property:Style]] || || <StyleCategoryDef>
 
|-
 
| hp || optional || integer || [[Property:Max Hit Points Base]] || The amount of damage an object can take. || <statBases><MaxHitPoints>
 
|-
 
| deterioration || optional || number || [[Property:Deterioration Rate Base]] || {{Q|Deterioration Rate|Description}} || <statBases><DeteriorationRate>
 
|-
 
| flammability || optional || number (displayed as %) || [[Property:Style]] || How quickly it burns. || <statBases>
 
|-
 
| days to rot || optional || days || [[Property:Days To Start Rot Base]] || Used for items that spoil when not frozen. || <daysToRotStart>
 
|-
 
| min safe temperature || optional || °C || [[Property:Min Safe Temperature]] || Used for [[Eggs#Fertilized eggs|fertilzed eggs]]. || <minSafeTemperature>
 
|-
 
| max safe temperature || optional || °C || [[Property:Max Safe Temperature]] || Used for [[Eggs#Fertilized eggs|fertilzed eggs]]. || <maxSafeTemperature>
 
|-
 
| spoiling rate per degree per tick || optional || number (displayed as %) || [[Property:Spoiling Rate]] || Used for [[Eggs#Fertilized eggs|fertilzed eggs]]. || <progressPerDegreePerTick>
 
|-
 
| rotatable || optional || boolean || [[Property:Rotatable]] || Whether this item spoils when not frozen. || <rotatable>
 
|-
 
| path cost || optional || integer || [[Property:Path Cost]] || || <pathCost>
 
|-
 
! colspan="6" style="text-align:left;" | 3. Building
 
|-
 
| edifice || optional || boolean || [[Property:Edifice]] || Whether this building has hight. || <building><isEdifice>
 
|-
 
! colspan="6" style="text-align:left;" | 4. Apparel
 
|-
 
! colspan="6" style="text-align:left;" | 5. Pawn Stats
 
|-
 
! colspan="6" style="text-align:left;" | 6. Production
 
|-
 
! colspan="6" style="text-align:left;" | 7. Ingestion
 
|-
 
! colspan="6" style="text-align:left;" | 8. Stat Modifiers (for materials)
 
|-
 
| beauty factor || optional || number || [[Property:Beauty Factor]] || || <stuffProps><statFactors><Beauty>
 
|-
 
| beauty offset || optional || number || [[Property:Beauty Offset]] || || <stuffProps><statOffsets><Beauty>
 
|-
 
| work to make factor || optional || number || [[Property:Work To Make Factor]] || || <stuffProps><statFactors><WorkToMake>
 
|-
 
| work to build factor || optional || number || [[Property:Work To Build Factor]] || || <stuffProps><statFactors><WorkToBuild>
 
|-
 
| work to build offset || optional || ticks || [[Property:Work To Build Offset]] || || <stuffProps><statOffsets><WorkToBuild>
 
|-
 
| max hit points factor || optional || number || [[Property:Max Hit Points Factor]] || || <stuffProps><statFactors><MaxHitPoints>
 
|-
 
| flammability factor || optional || number || [[Property:Flammability Factor]] || || <stuffProps><statFactors><Flammability>
 
|-
 
| armor - sharp factor || optional || number || [[Property:Armor - Sharp Factor]] || || <statBases><StuffPower_Armor_Sharp>
 
|-
 
| armor - blunt factor || optional || number || [[Property:Armor - Blunt Factor]] || || <statBases><StuffPower_Armor_Blunt>
 
|-
 
| armor - heat factor || optional || number || [[Property:Armor - Heat Factor]] || || <statBases><StuffPower_Armor_Heat>
 
|-
 
| insulation - cold factor || optional || °C || [[Property:Insulation - Cold Factor]] || Is actually an offset and not a factor. || <statBases><StuffPower_Insulation_Cold>
 
|-
 
| insulation - heat factor || optional || °C || [[Property:Insulation - Heat Factor]] || Is actually an offset and not a factor. || <statBases><StuffPower_Insulation_Heat>
 
|-
 
| melee blunt damage factor || optional || number || [[Property:Melee Blunt Damage Factor]] || || <statBases><BluntDamageMultiplier>
 
|-
 
| melee sharp damage factor || optional || number || [[Property:Melee Sharp Damage Factor]] || || <statBases><SharpDamageMultiplier>
 
|-
 
| melee cooldown factor || optional || number || [[Property:Melee Cooldown Factor]] || || <stuffProps><statFactors><MeleeWeapon_CooldownMultiplier>
 
|-
 
| door opening speed factor || optional || number || [[Property:Door Opening Speed Factor]] || || <stuffProps><statFactors><DoorOpenSpeed>
 
|-
 
| rest effectiveness factor || optional || number || [[Property:Rest Effectiveness Factor]] || || <stuffProps><statFactors><BedRestEffectiveness>
 
|-
 
! colspan="6" style="text-align:left;" | 9. Medical
 
|-
 
| medical potency base || optional || number (displayed as %) || [[Property:Medical Potency Base]] || {{Q|Medical Potency|Description}} || <statBases><MedicalPotency>
 
|-
 
| medical quality max || optional || number (displayed as %) || [[Property:Medical Quality Max]] || {{Q|Medical Tend Quality Maximum|Description}} || <statBases><MedicalQualityMax>
 
|-
 
! colspan="6" style="text-align:left;" | 10. Plant Stats
 
|-
 
! colspan="6" style="text-align:left;" | 11. Ranged Combat
 
|-
 
! colspan="6" style="text-align:left;" | 12. Melee Combat
 
|-
 
! colspan="6" style="text-align:left;" | 13. Creation
 
|-
 
! colspan="6" style="text-align:left;" | 14. Technical
 
|}
 
  
 
== Deprecated positional parameters ==
 
== Deprecated positional parameters ==

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)