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
 +
 +
|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 169: Line 177:
  
 
<!-- 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 256:
  
 
<!--Undocumented parameters -->
 
<!--Undocumented parameters -->
 +
|deterioration =
 
|is exotic species =
 
|is exotic species =
 
|petness =
 
|petness =
Line 280: Line 290:
  
 
{| class="wikitable mw-collapsible mw-collapsed"
 
{| class="wikitable mw-collapsible mw-collapsed"
! Parameter !! Dependencies !! Type/Unit !! Property !! Description !! xml-tag
+
! Parameter !! Dependencies !! Type !! Property !! Description !! xml-tag
 
|-
 
|-
 
! colspan="6" style="text-align:left;" | 0. Testing
 
! 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. || –
+
| set property || optional || bool || – || 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
 
! colspan="6" style="text-align:left;" | 1. Head
Line 290: Line 300:
 
| <1> || optional || One of:  
 
| <1> || optional || One of:  
 
* animal
 
* animal
 +
* plant
 +
* weapon
 
* area
 
* area
* drug
+
* structure
* exotic
+
* production
 +
* security
 +
* furniture
 
* fabric
 
* fabric
* food
 
* furniture
 
 
* leathery
 
* leathery
* medicine
 
 
* metallic
 
* metallic
* plant
 
* production
 
* resource
 
* security
 
 
* stony
 
* stony
* structure
+
| – || sets the color || –
* 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>
 
| name || optional || pagename || [[Property:Name]] || Title of the infobox. Defaults to current page name if not specified. || <label>
Line 312: Line 317:
 
| image || optional || Picture name.png || [[Property:Image]] || Defaults to name.png. || <graphicData>
 
| 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]. || –
+
| 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>
+
| audio || optional || Audio name.wav || [[Property:Audio]] || So far only used for musical instruments. || <soundPlayInstrument>
 
|-
 
|-
| description || optional || text || [[Property:Description]] || In-game description of the item. || <description>
+
| description || optional || text || In-game description of the item. || <description>
 
|-
 
|-
 
! colspan="6" style="text-align:left;" | 2. Base Stats
 
! 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
 
! 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;" | 4. Apparel
Line 442: Line 372:
 
|-
 
|-
 
! colspan="6" style="text-align:left;" | 9. Medical
 
! 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;" | 10. Plant Stats

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)