Difference between revisions of "Template:Furniture Table Row"
Jump to navigation
Jump to search
(DLC Icons) |
m (template changed) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | ! | + | ! {{DLC Icons|{{{?Name}}} }} |
| {{#if: {{{HP}}} | {{{HP}}} | – }} | | {{#if: {{{HP}}} | {{{HP}}} | – }} | ||
− | | data-sort-value="{{formatnum:{{{Work}}}|R}}" | {{#if: {{{Work}}} | {{{Work}}} | – }} | + | | data-sort-value="{{formatnum:{{{Work}}}|R}}" | {{#if: {{{Work}}} | {{Ticks|{{{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}}} }} | – }} |
| {{#if: {{{Path}}} | {{{Path}}} | – }} | | {{#if: {{{Path}}} | {{{Path}}} | – }} | ||
| {{#if: {{{Passability}}} | {{{Passability}}} | – }} | | {{#if: {{{Passability}}} | {{{Passability}}} | – }} | ||
Line 11: | Line 11: | ||
| {{#if: {{{Beauty}}} | {{{Beauty}}} | – }} | | {{#if: {{{Beauty}}} | {{{Beauty}}} | – }} | ||
| {{#if: {{{Size}}} | {{{Size}}} | – }} | | {{#if: {{{Size}}} | {{{Size}}} | – }} | ||
− | | 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}}} | {{formatnum:{{{Value}}}|R}} | {{#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> |
Latest revision as of 08:10, 7 October 2022
This template is used to create an automated comparison table on furniture.
Example[edit]
{| {{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[edit]
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 ticks (6.67 secs) | 40 (Fabric/Leathery) | 100% | 15% | 14 | pass through only | 0.75 | – | 1 × 1 | 49 | 0.123 | 1.225 |
Animal sleeping box | 75 | 180 ticks (3 secs) | 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 ticks (0 secs) | – | – | – | – | standable | 0 | – | 1 × 1 | 0 | – | – |
Animus stone | 100 | – | – | – | – | – | – | – | – | 1 × 1 | 5000 | – | – |
Armchair | 120 | 14,000 ticks (3.89 mins) | 110 (Fabric/Leathery) | 100% | 40% | 30 | – | 0.8 | 4 | 1 × 1 | 167 | 0.012 | 1.518 |
Baby decoration | 30 | 800 ticks (13.33 secs) | 60 (Woody/Stony/Metallic, 600 for SMVs) | 100% | – | 30 | – | – | – | 1 × 1 | 74 | 0.093 | 1.233 |
Baby sleeping spot | – | 0 ticks (0 secs) | – | – | – | – | – | 0.4 | – | 1 × 1 | 0 | – | – |
Bed | 140 | 800 ticks (13.33 secs) | 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 ticks (10 secs) | 40 (Fabric/Leathery) | 100% | – | 14 | standable | 0.68 | – | 1 × 2 | 50 | 0.083 | 1.25 |
Blackboard | 60 | 1,000 ticks (16.67 secs) | 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 ticks (4.58 secs) | 24 (Metallic/Woody/Stony, 240 for SMVs) | 100% | 20% | – | pass through only | – | – | 1 × 1 | 30 | 0.109 | 1.25 |
Bookcase | 100 | 500 ticks (8.33 secs) | 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 ticks (16.67 secs) | 50 (Metallic/Stony, 500 for SMVs) | 0% | 15% | 42 | pass through only | – | – | 1 × 1 | 63 | 0.063 | 1.26 |
Couch | 160 | 20,000 ticks (5.56 mins) | 200 (Fabric/Leathery) | 100% | 40% | 30 | – | 0.85 | 8 | 2 × 1 | 290 | 0.015 | 1.45 |
Crib | 70 | 400 ticks (6.67 secs) | 25 (Woody/Stony/Metallic, 250 for SMVs) | 100% | – | – | – | – | 1 | 1 × 1 | 31 | 0.078 | 1.24 |
Darklight brazier | 80 | 1,000 ticks (16.67 secs) | 50 (Metallic/Stony, 500 for SMVs) | 0% | 15% | 42 | pass through only | – | – | 1 × 1 | 63 | 0.063 | 1.26 |
Darktorch | 75 | 100 ticks (1.67 secs) | 20 | 0% | 15% | 14 | pass through only | – | – | 1 × 1 | 24 | 0.24 | 1 |
Dining chair | 100 | 8,000 ticks (2.22 mins) | 45 (Metallic/Woody, 450 for SMVs) | 100% | 35% | 30 | – | 0.7 | 8 | 1 × 1 | 74 | 0.009 | 1.644 |
Double bed | 200 | 1,500 ticks (25 secs) | 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 ticks (18.33 secs) | 85 (Fabric/Leathery) | 100% | – | 14 | standable | 0.68 | – | 2 × 2 | 105 | 0.095 | 1.235 |
Double sleeping spot | – | 0 ticks (0 secs) | – | – | – | – | standable | 0.4 | – | 2 × 2 | 0 | – | – |
Drape | 100 | 2,000 ticks (33.33 secs) | 150 (Fabric/Leathery), 50 | 100% | 40% | 14 | pass through only | – | 7.5 | 2 × 1 | 245 | 0.123 | 1.167 |
Dresser | 120 | 2,000 ticks (33.33 secs) | 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 ticks (16.67 secs) | 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 ticks (10 secs) | 50 | 0% | 20% | 14 | pass through only | – | -5 | 1 × 1 | 97 | 0.162 | 1.021 |
Fungus darktorch | 75 | 100 ticks (1.67 secs) | 20 | 0% | 15% | 14 | pass through only | – | – | 1 × 1 | 22 | 0.22 | 1 |
Grand meditation throne | 350 | 40,000 ticks (11.11 mins) | 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 ticks (46.67 secs) | 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 ticks (2.78 mins) | 125 (Metallic/Woody/Stony, 1250 for SMVs) | 100% | 40% | 30 | – | 0.75 | 15 | 1 × 1 | 175 | 0.018 | 1.4 |
Plant pot | 75 | 250 ticks (4.17 secs) | 20 (Metallic/Woody/Stony, 200 for SMVs) | 100% | 20% | – | pass through only | – | – | 1 × 1 | 25 | 0.1 | 1.25 |
Royal bed | 200 | 50,000 ticks (13.89 mins) | 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 ticks (12.5 secs) | 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 ticks (8.33 secs) | 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 ticks (6.67 secs) | 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 ticks (12.5 secs) | 85 (Metallic/Woody/Stony, 850 for SMVs) | 0% | 30% | 20 | pass through only | 0 | – | 2 × 2 | 104 | 0.139 | 1.224 |
Sleeping spot | – | 0 ticks (0 secs) | – | – | – | – | standable | 0.4 | – | 1 × 2 | 0 | – | – |
Small bookcase | 50 | 250 ticks (4.17 secs) | 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 ticks (4.17 secs) | 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 ticks (5 secs) | 20 | 100% | 20% | 14 | pass through only | – | – | 1 × 1 | 39 | 0.13 | 1.026 |
Stool | 75 | 450 ticks (7.5 secs) | 25 (Metallic/Woody/Stony, 250 for SMVs) | 100% | 20% | 30 | – | 0.5 | 0 | 1 × 1 | 31 | 0.069 | 1.24 |
Sun lamp | 50 | 330 ticks (5.5 secs) | 40 | 100% | 20% | 14 | pass through only | – | – | 1 × 1 | 77 | 0.233 | 1.013 |
Table (1x2) | 75 | 750 ticks (12.5 secs) | 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 ticks (25 secs) | 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 ticks (50 secs) | 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 ticks (55 secs) | 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 ticks (1.67 secs) | 20 | 0% | 15% | 14 | pass through only | – | – | 1 × 1 | 24 | 0.24 | 1 |
Toy box | 50 | 1,200 ticks (20 secs) | 80 (Woody/Stony/Metallic, 800 for SMVs) | 100% | 30% | 30 | pass through only | – | – | 1 × 1 | 99 | 0.083 | 1.238 |
Wall lamp | 35 | 330 ticks (5.5 secs) | 15 | 100% | 20% | 0 | standable | – | – | 1 × 1 | 39 | 0.118 | 1.368 |
Wall torch lamp | 50 | 100 ticks (1.67 secs) | 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. |