Difference between revisions of "Template:Infobox main/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Added walkSpeed and damage to the documentation. Updated Muffalo example to 0.6.532 and added new values.)
(Added mobdamage2 to documentation.)
Line 14: Line 14:
 
|hp = use for health/strength
 
|hp = use for health/strength
 
|walkSpeed = use for base movement speed
 
|walkSpeed = use for base movement speed
|mobdamage = use for base damage (Attack Name - Value)
+
|mobdamage = use for base attack damage (Attack Name - Value)
 +
|mobdamage2 = use for secondary attack damage (Attack Name - Value)
 
|speed = use for tiles  
 
|speed = use for tiles  
 
|time = use for plants lifespan (measured in days)
 
|time = use for plants lifespan (measured in days)

Revision as of 21:46, 19 August 2014

Usage

  • Everything is optional;
  • 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)
{{infobox main| (animal/plant/weapon/area/structure/building/security/furniture) - used for color theme | additional styles (optional)
|name = use for item header 
|image = picture name.(jpg/png)| variables such as size, alt text (optional)
|info = use for short description
|type = use for main category 
|type2 = use for subcategory (optional)
|placeable = Yes/No
|size = two values, separated by | - (1|2)
|hp = use for health/strength
|walkSpeed = use for base movement speed
|mobdamage = use for base attack damage (Attack Name - Value)
|mobdamage2 = use for secondary attack damage (Attack Name - Value)
|speed = use for tiles 
|time = use for plants lifespan (measured in days)
|yield = use for food-plants
|wood = use for how much wood plants give when cut
|power = use for power input/output (+/-)

## Don't copy this line ###Weapons part###
|class = Neolithic/Modern/Advanced
|damage = use for weapon damage
|range = used for weapon range
|area = used for explosive area
|accuracy = use for weapon accuracy 
|mode = Single-Shot/Burst
|burst = shots per burst
|warmup = use for warm-up time of weapon (in ticks)
|cooldown = use for cooldown time of weapon (in ticks)
|missRadius = use for miss radius of weapon
|blastRadius = use for blast radius of explosive weapons
|DPS = use for DPS of weapon
## Don't copy this line ##################

|buy = use for price {{icon|type|amount}} more info at Template:Icon
|sell = use for price {{icon|type|amount}} more info at Template:Icon
}}


Example #1

Muffalo

Base Stats

Type
Animals
HP
160

{{infobox main|animal|pull-left
|name = Muffalo
|image = Animal Muffalo side.png|200px{{!}}Muffalo
|info = A large herding herbivore descended from buffalo and adapted for some exotic environment. Peaceful unless disturbed.
|type = Animals
|placeable =
|hp = 160
|walkSpeed = 0.47
|mobdamage = Bludgeon - 10
|buy = {{icon|bmeat|1}}
|sell= {{icon|smeat|2}}
}}

Example #2

Pistol

Base Stats

Type
EquipmentWeapons
Weapon Class
Modern

Ranged Combat

Mode
Single-Shot
Damage
10 dmg
Warm-Up
170 ticks (2.83 secs)
Cooldown
40 ticks (0.67 secs)
Range
24 tile(s)
Accuracy
91%-71%-50%-32%
Velocity
44 (m/s)
Burst Count
1 (per burst)
Miss Radius
- tile(s)
Blast Radius
-
DPS
2.86

{{infobox main|weapon|pull-left
|name = Pistol
|image = Equipment Pistol.png|Pistol
|type = Equipment
|type2 = Weapons
|info = "Ancient pattern automatic pistol. Weak and short range, but quick."
|class = Modern
|damage = 10
|range = 24
|accuracy = 91%-71%-50%-32%
|mode = Single-Shot
|warmup = 170
|cooldown = 40
|missRadius = -
|blastRadius = -
|DPS = 3.13
|velocity = 44
|burst = 1
|buy  = {{icon|silver|175}}
}}