Template:Infobox main/doc
This page has been suggested for recoding. Reason: Doesn't play nice with skins - font color changes, but not background. Background either needs to be transparent or use color from skin.. You can help RimWorld Wiki by improving it. |
Intro
Template:Infobox main Is the core of what powers the SemanticMediaWiki database of rimworld objects. Since the template is so complex, it's worth taking a step back and summarizing what this template does:
- Takes in facts: On each page which describes an in-game object, we call
{{infobox main | ...}}
, where...
is a very long list of parameters describing the object in question, including its name, type, the cost to make it, and a bunch of other things - Rendering an infobox: This template takes those parameters and presents them in a nice looking infobox on the right side of the page. If you add a param
|marketvalue = 200
, this template will add a line to the infobox showing the market value annotated with a silver icon. Cool! - Setting SMW properties: The real magic comes from this templates ability to also set SMW properties. If the
|marketvalue = 200
param is present, this template will also set a SMW property 'Market Value Base' equal to 200 for whatever page the infobox was called on.
As an example, say there was an Page called "Foo" for an in-game object with the same name. In-game, a foo has a market value of 200. When you invoke {{infobox main | ... | marketvalue = 200 | ...
, this template will set the 'Market Value Base' property of the 'Foo' page to 200.
These properties can then be retrieved using a snippet like {{#show:Foo|?Market Value Base}}
. You can browse the properties for a given page by clicking the "Browse properties" link on the left side of the page. For an example, see Special:Browse/:Duster
Positional parameters
This template also takes one (and only one -- all others are ignored) positional parameter that specifies the type of infobox styling to use (primarily: to set the color of the infobox based on object type)
Usage
This section is a stub. You can help RimWorld Wiki by expanding it. Reason: Add Bandwidth and combat power. |
- Everything is optional for the template to function; however, relevant sections should be filled in for the sake of completeness. The information displayed is dependent on which category is used, and will not be displayed unless a value is provided.
- You can add a "name" and "image". Fill these values if the PAGENAME macro is not adequate (if the page name has a disambig qualifier for example)
Parameter List
Parameter | Dependencies | Type/Unit | Property | Description | Expandxml-tag |
---|
Deprecated positional parameters
This template used to take in up to 4 positional parameters, often accomplish relatively hacky things. As of now this template only takes ONE positional parameter -- all others are ignored.
- (still in use)
- DEPRECATED: Extra CSS class to be applied to the infobox div.
- DEPRECATED: Used to be extra params passed to the image layout in the infobox. Superseded by the imagesize= param
- DEPRECATED: Overly clever use of the size parameter. The usual format is |size = X|Y. This then gets transformed into x * y. BUT it only works if you have 3 positional parameters prior to the first param.
Example #1
Muffalo
A large herding herbivore descended from buffalo and adapted for both cold and warm environments. While enraged muffalo are deadly, tamed muffalo are quite docile and can be used as pack animals.
Nobody is quite sure why they're blue - it might even be some early genetic modification test that just never got changed.
Base Stats
- Type
- Animal
- Flammability
- 70%
Pawn Stats
- Move Speed
- 4.5 c/s
- Health Scale
- 175% HP
- Body Size
- 2.4
- Mass - Baby
- 28.8 kg
- Mass - Juvenile
- 72 kg
- Mass - Adult
- 144 kg
- Pack Capacity
- 84 kg
- Carrying Capacity
- 180
- Filth Rate
- 16
- Hunger Rate
- 0.86 Nutrition/Day
- Diet
- herbivorous
- Life Expectancy
- 15 years
- Manhunter Chance
- 10%
- Manhunter Chance (Taming)
- 0%
- Trainable Intelligence
- None
- Wildness
- 60%
- Minimum Handling Skill
- 5
- Roam Interval
- 2 days
- Mate Interval
- 12 hours
- Maturity Age
- 0.333 years (20 days)
- Juvenile Age
- 0.25 years (15 days)
- Comfortable Temp Range
- -55 °C – 45 °C (-67 °F – 113 °F)
Production
- Meat Yield
336 muffalo meat
- Leather Yield
96 bluefur
- Wool Amount
120 muffalo wool
- Shearing Interval
- 15 days
- Gestation Period
- 6.66 days
- Offspring Per Birth
- 1
Melee Combat
- Attack 1
- Head
13 dmg (Blunt)
19 % AP
2.6 second cooldown - Attack 2
- Front left leg
10 dmg (Blunt)
15 % AP
2 second cooldown - Attack 3
- Front left leg
10 dmg (Poke)
15 % AP
2 second cooldown - Attack 4
- Front right leg
10 dmg (Blunt)
15 % AP
2 second cooldown - Attack 5
- Front right leg
10 dmg (Poke)
15 % AP
2 second cooldown - Attack 6
- Teeth
10 dmg (Bite)
15 % AP
2 second cooldown
0.5 chance factor - Average DPS
- 3.1
{{Infobox main|animal | name = Muffalo | image = Muffalo east.png | description = A large herding herbivore descended from buffalo and adapted for both cold and warm environments. While enraged muffalo are deadly, tamed muffalo are quite docile and can be used as pack animals.<br/>Nobody is quite sure why they're blue - it might even be some early genetic modification test that just never got changed. | type = Animal | movespeed = 4.5 | min comfortable temperature = -55 | max comfortable temperature = 45 | flammability = 0.7 | marketvalue = 300 | filth rate = 16 | woolname = muffalo wool | sheartime = 15 | wool = 120 | herdanimal = true | bodysize = 2.4 | healthscale = 1.75 | hungerrate = 0.535 | diet = herbivorous | leathername = bluefur | wildness = 0.6 | manhuntertame = 0 | manhunter = 0.1 | roamMtb = 2 | trainable = none | mateMtb = 12 | packanimal = true | gestation = 6.66 | offspring = 1 | lifespan = 15 | juvenileage = 0.25 | maturityage = 0.3333 | tradeTags = AnimalFarm, AnimalCommon | attack1dmg = 13 | attack1type = Blunt | attack1cool = 2.6 | attack1part = head | attack2dmg = 10 | attack2type = Blunt | attack2cool = 2 | attack2part = front left leg | attack3dmg = 10 | attack3type = Poke | attack3cool = 2 | attack3part = front left leg | attack4dmg = 10 | attack4type = Blunt | attack4cool = 2 | attack4part = front right leg | attack5dmg = 10 | attack5type = Poke | attack5cool = 2 | attack5part = front right leg | attack6dmg = 10 | attack6type = Bite | attack6cool = 2 | attack6part = teeth | attack6chancefactor = 0.5 | livesin_temperateforest = 0.5 | livesin_temperateswamp = 0.5 | livesin_borealforest = 0.5 | livesin_tundra = 2 | livesin_coldbog = 0.5 | livesin_icesheet = 0.1 | livesin_seaice = 0.1 }}
Example #2
Autopistol
An ancient pattern blowback-operated self-loading pistol. It lacks stopping power and range, but is quick to fire.
Base Stats
- Tech Level
- Industrial
- Weapon Class
- Industrial
- Mass
- 1.2 kg
Ranged Combat
- Mode
- Single-Shot
- Damage
- 10 dmg (Bullet)
- Armor penetration
- 15%
- Warm-Up
- 18 ticks (0.3 secs)
- Cooldown
- 60 ticks (1 sec)
- Range
- 25.9 tile(s)
- Accuracy
- 80% - 70% - 40% - 30%
- Velocity
- 55 (m/s)
- Burst Count
- 1 (per burst)
- DPS
- 7.69
- Stopping power
- 0.5
Melee Combat
- Average DPS
- 2.79
- Melee Attack 1
- Grip
9 dmg (Blunt)
13% AP
2.0 seconds cooldown - Melee Attack 2
- Barrel
9 dmg (Blunt)
13% AP
2.0 seconds cooldown - Melee Attack 3
- Barrel
9 dmg (Poke)
13% AP
2.0 seconds cooldown
Creation
- Required Research
- Blowback operation
- Skill Required
- Crafting 4
- Work To Make
- 5,000 ticks (1.39 mins)
{{Infobox main|weapon | name = Autopistol | image = Autopistol.png | description = An ancient pattern blowback-operated self-loading pistol. It lacks stopping power and range, but is quick to fire. | type = Equipment | type2 = Weapons | tech level = Industrial | class = Industrial | damage = 10 | damage type = Bullet | armorPenetration = 15 | range = 25.9 | work to make = 5000 | accuracyTouch = 80 | accuracyShort = 70 | accuracyMedium = 40 | accuracyLong = 30 | accuracyAvg = 65 | mode = Single-Shot | warmup = 18 | cooldown = 60 | burst = 1 | DPS = DPS | velocity = 55 | production facility 1 = Machining table | research = Blowback operation | resource 1 = Steel | resource 1 amount = 30 | resource 2 = Component | resource 2 amount = 2 | marketvalue = 139 | mass base = 1.2 | stoppingPower = 0.5 | meleeattack1dmg = 9 | meleeattack1type = blunt | meleeattack1part = Grip | meleeattack1cool = 2.0 | meleeattack1ap = 13 | meleeattack2dmg = 9 | meleeattack2type = blunt | meleeattack2part = Barrel | meleeattack2cool = 2.0 | meleeattack2ap = 13 | meleeattack3dmg = 9 | meleeattack3type = Poke | meleeattack3part = Barrel | meleeattack3cool = 2.0 | meleeattack3ap = 13 | MeleeWeaponAverageDPS = 4.5 | MeleeWeaponAverageAP = 13 | page verified for version = | skill 1 = Crafting | skill 1 level = 4 | has quality = True | weaponTags = Gun, SimpleGun }}
Example #3
Art bench
A workbench equipped for creating art.
Base Stats
- Type
- Building – Production
- Mass
- 20 kg
- HP
- 180
- Flammability
- 100%
- Path Cost
- 50 (21%)
Building
- Size
- 3 × 1
- Minifiable
- True
- Placeable
- True
- Passability
- pass through only
- Cover Effectiveness
- 50%
- Terrain Affordance
- Medium
- Cleanliness
- -5
- Facility
- Tool cabinet
Creation
- Work To Make
- 2,500 ticks (41.67 secs)
- Stuff Tags
- Metallic, Woody
{{Infobox main|production | name = Art bench | image = TableSculpting.png | imagesize = 192px | description = A workbench equipped for creating art. | type = Building | type2 = Production | hp = 180 | mass base = 20 | flammability = 1 | path cost = 50 <!-- Building --> | cleanliness = -5 | passability = pass through only | cover = 0.5 | minifiable = true | placeable = true | size = 3 ˣ 1 | sell price factor = 0.7 | terrain affordance = medium | facility = tool cabinet <!-- Creation --> | work to make = 2500 | stuff tags = Metallic, Woody | resource 1 = Stuff | resource 1 amount = 75 | resource 2 = Steel | resource 2 amount = 50 <!-- Technical --> | page verified for version = 1.2.2900 }}
Example #4
Scorcher
A close-approach war mechanoid that specializes in incendiary attacks. Its flame burst attack has little reach, but once it closes on a group of defenders it can ignite and disrupt them with blasts of searing flame.
Base Stats
- Type
- Mechanoid
- Flammability
- 0%
Armor
- Armor - Sharp
- 40%
- Armor - Blunt
- 20%
- Armor - Heat
- 200%
Pawn Stats
- Move Speed
- 4.5 c/s
- Health Scale
- 70% HP
- Body Size
- 1
- Mass
- 60 kg
- Pack Capacity
- 35 kg
- Carrying Capacity
- 75
- Filth Rate
- 1
- Comfortable Temp Range
- -100 °C – 250 °C (-148 °F – 482 °F)
Melee Combat
- Attack 1
- Front left leg
12 dmg (Blunt)
18 % AP
2 second cooldown - Attack 2
- Front right leg
12 dmg (Blunt)
18 % AP
2 second cooldown - Attack 3
- Head
8.5 dmg (Blunt)
13 % AP
2 second cooldown
0.2 chance factor - Average DPS
- 3.72
Creation
- Required Research
- Standard mechtech
- Gestation Cycles
- 2
{{Infobox main|none | name = Scorcher | image = Scorcher east.png | description = A close-approach war mechanoid that specializes in incendiary attacks. Its flame burst attack has little reach, but once it closes on a group of defenders it can ignite and disrupt them with blasts of searing flame. | type = Mechanoid | movespeed = 4.5 | flammability = 0 | marketvalue = 1200 | armorblunt = 20 | armorsharp = 40 | armorheat = 200 | min comfortable temperature = -100 | max comfortable temperature = 250 | bandwidth = 1 | bodysize = 1 | healthscale = 0.7 | lifespan = | attack1dmg = 12 | attack1type = Blunt | attack1cool = 2 | attack1part = Front left leg | attack2dmg = 12 | attack2type = Blunt | attack2cool = 2 | attack2part = Front right leg | attack3dmg = 8.5 | attack3type = Blunt | attack3cool = 2 | attack3part = head | attack3chancefactor = 0.2 | page verified for version = 1.4.3525 | weaponTags = MechanoidGunMiniFlameblaster <!-- Creation --> | research = Standard mechtech | production facility 1 = Large mech gestator | gestation cycles = 2 | resource 1 = Steel | resource 1 amount = 80 | resource 2 = Plasteel | resource 2 amount = 32 | resource 3 = Component | resource 3 amount = 3 | resource 4 = Standard subcore | resource 4 amount = 1 }}
Example #5
Button-down shirt
A nice-looking collared shirt with buttons.
Base Stats
Apparel
- Insulation Factor - Cold
- 0.26×
- Insulation Factor - Heat
- 0.1×
- Armor Factor - Sharp
- 0.2
- Armor Factor - Blunt
- 0.2
- Armor Factor - Heat
- 0.2
- Clothing For Nudity
- True
- Coverage
- Torso, Neck, Left Shoulder, Left Arm, Right Shoulder, Right Arm
- Layer
- Skin
- Lifestage
- Adult
Creation
- Required Research
- Complex clothing
- Work To Make
- 2,700 ticks (45 secs)
- Stuff Tags
- Leathery, Fabric
{{Infobox main | name = Button-down shirt | image = Button-Down_Shirt.png | description = A nice-looking collared shirt with buttons. | type = Gear | type2 = Clothing | tech level = Medieval | hp = 100 | production facility 1 = Hand tailor bench | production facility 2 = Electric tailor bench | research = Complex clothing | work to make = 2700 | resource 1 = Stuff | resource 1 amount = 45 | stuff tags = Leathery, Fabric | insulationheatfactor = 0.1 | insulationcoldfactor = 0.26 | armorsharpfactor = 0.2 | armorbluntfactor = 0.2 | armorheatfactor = 0.2 | lifestage = Adult | clothing for nudity = true | coverage = Torso, Neck, Left Shoulder, Left Arm, Right Shoulder, Right Arm | layer = Skin | mass base = 0.3 | thingCategories = Apparel | tags = IndustrialBasic | defaultOutfitTags = Worker, Soldier
Example #6
Chemfuel powered generator
Produces power by consuming chemfuel. Must be periodically refueled by hand.
Base Stats
Building
- Size
- 2 × 2
- Minifiable
- False
- Placeable
- True
- Passability
- pass through only
- Cover Effectiveness
- 75%
- Blocks Wind
- True
- Terrain Affordance
- Medium
- Power
- 1000 W
- Light Radius
- 3.49
- Heat Per Second
- 6
Creation
- Required Research
- Electricity
- Skill Required
- Construction 6
- Work To Make
- 2,500 ticks (41.67 secs)
{{infobox main|building| | name = Chemfuel powered generator | image = Chemfuel_powered_generator.png|128px | description = Produces power by consuming chemfuel. Must be periodically refueled by hand. | type = Building | type2 = Power | marketvalue = 139 | placeable = true | path cost = 50 | passability = pass through only | blockswind = true | cover = 1 | minifiable = false | size = 2 ˣ 2 | flammability = 1 | hp = 300 | beauty = -20 | power = 1000 | glowradius = 6 | glowcolor = (80, 112, 180) | heatpersecond = 6 | terrain affordance = medium | research = Electricity | skill 1 = Construction | skill 1 level = 6 | work to make = 2500 | resource 1 = Steel | resource 1 amount = 100 | resource 2 = Component | resource 2 amount = 3