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 | ![]() |
100% | 15% | 14 | pass through only | 0.75 | – | 1 × 1 | ![]() |
0.123 | 1.225 |
Animal sleeping box | 75 | 180 | ![]() |
100% | 15% | 14 | pass through only | 0.6 | – | 1 × 1 | ![]() |
0.172 | 1.24 |
Animal sleeping spot | – | 0 | – | – | – | – | standable | 0 | – | 1 × 1 | ![]() |
– | – |
Animus stone ![]() |
100 | – | – | – | – | – | – | – | – | 1 × 1 | ![]() |
– | – |
Armchair | 120 | 14,000 | ![]() |
100% | 40% | 30 | – | 0.8 | 4 | 1 × 1 | ![]() |
0.012 | 1.518 |
Baby decoration | 30 | 800 | ![]() |
100% | – | 30 | – | – | – | 1 × 1 | ![]() |
0.093 | 1.233 |
Baby sleeping spot | – | 0 | – | – | – | – | – | 0.4 | – | 1 × 1 | ![]() |
– | – |
Bed | 140 | 800 | ![]() |
100% | 40% | 42 | pass through only | 0.75 | 1 | 1 × 2 | ![]() |
0.07 | 1.244 |
Bedroll | 75 | 600 | ![]() |
100% | – | 14 | standable | 0.68 | – | 1 × 2 | ![]() |
0.083 | 1.25 |
Blackboard | 60 | 1,000 | ![]() |
100% | – | 50 | – | – | 2 | 2 × 1 | ![]() |
0.021 | 1.4 |
Blood torch | 75 | – | – | 0% | 15% | 24 | pass through only | – | – | 1 × 1 | ![]() |
– | – |
Bonsai pot ![]() |
80 | 275 | ![]() |
100% | 20% | – | pass through only | – | – | 1 × 1 | ![]() |
0.109 | 1.25 |
Bookcase | 100 | 500 | ![]() |
100% | 40% | 50 | pass through only | – | 0.5 | 2 × 1 | ![]() |
0.05 | 1.25 |
Brazier ![]() |
80 | 1,000 | ![]() |
0% | 15% | 42 | pass through only | – | – | 1 × 1 | ![]() |
0.063 | 1.26 |
Couch | 160 | 20,000 | ![]() |
100% | 40% | 30 | – | 0.85 | 8 | 2 × 1 | ![]() |
0.015 | 1.45 |
Crib | 70 | 400 | ![]() |
100% | – | – | – | – | 1 | 1 × 1 | ![]() |
0.078 | 1.24 |
Darklight brazier | 80 | 1,000 | ![]() |
0% | 15% | 42 | pass through only | – | – | 1 × 1 | ![]() |
0.063 | 1.26 |
Darktorch ![]() |
75 | 100 | ![]() |
0% | 15% | 14 | pass through only | – | – | 1 × 1 | ![]() |
0.24 | 1 |
Dining chair | 100 | 8,000 | ![]() |
100% | 35% | 30 | – | 0.7 | 8 | 1 × 1 | ![]() |
0.009 | 1.644 |
Double bed | 200 | 1,500 | ![]() |
100% | 40% | 42 | pass through only | 0.75 | 2 | 2 × 2 | ![]() |
0.071 | 1.247 |
Double bedroll | 100 | 1,100 | ![]() |
100% | – | 14 | standable | 0.68 | – | 2 × 2 | ![]() |
0.095 | 1.235 |
Double sleeping spot | – | 0 | – | – | – | – | standable | 0.4 | – | 2 × 2 | ![]() |
– | – |
Drape ![]() |
100 | 2,000 | ![]() ![]() |
100% | 40% | 14 | pass through only | – | 7.5 | 2 × 1 | ![]() |
0.123 | 1.167 |
Dresser | 120 | 2,000 | ![]() |
100% | 40% | 42 | pass through only | – | 5 | 2 × 1 | ![]() |
0.033 | 1.3 |
End table | 75 | 1,000 | ![]() |
100% | 40% | 30 | pass through only | – | 3 | 1 × 1 | ![]() |
0.039 | 1.3 |
Flood light | 120 | 600 | ![]() |
0% | 20% | 14 | pass through only | – | -5 | 1 × 1 | ![]() |
0.162 | 1.021 |
Fungus darktorch ![]() |
75 | 100 | ![]() |
0% | 15% | 14 | pass through only | – | – | 1 × 1 | ![]() |
0.22 | 1 |
Grand meditation throne ![]() |
350 | 40,000 | ![]() ![]() |
100% | 40% | 30 | – | 0.9 | 30 | 3 × 2 | ![]() |
0.03 | 1.152 |
Hospital bed | 150 | 2,800 | ![]() ![]() ![]() |
100% | 40% | 42 | pass through only | 0.8 | – | 1 × 2 | ![]() |
0.13 | 1.037 |
Meditation throne ![]() |
150 | 10,000 | ![]() |
100% | 40% | 30 | – | 0.75 | 15 | 1 × 1 | ![]() |
0.018 | 1.4 |
Plant pot | 75 | 250 | ![]() |
100% | 20% | – | pass through only | – | – | 1 × 1 | ![]() |
0.1 | 1.25 |
Royal bed | 200 | 50,000 | ![]() ![]() |
100% | 40% | 42 | pass through only | 0.9 | 75 | 2 × 2 | ![]() |
0.015 | 1.242 |
School desk | 75 | 750 | ![]() |
100% | 50% | 50 | pass through only | – | 0.5 | 2 × 1 | ![]() |
0.051 | 1.267 |
Shelf | 100 | 500 | ![]() |
100% | 40% | 50 | pass through only | – | 0.5 | 2 × 1 | ![]() |
0.05 | 1.25 |
Slab bed ![]() |
140 | 400 | ![]() |
100% | 30% | 20 | pass through only | 0 | – | 1 × 2 | ![]() |
0.093 | 1.233 |
Slab double bed ![]() |
200 | 750 | ![]() |
0% | 30% | 20 | pass through only | 0 | – | 2 × 2 | ![]() |
0.139 | 1.224 |
Sleeping spot | – | 0 | – | – | – | – | standable | 0.4 | – | 1 × 2 | ![]() |
– | – |
Small bookcase | 50 | 250 | ![]() |
100% | 40% | 50 | pass through only | – | 0.5 | 1 × 1 | ![]() |
0.052 | 1.3 |
Small shelf | 50 | 250 | ![]() |
100% | 40% | 50 | pass through only | – | 0.5 | 1 × 1 | ![]() |
0.052 | 1.3 |
Standing lamp | 50 | 300 | ![]() |
100% | 20% | 14 | pass through only | – | – | 1 × 1 | ![]() |
0.13 | 1.026 |
Stool | 75 | 450 | ![]() |
100% | 20% | 30 | – | 0.5 | 0 | 1 × 1 | ![]() |
0.069 | 1.24 |
Sun lamp | 50 | 330 | ![]() |
100% | 20% | 14 | pass through only | – | – | 1 × 1 | ![]() |
0.233 | 1.013 |
Table (1x2) | 75 | 750 | ![]() |
100% | 40% | 42 | pass through only | – | 0.5 | 1 × 2 | ![]() |
0.048 | 1.286 |
Table (2x2) | 100 | 1,500 | ![]() |
100% | 40% | 42 | pass through only | – | 1 | 2 × 2 | ![]() |
0.043 | 1.28 |
Table (2x4) | 150 | 3,000 | ![]() |
100% | 40% | 42 | pass through only | – | 2 | 2 × 4 | ![]() |
0.041 | 1.284 |
Table (3x3) | 175 | 3,300 | ![]() |
100% | 40% | 42 | pass through only | – | 2 | 3 × 3 | ![]() |
0.039 | 1.28 |
Torch lamp | 75 | 100 | ![]() |
0% | 15% | 14 | pass through only | – | – | 1 × 1 | ![]() |
0.24 | 1 |
Toy box | 50 | 1,200 | ![]() |
100% | 30% | 30 | pass through only | – | – | 1 × 1 | ![]() |
0.083 | 1.238 |
Wall lamp | 35 | 330 | ![]() |
100% | 20% | 0 | standable | – | – | 1 × 1 | ![]() |
0.118 | 1.368 |
Wall torch lamp | 50 | 100 | ![]() |
0% | 15% | 0 | standable | – | – | 1 × 1 | ![]() |
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. |