Difference between revisions of "Template:Furniture Table Row"
Jump to navigation
Jump to search
(DLC Icons) |
(Value/Material now takes all required resources into account) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | ! [[{{{?Name}}}]]{{#switch: {{ | + | ! [[{{{?Name}}}]]{{#switch: {{{DLC}}} | Royalty (DLC) = {{RoyaltyIcon}} | Ideology (DLC) = {{IdeologyIcon}} }} |
| {{#if: {{{HP}}} | {{{HP}}} | – }} | | {{#if: {{{HP}}} | {{{HP}}} | – }} | ||
| data-sort-value="{{formatnum:{{{Work}}}|R}}" | {{#if: {{{Work}}} | {{{Work}}} | – }} | | data-sort-value="{{formatnum:{{{Work}}}|R}}" | {{#if: {{{Work}}} | {{{Work}}} | – }} | ||
− | | data-sort-value=" | + | | data-sort-value="{{{R1a}}}" | {{#if: {{{R1}}} | {{Required Resources|{{{?Name}}}|simple=1}} | – }} |
| {{#if: {{{Flammability}}} | {{%|{{{Flammability}}}}} | – }} | | {{#if: {{{Flammability}}} | {{%|{{{Flammability}}}}} | – }} | ||
| {{#if: {{{Cover}}} | {{%|{{{Cover}}}}} | – }} | | {{#if: {{{Cover}}} | {{%|{{{Cover}}}}} | – }} | ||
Line 13: | Line 13: | ||
| data-sort-value="{{#vardefineecho:value | {{#if: {{{Value}}} | {{{Value}}} | {{#if: {{Market Value Calculator|{{{?Name}}}|wood}} | {{Market Value Calculator|{{{?Name}}}|wood}} }} }} }}" | {{#if: {{#var:value}} | {{Icon Small|Silver}} {{#var:value}} | – }} | | data-sort-value="{{#vardefineecho:value | {{#if: {{{Value}}} | {{{Value}}} | {{#if: {{Market Value Calculator|{{{?Name}}}|wood}} | {{Market Value Calculator|{{{?Name}}}|wood}} }} }} }}" | {{#if: {{#var:value}} | {{Icon Small|Silver}} {{#var:value}} | – }} | ||
| {{#if: {{{Work}}} | {{#ifexpr: {{formatnum:{{{Work}}}|R}} > 0 | {{#expr: {{#var:value}}/{{formatnum:{{{Work}}}|R}} round 3 | – }} | – }} | – }} | | {{#if: {{{Work}}} | {{#ifexpr: {{formatnum:{{{Work}}}|R}} > 0 | {{#expr: {{#var:value}}/{{formatnum:{{{Work}}}|R}} round 3 | – }} | – }} | – }} | ||
− | | {{#if: {{# | + | | {{#if: {{{R1}}} |
+ | | {{#expr: {{#var:value}}/( {{{R1a}}} {{#ifeq: {{{R1}}} | Stuff | | * {{Q|{{{R1}}}|Market Value Base}} }} | ||
+ | {{#if: {{{R2}}} | + {{{R2a}}} * {{Q|{{{R2}}}|Market Value Base}} }} | ||
+ | {{#if: {{{R3}}} | + {{{R3a}}} * {{Q|{{{R3}}}|Market Value Base}} }} | ||
+ | {{#if: {{{R4}}} | + {{{R4a}}} * {{Q|{{{R4}}}|Market Value Base}} }} | ||
+ | {{#if: {{{R5}}} | + {{{R5a}}} * {{Q|{{{R5}}}|Market Value Base}} }} | ||
+ | {{#if: {{{R6}}} | + {{{R6a}}} * {{Q|{{{R6}}}|Market Value Base}} }}) round 3}} | ||
+ | | – }} | ||
|- | |- | ||
</includeonly> | </includeonly> | ||
<noinclude>{{documentation}}</noinclude> | <noinclude>{{documentation}}</noinclude> |
Revision as of 10:08, 7 July 2022
This template is used to create an automated comparison table on furniture.
Example
{| {{STDT| sortable c_01 text-center}} ! Name !! {{HP}} !! Work to Make !! Material Cost !! Base Flammability !! Provides Cover !! Path Cost !! Passability !! Comfort !! Beauty !! Size in Blocks !! Base Market Value !! Value/Work !! Value/Material |- {{#ask: [[Type2::Furniture]] | mainlabel = Name | format = template | template = Furniture Table Row | named args = yes | link = none | ?Name = ?Name | ?From DLC = DLC | ?Max Hit Points Base = HP | ?Work To Make = Work | ?Resource 1 = R1 | ?Resource 2 = R2 | ?Resource 3 = R3 | ?Resource 4 = R4 | ?Resource 5 = R5 | ?Resource 6 = R6 | ?Resource 1 Amount = R1a | ?Resource 2 Amount = R2a | ?Resource 3 Amount = R3a | ?Resource 4 Amount = R4a | ?Resource 5 Amount = R5a | ?Resource 6 Amount = R6a | ?Flammability Base = Flammability | ?Cover Effectiveness = Cover | ?Path Cost = Path | ?Passability = Passability | ?Comfort Base = Comfort | ?Beauty Base = Beauty | ?Size = Size | ?Market Value Base = Value }} |}
Preview
Name | HP | Work to Make | Material Cost | Base Flammability | Provides Cover | Path Cost | Passability | Comfort | Beauty | Size in Blocks | Base Market Value | Value/Work | Value/Material |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Animal bed | 140 | 400 | 40 (Fabric/Leathery) | 100% | 15% | 14 | pass through only | 0.75 | – | 1 × 1 | 49 | 0.123 | 1.225 |
Animal sleeping box | 75 | 180 | 25 (Metallic/Woody/Stony, 250 for SMVs) | 100% | 15% | 14 | pass through only | 0.6 | – | 1 × 1 | 31 | 0.172 | 1.24 |
Animal sleeping spot | – | 0 | – | – | – | – | standable | 0 | – | 1 × 1 | 0 | – | – |
Animus stone | 100 | – | – | – | – | – | – | – | – | 1 × 1 | 5,000 | – | – |
Armchair | 120 | 14,000 | 110 (Fabric/Leathery) | 100% | 40% | 30 | – | 0.8 | 4 | 1 × 1 | 167 | 0.012 | 1.518 |
Baby decoration | 30 | 800 | 60 (Woody/Stony/Metallic, 600 for SMVs) | 100% | – | 30 | – | – | – | 1 × 1 | 74 | 0.093 | 1.233 |
Baby sleeping spot | – | 0 | – | – | – | – | – | 0.4 | – | 1 × 1 | 0 | – | – |
Bed | 140 | 800 | 45 (Metallic/Woody/Stony, 450 for SMVs) | 100% | 40% | 42 | pass through only | 0.75 | 1 | 1 × 2 | 56 | 0.07 | 1.244 |
Bedroll | 75 | 600 | 40 (Fabric/Leathery) | 100% | – | 14 | standable | 0.68 | – | 1 × 2 | 50 | 0.083 | 1.25 |
Blackboard | 60 | 1,000 | 15 (Woody/Stony) | 100% | – | 50 | – | – | 2 | 2 × 1 | 21 | 0.021 | 1.4 |
Blood torch | 75 | – | – | 0% | 15% | 24 | pass through only | – | – | 1 × 1 | 24 | – | – |
Bonsai pot | 80 | 275 | 24 (Metallic/Woody/Stony, 240 for SMVs) | 100% | 20% | – | pass through only | – | – | 1 × 1 | 30 | 0.109 | 1.25 |
Bookcase | 100 | 500 | 20 (Metallic/Woody/Stony, 200 for SMVs) | 100% | 40% | 50 | pass through only | – | 0.5 | 2 × 1 | 25 | 0.05 | 1.25 |
Brazier | 80 | 1,000 | 50 (Metallic/Stony, 500 for SMVs) | 0% | 15% | 42 | pass through only | – | – | 1 × 1 | 63 | 0.063 | 1.26 |
Couch | 160 | 20,000 | 200 (Fabric/Leathery) | 100% | 40% | 30 | – | 0.85 | 8 | 2 × 1 | 290 | 0.015 | 1.45 |
Crib | 70 | 400 | 25 (Woody/Stony/Metallic, 250 for SMVs) | 100% | – | – | – | – | 1 | 1 × 1 | 31 | 0.078 | 1.24 |
Darklight brazier | 80 | 1,000 | 50 (Metallic/Stony, 500 for SMVs) | 0% | 15% | 42 | pass through only | – | – | 1 × 1 | 63 | 0.063 | 1.26 |
Darktorch | 75 | 100 | 20 | 0% | 15% | 14 | pass through only | – | – | 1 × 1 | 24 | 0.24 | 1 |
Dining chair | 100 | 8,000 | 45 (Metallic/Woody, 450 for SMVs) | 100% | 35% | 30 | – | 0.7 | 8 | 1 × 1 | 74 | 0.009 | 1.644 |
Double bed | 200 | 1,500 | 85 (Metallic/Woody/Stony, 850 for SMVs) | 100% | 40% | 42 | pass through only | 0.75 | 2 | 2 × 2 | 106 | 0.071 | 1.247 |
Double bedroll | 100 | 1,100 | 85 (Fabric/Leathery) | 100% | – | 14 | standable | 0.68 | – | 2 × 2 | 105 | 0.095 | 1.235 |
Double sleeping spot | – | 0 | – | – | – | – | standable | 0.4 | – | 2 × 2 | 0 | – | – |
Drape | 100 | 2,000 | 150 (Fabric/Leathery), 50 | 100% | 40% | 14 | pass through only | – | 7.5 | 2 × 1 | 245 | 0.123 | 1.167 |
Dresser | 120 | 2,000 | 50 (Metallic/Woody/Stony, 500 for SMVs) | 100% | 40% | 42 | pass through only | – | 5 | 2 × 1 | 65 | 0.033 | 1.3 |
End table | 75 | 1,000 | 30 (Metallic/Woody/Stony, 300 for SMVs) | 100% | 40% | 30 | pass through only | – | 3 | 1 × 1 | 39 | 0.039 | 1.3 |
Flood light | 120 | 600 | 50 | 0% | 20% | 14 | pass through only | – | -5 | 1 × 1 | 97 | 0.162 | 1.021 |
Fungus darktorch | 75 | 100 | 20 | 0% | 15% | 14 | pass through only | – | – | 1 × 1 | 22 | 0.22 | 1 |
Grand meditation throne | 350 | 40,000 | 300 (Metallic/Stony, 3000 for SMVs), 75 | 100% | 40% | 30 | – | 0.9 | 30 | 3 × 2 | 1210 | 0.03 | 1.152 |
Hospital bed | 150 | 2,800 | 40 (Metallic, 400 for SMVs), 80, 5 | 100% | 40% | 42 | pass through only | 0.8 | – | 1 × 2 | 365 | 0.13 | 1.037 |
Meditation throne | 150 | 10,000 | 125 (Metallic/Woody/Stony, 1250 for SMVs) | 100% | 40% | 30 | – | 0.75 | 15 | 1 × 1 | 175 | 0.018 | 1.4 |
Plant pot | 75 | 250 | 20 (Metallic/Woody/Stony, 200 for SMVs) | 100% | 20% | – | pass through only | – | – | 1 × 1 | 25 | 0.1 | 1.25 |
Royal bed | 200 | 50,000 | 100 (Metallic/Woody/Stony, 1000 for SMVs), 50 | 100% | 40% | 42 | pass through only | 0.9 | 75 | 2 × 2 | 745 | 0.015 | 1.242 |
School desk | 75 | 750 | 30 (Woody/Stony/Metallic, 300 for SMVs) | 100% | 50% | 50 | pass through only | – | 0.5 | 2 × 1 | 38 | 0.051 | 1.267 |
Shelf | 100 | 500 | 20 (Metallic/Woody/Stony, 200 for SMVs) | 100% | 40% | 50 | pass through only | – | 0.5 | 2 × 1 | 25 | 0.05 | 1.25 |
Slab bed | 140 | 400 | 30 (Metallic/Woody/Stony, 300 for SMVs) | 100% | 30% | 20 | pass through only | 0 | – | 1 × 2 | 37 | 0.093 | 1.233 |
Slab double bed | 200 | 750 | 85 (Metallic/Woody/Stony, 850 for SMVs) | 0% | 30% | 20 | pass through only | 0 | – | 2 × 2 | 104 | 0.139 | 1.224 |
Sleeping spot | – | 0 | – | – | – | – | standable | 0.4 | – | 1 × 2 | 0 | – | – |
Small bookcase | 50 | 250 | 10 (Metallic/Woody/Stony, 100 for SMVs) | 100% | 40% | 50 | pass through only | – | 0.5 | 1 × 1 | 13 | 0.052 | 1.3 |
Small shelf | 50 | 250 | 10 (Metallic/Woody/Stony, 100 for SMVs) | 100% | 40% | 50 | pass through only | – | 0.5 | 1 × 1 | 13 | 0.052 | 1.3 |
Standing lamp | 50 | 300 | 20 | 100% | 20% | 14 | pass through only | – | – | 1 × 1 | 39 | 0.13 | 1.026 |
Stool | 75 | 450 | 25 (Metallic/Woody/Stony, 250 for SMVs) | 100% | 20% | 30 | – | 0.5 | 0 | 1 × 1 | 31 | 0.069 | 1.24 |
Sun lamp | 50 | 330 | 40 | 100% | 20% | 14 | pass through only | – | – | 1 × 1 | 77 | 0.233 | 1.013 |
Table (1x2) | 75 | 750 | 28 (Metallic/Woody/Stony, 280 for SMVs) | 100% | 40% | 42 | pass through only | – | 0.5 | 1 × 2 | 36 | 0.048 | 1.286 |
Table (2x2) | 100 | 1,500 | 50 (Metallic/Woody/Stony, 500 for SMVs) | 100% | 40% | 42 | pass through only | – | 1 | 2 × 2 | 64 | 0.043 | 1.28 |
Table (2x4) | 150 | 3,000 | 95 (Metallic/Woody/Stony, 950 for SMVs) | 100% | 40% | 42 | pass through only | – | 2 | 2 × 4 | 122 | 0.041 | 1.284 |
Table (3x3) | 175 | 3,300 | 100 (Metallic/Woody/Stony, 1000 for SMVs) | 100% | 40% | 42 | pass through only | – | 2 | 3 × 3 | 128 | 0.039 | 1.28 |
Torch lamp | 75 | 100 | 20 | 0% | 15% | 14 | pass through only | – | – | 1 × 1 | 24 | 0.24 | 1 |
Toy box | 50 | 1,200 | 80 (Woody/Stony/Metallic, 800 for SMVs) | 100% | 30% | 30 | pass through only | – | – | 1 × 1 | 99 | 0.083 | 1.238 |
Wall lamp | 35 | 330 | 15 | 100% | 20% | 0 | standable | – | – | 1 × 1 | 39 | 0.118 | 1.368 |
Wall torch lamp | 50 | 100 | 15 | 0% | 15% | 0 | standable | – | – | 1 × 1 | 18 | 0.18 | 1 |
The above documentation is transcluded from Template:Furniture Table Row/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |