Template:Building Stats Table

From RimWorld Wiki
Revision as of 15:13, 11 October 2021 by Cheldra (talk | contribs) (made beauty default to 0)
Jump to navigation Jump to search
Documentation icon Template documentation[view] [edit] [history] [purge]

Description

This template generates a table summarizing stats for a building, including Name, Construction Cost, Beauty, HP, Flammability, Mass, Work To Build and Market Value, for the variety of different materials available for it.

The template will automatically detect the material types applicable to the item using the Stuff Tags variable in the infobox and display them. The item must be stuffable and must have the correct Resource X/Resource X Amount parameters in addition to the Stuff Tags, and Resource 1 must be set to "Stuff".

Note that it will automatically add the appropriate heading.

This template is dependent on Template:Building Stats Table Row.

Parameters

All parameters are optional:

  • First parameter: specifies which building to generate the template for. Defaults = {{PAGENAME}}.
  • header: If set to false no header will be created.
  • header level: Defines the level of the header. Default = 2.

Example usage

Billiards table (quality, recreation, special recreation, header level)

{{Building Stats Table | header level = 4}}

on the Billiards table page would produce:

Material Table

  • Material Stuff cost Beauty Work Mass HP Flammability Market Value
    Wood Wood 0 008,400 ticks (2.33 mins) 163 100% 280 Silver
    Granite blocks Granite blocks 0 072,140 ticks (20.04 mins) 425 0% 490 Silver
    Limestone blocks Limestone blocks 0 072,140 ticks (20.04 mins) 388 0% 490 Silver
    Marble blocks Marble blocks Expression error: Unexpected < operator. 066,140 ticks (18.37 mins) 300 0% 465 Silver
    Sandstone blocks Sandstone blocks 0 060,140 ticks (16.71 mins) 350 0% 445 Silver
    Slate blocks Slate blocks 0 072,140 ticks (20.04 mins) 325 0% 490 Silver
    Jade Jade Expression error: Unexpected < operator. 060,000 ticks (16.67 mins) 125 0% 770 Silver
    Gold Gold Expression error: Unexpected < operator. 010,800 ticks (3 mins) 150 40% 8,195 Silver
    Plasteel Plasteel 0 026,400 ticks (7.33 mins) 700 0% 970 Silver
    Silver Silver Expression error: Unexpected < operator. 012,000 ticks (3.33 mins) 175 40% 1,000 Silver
    Steel Steel 0 012,000 ticks (3.33 mins) 250 40% 350 Silver
    Uranium Uranium 0 022,800 ticks (6.33 mins) 625 0% 720 Silver
    Assuming Normal quality, for the effect of other qualities, see Quality.
  • Bed (quality, comfort, no header)

    {{Building Stats Table | Bed | header = false}}}
    

    on any page would produce:

    Material Table

  • Material Stuff cost Beauty Work Mass HP Flammability Market Value
    Wood Wood Expression error: Unexpected < operator. 000,560 ticks (9.33 secs) 91 100% 56 Silver
    Granite blocks Granite blocks Expression error: Unexpected < operator. 004,940 ticks (1.37 mins) 238 0% 58 Silver
    Limestone blocks Limestone blocks Expression error: Unexpected < operator. 004,940 ticks (1.37 mins) 217 0% 58 Silver
    Marble blocks Marble blocks Expression error: Unexpected < operator. 004,540 ticks (1.26 mins) 168 0% 57 Silver
    Sandstone blocks Sandstone blocks Expression error: Unexpected < operator. 004,140 ticks (1.15 mins) 196 0% 55 Silver
    Slate blocks Slate blocks Expression error: Unexpected < operator. 004,940 ticks (1.37 mins) 182 0% 58 Silver
    Jade Jade Expression error: Unexpected < operator. 004,000 ticks (1.11 mins) 70 0% 240 Silver
    Gold Gold Expression error: Unexpected < operator. 000,720 ticks (12 secs) 84 40% 4,505 Silver
    Plasteel Plasteel Expression error: Unexpected < operator. 001,760 ticks (29.33 secs) 392 0% 410 Silver
    Silver Silver Expression error: Unexpected < operator. 000,800 ticks (13.33 secs) 98 40% 455 Silver
    Steel Steel Expression error: Unexpected < operator. 000,800 ticks (13.33 secs) 140 40% 88 Silver
    Uranium Uranium Expression error: Unexpected < operator. 001,520 ticks (25.33 secs) 350 0% 275 Silver
    Assuming Normal quality, for the effect of other qualities, see Quality.
  • Autodoor (no quality, terrain affordance, door opening speed, no header)

    {{Building Stats Table | Autodoor | header = false}}
    

    on any page would produce:

    Material Table

  • Material Stuff cost Beauty Work Mass HP Flammability Door Speed Market Value
    Wood Wood 0 000,770 ticks (12.83 secs) 104 100% 480% 173 Silver
    Granite blocks Granite blocks 0 006,740 ticks (1.87 mins) 272 0% 180% 187 Silver
    Limestone blocks Limestone blocks 0 006,740 ticks (1.87 mins) 248 0% 180% 187 Silver
    Marble blocks Marble blocks Expression error: Unexpected < operator. 006,190 ticks (1.72 mins) 192 0% 180% 185 Silver
    Sandstone blocks Sandstone blocks 0 005,640 ticks (1.57 mins) 224 0% 180% 183 Silver
    Slate blocks Slate blocks 0 006,740 ticks (1.87 mins) 208 0% 180% 187 Silver
    Jade Jade Expression error: Unexpected < operator. 005,500 ticks (1.53 mins) 80 0% 400% 285 Silver
    Gold Gold Expression error: Unexpected < operator. 000,990 ticks (16.5 secs) 96 40% 400% 2,645 Silver
    Plasteel Plasteel 0 002,420 ticks (40.33 secs) 448 0% 400% 375 Silver
    Silver Silver Expression error: Unexpected < operator. 001,100 ticks (18.33 secs) 112 40% 400% 395 Silver
    Steel Steel 0 001,100 ticks (18.33 secs) 160 40% 400% 192 Silver
    Uranium Uranium 0 002,090 ticks (34.83 secs) 400 0% 300% 295 Silver
    Assuming Normal quality, for the effect of other qualities, see Quality.
  • Spike trap (no quality, negative beauty, special properties, no header)

    {{Building Stats Table | Spike trap | header = false}}
    

    on any page would produce:

    Material Table

  • Material Stuff cost Beauty Work Mass HP Flammability Market Value
    Wood Wood -18 002,240 ticks (37.33 secs) 26 100% 40 8 12% 62 Silver
    Granite blocks Granite blocks -18 019,340 ticks (5.37 mins) 68 0% 65 13 19.5% 110 Silver
    Limestone blocks Limestone blocks -18 019,340 ticks (5.37 mins) 62 0% 60 12 18% 110 Silver
    Marble blocks Marble blocks -17 017,740 ticks (4.93 mins) 48 0% 60 12 18% 104 Silver
    Sandstone blocks Sandstone blocks -18 016,140 ticks (4.48 mins) 56 0% 50 10 15% 99 Silver
    Slate blocks Slate blocks -18 019,340 ticks (5.37 mins) 52 0% 60 12 18% 110 Silver
    Jade Jade -8 016,000 ticks (4.44 mins) 20 0% 100 20 30% 285 Silver
    Gold Gold Expression error: Unexpected < operator. 002,880 ticks (48 secs) 24 40% 75 15 22.5% 4,510 Silver
    Plasteel Plasteel -18 007,040 ticks (1.96 mins) 112 0% 110 22 33% 430 Silver
    Silver Silver -12 003,200 ticks (53.33 secs) 28 40% 85 17 25.5% 460 Silver
    Steel Steel -18 003,200 ticks (53.33 secs) 40 40% 100 20 30% 97 Silver
    Uranium Uranium -18 006,080 ticks (1.69 mins) 100 0% 110 22 33% 290 Silver
    Assuming Normal quality, for the effect of other qualities, see Quality.