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 10: | Line 10: | ||
-->{{#vardefine:restEffectiveness | {{Q|{{#var:name}}|Rest Effectiveness}} }}<!-- | -->{{#vardefine:restEffectiveness | {{Q|{{#var:name}}|Rest Effectiveness}} }}<!-- | ||
-->{{#vardefine:stufftags | {{lc:{{Q|{{#var:name}}|Stuff Tags}} }} }}<!-- | -->{{#vardefine:stufftags | {{lc:{{Q|{{#var:name}}|Stuff Tags}} }} }}<!-- | ||
− | |||
-->{{#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}} }}<!-- | ||
Line 16: | Line 15: | ||
-->{{#vardefine:work | {{formatnum:{{Q|{{#var:name}}|Work To Make}}|R}} }}<!-- | -->{{#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}} | {{#if: {{#var:stufftags}} |<table class=wikitable> | |
− | |||
− | |||
<tr><th> Feature </th><th> Toggle </th></tr> | <tr><th> Feature </th><th> Toggle </th></tr> | ||
− | {{Control Panel|Quality | + | {{Control Panel|Quality{{#replace:{{#var:name}} |<nowiki> </nowiki>}}|label = [[Quality]]}} |
</table>}} }}<!-- | </table>}} }}<!-- | ||
Line 33: | Line 30: | ||
!! rowspan="2" data-sort-type="number" {{!}} Comfort}}<!-- | !! rowspan="2" data-sort-type="number" {{!}} Comfort}}<!-- | ||
-->{{#if: {{#var:restEffectiveness}} | | -->{{#if: {{#var:restEffectiveness}} | | ||
− | !! rowspan="2" data-sort-type="number" {{!}} Rest<br/>effectiveness | + | !! rowspan="2" data-sort-type="number" {{!}} Rest<br/>effectiveness}}<!-- |
− | |||
− | |||
-->{{#if: {{#var:recreation}} | | -->{{#if: {{#var:recreation}} | | ||
!! rowspan="2" data-sort-type="number" {{!}} Recreation<br/>power}} | !! rowspan="2" data-sort-type="number" {{!}} Recreation<br/>power}} | ||
Line 53: | Line 48: | ||
AWFUL and POOR QUALITY | AWFUL and POOR QUALITY | ||
-->{{#if:{{#var:hasQuality}} | -->{{#if:{{#var:hasQuality}} | ||
− | | {{#if:{{#var:stufftags}}{{#vardefine:quality|Awful | + | | {{#if:{{#var:stufftags}}{{#vardefine:quality|Awful}}{{#vardefine:beautyFactor|-0.1}}{{#vardefine:comfortFactor|0.76}}{{#vardefine:recreationFactor|0.76}}{{#vardefine:restFactor|0.86}}{{#vardefine:surgeryFactor|0.9}}{{#vardefine:recreationFactor|0.76}} |
− | | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} | + | | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} || [[Stuff Category::Fabric]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} || [[Stuff Category::Woody]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} || [[Stuff Category::Stony]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]] |
− | |||
| format = template | | format = template | ||
| template = Building Stats Table Row | | template = Building Stats Table Row | ||
Line 65: | Line 59: | ||
| {{Building Stats Table Row}} | | {{Building Stats Table Row}} | ||
}} | }} | ||
− | {{#if:{{#var:stufftags}}{{#vardefine:quality|Poor | + | {{#if:{{#var:stufftags}}{{#vardefine:quality|Poor}}{{#vardefine:beautyFactor|0.5}}{{#vardefine:comfortFactor|0.88}}{{#vardefine:recreationFactor|0.88}}{{#vardefine:restFactor|0.92}}{{#vardefine:surgeryFactor|0.95}}{{#vardefine:recreationFactor|0.88}} |
− | | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} | + | | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} || [[Stuff Category::Fabric]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} || [[Stuff Category::Woody]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} || [[Stuff Category::Stony]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]] |
− | |||
| format = template | | format = template | ||
| template = Building Stats Table Row | | template = Building Stats Table Row | ||
Line 80: | Line 73: | ||
NORMAL QUALITY or NO QUALITY | NORMAL QUALITY or NO QUALITY | ||
− | -->{{#if:{{#var:stufftags}}{{#vardefine:quality|{{#if:{{#var:hasQuality}}|Normal}} | + | -->{{#if:{{#var:stufftags}}{{#vardefine:quality|{{#if:{{#var:hasQuality}}|Normal}} }}{{#vardefine:beautyFactor|1}}{{#vardefine:comfortFactor|1}}{{#vardefine:recreationFactor|1}}{{#vardefine:restFactor|1}}{{#vardefine:surgeryFactor|1}}{{#vardefine:recreationFactor|1}} |
− | + | | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}} | |
− | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} || [[Stuff Category::Fabric]] OR}} | |
− | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} || [[Stuff Category::Woody]] OR}} | |
− | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} || [[Stuff Category::Stony]] OR}} | |
− | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]] | |
− | |||
| format = template | | format = template | ||
| template = Building Stats Table Row | | template = Building Stats Table Row | ||
Line 95: | Line 87: | ||
GOOD, EXCELLENT, MASTERWORK and LEGENDARY QUALITY | GOOD, EXCELLENT, MASTERWORK and LEGENDARY QUALITY | ||
-->{{#if:{{#var:hasQuality}} | -->{{#if:{{#var:hasQuality}} | ||
− | | {{#if:{{#var:stufftags}}{{#vardefine:quality|Good | + | | {{#if:{{#var:stufftags}}{{#vardefine:quality|Good}}{{#vardefine:beautyFactor|2}}{{#vardefine:comfortFactor|1.12}}{{#vardefine:recreationFactor|1.12}}{{#vardefine:restFactor|1.08}}{{#vardefine:surgeryFactor|1.05}}{{#vardefine:recreationFactor|1.12}} |
− | | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} | + | | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} || [[Stuff Category::Fabric]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} || [[Stuff Category::Woody]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} || [[Stuff Category::Stony]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]] |
− | |||
| format = template | | format = template | ||
| template = Building Stats Table Row | | template = Building Stats Table Row | ||
Line 107: | Line 98: | ||
| {{Building Stats Table Row}} | | {{Building Stats Table Row}} | ||
}} | }} | ||
− | {{#if:{{#var:stufftags}}{{#vardefine:quality|Excellent | + | {{#if:{{#var:stufftags}}{{#vardefine:quality|Excellent}}{{#vardefine:beautyFactor|3}}{{#vardefine:comfortFactor|1.24}}{{#vardefine:recreationFactor|1.24}}{{#vardefine:restFactor|1.14}}{{#vardefine:surgeryFactor|1.1}}{{#vardefine:recreationFactor|1.24}} |
− | | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} | + | | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} || [[Stuff Category::Fabric]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} || [[Stuff Category::Woody]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} || [[Stuff Category::Stony]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]] |
− | |||
| format = template | | format = template | ||
| template = Building Stats Table Row | | template = Building Stats Table Row | ||
Line 119: | Line 109: | ||
| {{Building Stats Table Row}} | | {{Building Stats Table Row}} | ||
}} | }} | ||
− | {{#if:{{#var:stufftags}}{{#vardefine:quality|Masterwork | + | {{#if:{{#var:stufftags}}{{#vardefine:quality|Masterwork}}{{#vardefine:beautyFactor|5}}{{#vardefine:comfortFactor|1.45}}{{#vardefine:recreationFactor|1.4}}{{#vardefine:restFactor|1.25}}{{#vardefine:surgeryFactor|1.15}}{{#vardefine:recreationFactor|1.4}} |
− | | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} | + | | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} || [[Stuff Category::Fabric]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} || [[Stuff Category::Woody]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} || [[Stuff Category::Stony]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]] |
− | |||
| format = template | | format = template | ||
| template = Building Stats Table Row | | template = Building Stats Table Row | ||
Line 131: | Line 120: | ||
| {{Building Stats Table Row}} | | {{Building Stats Table Row}} | ||
}} | }} | ||
− | {{#if:{{#var:stufftags}}{{#vardefine:quality|Legendary | + | {{#if:{{#var:stufftags}}{{#vardefine:quality|Legendary}}{{#vardefine:beautyFactor|8}}{{#vardefine:comfortFactor|1.7}}{{#vardefine:recreationFactor|1.8}}{{#vardefine:restFactor|1.6}}{{#vardefine:surgeryFactor|1.3}}{{#vardefine:recreationFactor|1.8}} |
− | | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} | + | | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} || [[Stuff Category::Fabric]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} || [[Stuff Category::Woody]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} || [[Stuff Category::Stony]] OR}} |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]] |
− | |||
| format = template | | format = template | ||
| template = Building Stats Table Row | | template = Building Stats Table Row | ||
Line 145: | Line 133: | ||
}} | }} | ||
|} | |} | ||
− | </li></div> | + | </li></div></includeonly><noinclude> |
− | |||
− | |||
− | |||
− | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |