Editing Template:Building Stats Table

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 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
 
VARIABLES
 
VARIABLES
-->{{#vardefine:name                 | {{{1| {{PAGENAME}} }}} }}<!--
+
-->{{#vardefine:name         | {{{1| {{PAGENAME}} }}} }}<!--
-->{{#vardefine:beauty               | {{formatnum:{{Q|{{#var:name}}|Beauty Base|0}}|R}} }}<!--
+
-->{{#vardefine:beauty       | {{formatnum:{{Q|{{#var:name}}|Beauty Base|0}}|R}} }}<!--
-->{{#vardefine:comfort             | {{Q|{{#var:name}}|Comfort Base}} }}<!--
+
-->{{#vardefine:comfort     | {{Q|{{#var:name}}|Comfort Base}} }}<!--
-->{{#vardefine:flammability         | {{formatnum:{{Q|{{#var:name}}|Flammability Base}}|R}} }}<!--
+
-->{{#vardefine:flammability | {{formatnum:{{Q|{{#var:name}}|Flammability Base}}|R}} }}<!--
-->{{#vardefine:hasQuality           | {{#ifeq: {{Q|{{#var:name}}|Has Quality}} | true | true}} }}<!-- True if the building has quality
+
-->{{#vardefine:hasQuality   | {{#ifeq: {{Q|{{#var:name}}|Has Quality}} | true | true}} }}<!-- True if the building has quality
-->{{#vardefine:HP                   | {{formatnum:{{Q|{{#var:name}}|Max Hit Points Base}}|R}} }}<!--
+
-->{{#vardefine:HP           | {{formatnum:{{Q|{{#var:name}}|Max Hit Points Base}}|R}} }}<!--
-->{{#vardefine:recreation          | {{Q|{{#var:name}}|Recreation Power}} }}<!--
+
-->{{#vardefine:stuffAmount  | {{Q|{{#var:name}}|Resource 1 Amount}} }}<!--
-->{{#vardefine:restEffectiveness   | {{Q|{{#var:name}}|Rest Effectiveness}} }}<!--
+
-->{{#vardefine:stufftags   | {{lc:{{Q|{{#var:name}}|Stuff Tags}} }} }}<!--
-->{{#vardefine:stufftags            | {{lc:{{Q|{{#var:name}}|Stuff Tags}} }} }}<!--
+
-->{{#vardefine:value        | {{formatnum:{{Q|{{#var:name}}|Market Value Base}}|R}} }}<!--
-->{{#vardefine:surgerySuccess      | {{Q|{{#var:name}}|Surgery Success Chance Factor}} }}<!--
+
-->{{#vardefine:work        | {{formatnum:{{Q|{{#var:name}}|Work To Make}}|R}} }}<!--
 
-->{{#vardefine:useTerrainAffordance | {{#ifeq: {{Q|{{#var:name}}|Terrain Affordance}} | depends on materials | true}} }}<!--
 
-->{{#vardefine:useTerrainAffordance | {{#ifeq: {{Q|{{#var:name}}|Terrain Affordance}} | depends on materials | true}} }}<!--
 
-->{{#vardefine:useWorkToMake        | {{#if: {{Q|{{#var:name}}|Production Facility 1}} | true}} }}<!--
 
-->{{#vardefine:useWorkToMake        | {{#if: {{Q|{{#var:name}}|Production Facility 1}} | true}} }}<!--
-->{{#vardefine:value                | {{formatnum:{{Q|{{#var:name}}|Market Value Base}}|R}} }}<!--
+
-->{{#vardefine:defaultMaterial      | {{#if:{{#var:stufftags}} | {{#if:{{#pos:{{#var:stufftags}}|metallic}}|Steel| {{#if:{{#pos:{{#var:stufftags}}|woody}}|Wood| {{#if:{{#pos:{{#var:stufftags}}|fabric}}|Cloth| {{#if:{{#pos:{{#var:stufftags}}|leathery}}|Patchleather| {{#if:{{#pos:{{#var:stufftags}}|stony}}|Limestone blocks}} }} }} }} }} }} }}<!-- Select the material that is shown when the material is collapsed.
-->{{#vardefine:work                | {{formatnum:{{Q|{{#var:name}}|Work To Make}}|R}} }}<!--
 
  
HEADER
+
HEADER and CONTROL PANEL
-->{{#switch: {{{header|true}}} | true = <h{{{header level|2}}}> Stats table </h{{{header level|2}}}> }}<!--
+
-->{{#switch: {{{header|true}}} | true = <h{{{header level|2}}}> Stats table </h{{{header level|2}}}> }}
 
+
{{#if: {{#var:hasQuality}} |<table class=wikitable>
CONTROL PANEL
 
-->{{#if: {{#var:hasQuality}} | {{#if: {{#var:stufftags}} |<table {{STDT|any}}>
 
 
<tr><th> Feature </th><th> Toggle </th></tr>
 
<tr><th> Feature </th><th> Toggle </th></tr>
{{Control Panel|Quality{{#replace:{{#replace:{{#replace:{{#var:name}}|<nowiki> </nowiki>}}|(}}|)}}|label = [[Quality]]}}
+
{{Control Panel|Quality{{#replace:{{#var:name}} |<nowiki> </nowiki>}}|label = [[Quality]]}}
</table>}} }}<!--
+
</table>}}<!--
  
 
MAIN TABLE HEADERS
 
MAIN TABLE HEADERS
 
--><div><li style="display: inline-table;">
 
--><div><li style="display: inline-table;">
 
{| {{STDT|sortable c_01 text-right}}
 
{| {{STDT|sortable c_01 text-right}}
! colspan="{{#if:{{#var:hasQuality}}|{{#if:{{#var:stufftags}}|2|1}}|1}}" | {{Icon Small|{{#var:name}}|32}} {{#var:name}}
+
! colspan="{{#if:{{#var:hasQuality}}|2|1}}" | {{Icon Small|{{#var:name}}|32}} {{#var:name}}
 
! rowspan="2" data-sort-type="number" | Beauty<!--
 
! rowspan="2" data-sort-type="number" | Beauty<!--
 
-->{{#if: {{#var:comfort}} |  
 
-->{{#if: {{#var:comfort}} |  
!! rowspan="2" data-sort-type="number" {{!}} Comfort}}<!--
+
!! rowspan="2" data-sort-type="number" {{!}} Comfort}}
-->{{#if: {{#var:restEffectiveness}} |
 
!! rowspan="2" data-sort-type="number" {{!}} Rest<br/>effectiveness<br/>{{Ref label|Rest|A|A}} }}<!--
 
-->{{#if: {{#var:surgerySuccess}} |
 
!! rowspan="2" data-sort-type="number" {{!}} Surgery<br/>success<br/>chance<br/>factor {{Ref label|Surgery|B|B}} }}<!--
 
-->{{#if: {{#var:recreation}} |
 
!! rowspan="2" data-sort-type="number" {{!}} Recreation<br/>power}}
 
 
! rowspan="2" data-sort-type="number" | Work to Build
 
! rowspan="2" data-sort-type="number" | Work to Build
 
! rowspan="2" data-sort-type="number" | HP
 
! rowspan="2" data-sort-type="number" | HP
Line 53: Line 44:
 
AWFUL and POOR QUALITY
 
AWFUL and POOR QUALITY
 
-->{{#if:{{#var:hasQuality}}
 
-->{{#if:{{#var:hasQuality}}
   | {{#if:{{#var:stufftags}}{{#vardefine:quality|Awful}}{{#vardefine:qualitySort|0}}{{#vardefine:beautyFactor|-0.1}}{{#vardefine:comfortFactor|0.76}}{{#vardefine:recreationFactor|0.76}}{{#vardefine:restFactor|0.86}}{{#vardefine:surgeryFactor|0.9}}{{#vardefine:recreationFactor|0.76}}
+
   | {{#if:{{#var:stufftags}}{{#vardefine:quality|Awful}}{{#vardefine:beautyFactor|-0.1}}{{#vardefine:comfortFactor|0.76}}{{#vardefine:restFactor|0.86}}{{#vardefine:surgeryFactor|0.9}}{{#vardefine:recreationFactor|0.76}}
     | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}}   || [[Stuff Category::Leathery]]   OR}}
+
     | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}     || [[Stuff Category::Fabric]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}   || [[Stuff Category::Fabric]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}     || [[Stuff Category::Woody]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}   || [[Stuff Category::Woody]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}     || [[Stuff Category::Stony]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}   || [[Stuff Category::Stony]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}}   || [[Stuff Category::Metallic]]  OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]]
              {{#ifeq: | {{#pos:{{#var:stufftags}}|bioferrite}} || [[Stuff Category::Bioferrite]] OR}}[[Stuff Category::PLACEHOLDER]]
 
 
       | format = template
 
       | format = template
       | template = Building Stats Table Row
+
       | template = Building Material Table Row
 
       | link = none}}
 
       | link = none}}
     | {{Building Stats Table Row}}
+
     | {{Building Material Table Row}}
 
   }}
 
   }}
   {{#if:{{#var:stufftags}}{{#vardefine:quality|Poor}}{{#vardefine:qualitySort|1}}{{#vardefine:beautyFactor|0.5}}{{#vardefine:comfortFactor|0.88}}{{#vardefine:recreationFactor|0.88}}{{#vardefine:restFactor|0.92}}{{#vardefine:surgeryFactor|0.95}}{{#vardefine:recreationFactor|0.88}}
+
   {{#if:{{#var:stufftags}}{{#vardefine:quality|Poor}}{{#vardefine:quality|Awful}}{{#vardefine:beautyFactor|0.5}}{{#vardefine:comfortFactor|0.88}}{{#vardefine:restFactor|0.92}}{{#vardefine:surgeryFactor|0.95}}{{#vardefine:recreationFactor|0.88}}
     | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}}   || [[Stuff Category::Leathery]]   OR}}
+
     | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}     || [[Stuff Category::Fabric]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}   || [[Stuff Category::Fabric]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}     || [[Stuff Category::Woody]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}   || [[Stuff Category::Woody]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}     || [[Stuff Category::Stony]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}   || [[Stuff Category::Stony]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}}   || [[Stuff Category::Metallic]]  OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]]
              {{#ifeq: | {{#pos:{{#var:stufftags}}|bioferrite}} || [[Stuff Category::Bioferrite]] OR}}[[Stuff Category::PLACEHOLDER]]
 
 
       | format = template
 
       | format = template
       | template = Building Stats Table Row
+
       | template = Building Material Table Row
 
       | link = none}}
 
       | link = none}}
     | {{Building Stats Table Row}}
+
     | {{Building Material Table Row}}
 
   }}
 
   }}
 
}}<!--
 
}}<!--
  
 
NORMAL QUALITY or NO QUALITY
 
NORMAL QUALITY or NO QUALITY
-->{{#if:{{#var:stufftags}}{{#vardefine:quality|{{#if:{{#var:hasQuality}}|Normal}} }}{{#vardefine:qualitySort|2}}{{#vardefine:beautyFactor|1}}{{#vardefine:comfortFactor|1}}{{#vardefine:recreationFactor|1}}{{#vardefine:restFactor|1}}{{#vardefine:surgeryFactor|1}}{{#vardefine:recreationFactor|1}}
+
-->{{#if:{{#var:stufftags}}{{#vardefine:quality|{{#if:{{#var:hasQuality}}|Normal}} }}{{#vardefine:beautyFactor|1}}{{#vardefine:comfortFactor|1}}{{#vardefine:restFactor|1}}{{#vardefine:surgeryFactor|1}}{{#vardefine:recreationFactor|1}}
    | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}}   || [[Stuff Category::Leathery]]   OR}}
+
  | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}}
              {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}     || [[Stuff Category::Fabric]]     OR}}
+
            {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}   || [[Stuff Category::Fabric]]   OR}}
              {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}     || [[Stuff Category::Woody]]     OR}}
+
            {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}   || [[Stuff Category::Woody]]   OR}}
              {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}     || [[Stuff Category::Stony]]     OR}}
+
            {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}   || [[Stuff Category::Stony]]   OR}}
              {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}}   || [[Stuff Category::Metallic]]  OR}}
+
            {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]]
              {{#ifeq: | {{#pos:{{#var:stufftags}}|bioferrite}} || [[Stuff Category::Bioferrite]] OR}}[[Stuff Category::PLACEHOLDER]]
 
 
     | format = template
 
     | format = template
     | template = Building Stats Table Row
+
     | template = Building Material Table Row
 
     | link = none}}
 
     | link = none}}
   | {{Building Stats Table Row}}
+
   | {{Building Material Table Row}}
 
}}<!--
 
}}<!--
  
 
GOOD, EXCELLENT, MASTERWORK and LEGENDARY QUALITY
 
GOOD, EXCELLENT, MASTERWORK and LEGENDARY QUALITY
 
-->{{#if:{{#var:hasQuality}}
 
-->{{#if:{{#var:hasQuality}}
   | {{#if:{{#var:stufftags}}{{#vardefine:quality|Good}}{{#vardefine:qualitySort|3}}{{#vardefine:beautyFactor|2}}{{#vardefine:comfortFactor|1.12}}{{#vardefine:recreationFactor|1.12}}{{#vardefine:restFactor|1.08}}{{#vardefine:surgeryFactor|1.05}}{{#vardefine:recreationFactor|1.12}}
+
   | {{#if:{{#var:stufftags}}{{#vardefine:quality|Good}}{{#vardefine:beautyFactor|2}}{{#vardefine:comfortFactor|1.12}}{{#vardefine:restFactor|1.08}}{{#vardefine:surgeryFactor|1.05}}{{#vardefine:recreationFactor|1.12}}
     | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}}   || [[Stuff Category::Leathery]]   OR}}
+
     | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}     || [[Stuff Category::Fabric]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}   || [[Stuff Category::Fabric]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}     || [[Stuff Category::Woody]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}   || [[Stuff Category::Woody]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}     || [[Stuff Category::Stony]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}   || [[Stuff Category::Stony]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}}   || [[Stuff Category::Metallic]]  OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]]
              {{#ifeq: | {{#pos:{{#var:stufftags}}|bioferrite}} || [[Stuff Category::Bioferrite]] OR}}[[Stuff Category::PLACEHOLDER]]
 
 
       | format = template
 
       | format = template
       | template = Building Stats Table Row
+
       | template = Building Material Table Row
 
       | link = none}}
 
       | link = none}}
     | {{Building Stats Table Row}}
+
     | {{Building Material Table Row}}
 
   }}
 
   }}
   {{#if:{{#var:stufftags}}{{#vardefine:quality|Excellent}}{{#vardefine:qualitySort|4}}{{#vardefine:beautyFactor|3}}{{#vardefine:comfortFactor|1.24}}{{#vardefine:recreationFactor|1.24}}{{#vardefine:restFactor|1.14}}{{#vardefine:surgeryFactor|1.1}}{{#vardefine:recreationFactor|1.24}}
+
   {{#if:{{#var:stufftags}}{{#vardefine:quality|Excellent}}{{#vardefine:beautyFactor|3}}{{#vardefine:comfortFactor|1.24}}{{#vardefine:restFactor|1.14}}{{#vardefine:surgeryFactor|1.1}}{{#vardefine:recreationFactor|1.24}}
     | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}}   || [[Stuff Category::Leathery]]   OR}}
+
     | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}     || [[Stuff Category::Fabric]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}   || [[Stuff Category::Fabric]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}     || [[Stuff Category::Woody]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}   || [[Stuff Category::Woody]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}     || [[Stuff Category::Stony]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}   || [[Stuff Category::Stony]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}}   || [[Stuff Category::Metallic]]  OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]]
              {{#ifeq: | {{#pos:{{#var:stufftags}}|bioferrite}} || [[Stuff Category::Bioferrite]] OR}}[[Stuff Category::PLACEHOLDER]]
 
 
       | format = template
 
       | format = template
       | template = Building Stats Table Row
+
       | template = Building Material Table Row
 
       | link = none}}
 
       | link = none}}
     | {{Building Stats Table Row}}
+
     | {{Building Material Table Row}}
 
   }}
 
   }}
   {{#if:{{#var:stufftags}}{{#vardefine:quality|Masterwork}}{{#vardefine:qualitySort|5}}{{#vardefine:beautyFactor|5}}{{#vardefine:comfortFactor|1.45}}{{#vardefine:recreationFactor|1.4}}{{#vardefine:restFactor|1.25}}{{#vardefine:surgeryFactor|1.15}}{{#vardefine:recreationFactor|1.4}}
+
   {{#if:{{#var:stufftags}}{{#vardefine:quality|Masterwork}}{{#vardefine:beautyFactor|5}}{{#vardefine:comfortFactor|1.45}}{{#vardefine:restFactor|1.25}}{{#vardefine:surgeryFactor|1.15}}{{#vardefine:recreationFactor|1.4}}
     | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}}   || [[Stuff Category::Leathery]]   OR}}
+
     | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}     || [[Stuff Category::Fabric]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}   || [[Stuff Category::Fabric]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}     || [[Stuff Category::Woody]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}   || [[Stuff Category::Woody]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}     || [[Stuff Category::Stony]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}   || [[Stuff Category::Stony]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}}   || [[Stuff Category::Metallic]]  OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]]
              {{#ifeq: | {{#pos:{{#var:stufftags}}|bioferrite}} || [[Stuff Category::Bioferrite]] OR}}[[Stuff Category::PLACEHOLDER]]
 
 
       | format = template
 
       | format = template
       | template = Building Stats Table Row
+
       | template = Building Material Table Row
 
       | link = none}}
 
       | link = none}}
     | {{Building Stats Table Row}}
+
     | {{Building Material Table Row}}
 
   }}
 
   }}
   {{#if:{{#var:stufftags}}{{#vardefine:quality|Legendary}}{{#vardefine:qualitySort|6}}{{#vardefine:beautyFactor|8}}{{#vardefine:comfortFactor|1.7}}{{#vardefine:recreationFactor|1.8}}{{#vardefine:restFactor|1.6}}{{#vardefine:surgeryFactor|1.3}}{{#vardefine:recreationFactor|1.8}}
+
   {{#if:{{#var:stufftags}}{{#vardefine:quality|Legendary}}{{#vardefine:beautyFactor|8}}{{#vardefine:comfortFactor|1.7}}{{#vardefine:restFactor|1.6}}{{#vardefine:surgeryFactor|1.3}}{{#vardefine:recreationFactor|1.8}}
     | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}}   || [[Stuff Category::Leathery]]   OR}}
+
     | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}     || [[Stuff Category::Fabric]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}}   || [[Stuff Category::Fabric]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}     || [[Stuff Category::Woody]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}   || [[Stuff Category::Woody]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}     || [[Stuff Category::Stony]]     OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}   || [[Stuff Category::Stony]]   OR}}
               {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}}   || [[Stuff Category::Metallic]]  OR}}
+
               {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]]
              {{#ifeq: | {{#pos:{{#var:stufftags}}|bioferrite}} || [[Stuff Category::Bioferrite]] OR}}[[Stuff Category::PLACEHOLDER]]
 
 
       | format = template
 
       | format = template
       | template = Building Stats Table Row
+
       | template = Building Material Table Row
 
       | link = none}}
 
       | link = none}}
     | {{Building Stats Table Row}}
+
     | {{Building Material Table Row}}
 
   }}
 
   }}
 
}}
 
}}
 
|}
 
|}
</li></div>{{#if: {{#var:restEffectiveness}} |
+
</li></div></includeonly><noinclude>{{Move|destination=Template:Building Stats Table|reason=Standardization with [[Template: Weapon Stats Table]]}}{{Merge|destination=Template talk:Building Material Table{{!}}See talk page|reason=When quality is implemented, overlaps with other templates. See talk page.}}
:{{Note label|Rest|A|A}} Bracketed numbers are in-game hours to refill [[rest]] to 100% from 0% at the given rest effectiveness.
 
}}{{#if: {{#var:surgerySuccess}} |
 
:{{Note label|Surgery|B|B}} This assumes the {{lc: {{#var:name}} }} is inside a clean, properly lit room{{#if:{{#pos:{{Q|{{#var:name}}|Facility}} | Vitals monitor}} | <nowiki> </nowiki>without a [[vitals monitor]]}}. For the full effects of light, cleanliness{{#if:{{#pos:{{Q|{{#var:name}}|Facility}} | Vitals monitor}} | , a vitals monitor}} and placing a {{lc: {{#var:name}} }} outside see [[Surgery Success Chance Factor]].
 
}}</includeonly><noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

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)