Difference between revisions of "Template:Sleep Furniture Table Row"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>|- ! {{{?Name}}} | {{{?Rest Effectiveness}}} | {{{?Surgery Success Chance Factor}}} | {{{?Immunity Gain Speed Factor}}} | {{{?Comfort Base}}} | {{{?Facility}}} <i...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>|-
+
<includeonly>
! {{{?Name}}}
+
|-
| {{{?Rest Effectiveness}}}
+
! {{DLC Icons| {{{?Name}}} }}
| {{{?Surgery Success Chance Factor}}}
+
| {{#if: {{{?R1}}}|{{Required Resources|{{{?Name}}}|simple=1}}|—}}
| {{{?Immunity Gain Speed Factor}}}
+
| {{{?Rest}}}{{#if: {{#pos: {{{?Stuff}}}|Stony}}|<br/>({{#expr:{{{?Rest}}}*0.9}})}}
| {{{?Comfort Base}}}
+
| {{#if: {{#pos: {{{?Facility}}}|Sleep accelerator}}|{{#expr: {{{?Rest}}} + 0.35}}{{#if: {{#pos: {{Q|{{{?Name}}}|Stuff Tags}}|Stony}}|<br/>({{#expr:({{{?Rest}}}+0.35)*0.9}})}}|—}}
| {{{?Facility}}}
+
| {{{?Surgery}}}{{#if: {{#pos: {{{?Facility}}}|Vitals monitor}}|<br/>(with {{Icon Small|Vitals monitor}} {{#expr: {{{?Surgery}}} + 0.05}})}}
<includeonly><noinclude>{{Documentation|content=
+
| {{{?Immunity}}}{{#if: {{#pos: {{{?Facility}}}|Vitals monitor}}|<br/>(with {{Icon Small|Vitals monitor}} {{#expr: {{{?Immunity}}} + 0.02}})}}
<div><li style="display: inline-table;">
+
| {{{?Comfort}}}
{| {{STDT| sortable c_08 text-center}}
+
| {{#if: {{#pos: {{{?Facility}}} | Dresser}}{{#pos: {{{?Facility}}}|End table}}|{{#expr: {{{?Comfort}}} + 0.05}}|—}}
! Furniture !! Rest effectiveness !! Surgery Success Chance Factor !! Immunity Gain Speed Factor !! Comfort !! Facilities
+
| {{#if: {{#pos: {{{?Facility}}} | Dresser}}|{{#if: {{#pos: {{{?Facility}}}|End table}}|{{#expr: {{{?Comfort}}} + 0.1}}|—}}|—}}
{{#ask: [[Rest Effectiveness::+]]
+
| {{#if: {{{?Facility}}}|{{{?Facility}}}|—}}
| ?Rest Effectiveness
+
| {{#ifeq: {{{?Quality}}} | true | {{Check}} | {{Cross}} }}
| ?Surgery Success Chance Factor
+
</includeonly><noinclude>{{Documentation}}</noinclude>
| ?Immunity Gain Speed Factor
 
| ?Comfort Base
 
| ?Facility
 
| format = template
 
| template = Sleep Furniture Table Row
 
| link = none
 
| sort = From DLC, Name
 
}}
 
|}
 
</li></div>
 
[[Category:Customized Teble Templates]]
 
}}</noinclude>
 

Latest revision as of 20:17, 6 August 2023

Documentation icon Template documentation[view] [edit] [history] [purge]

This template is meant to be used on the sleep furniture page.

It creates rows for a comparison table of kinds of furniture to sleep in. It can be used like this:

<div><li style="display: inline-table;">
{| {{STDT| sortable c_08 text-center}}
! rowspan="2" | Furniture
! rowspan="2" style="border:#428659 1px; border-style: none solid none none;" | Resources to make
! colspan="2" | Rest effectiveness
! rowspan="2" style="border:#428659 1px; border-style: none none none solid;" | Surgery Success Chance Factor
! rowspan="2" style="border:#428659 1px; border-style: none solid none none;" | Immunity Gain Speed Factor
! colspan="3" | Comfort
! rowspan="2" style="border:#428659 1px; border-style: none none none solid;" | Facilities
! rowspan="2" | Has quality{{Ref label|Quality|A}}
|-
! style="background-color:#52a76f; border:#428659 1px; border-style: solid none none none;" data-sort-type="number" | Normal<br/>(made from {{Icon Small|Stone blocks}})
! style="background-color:#52a76f; border:#428659 1px; border-style: solid none none none;" data-sort-type="number" | With {{Icon Small|Sleep accelerator}}<br/>(made from {{Icon Small|Stone blocks}})
! style="background-color:#52a76f; border:#428659 1px; border-style: solid none none none;" | Normal
! style="background-color:#52a76f; border:#428659 1px; border-style: solid none none none;" | With {{Icon Small|Dresser}} OR {{Icon Small|End table}}
! style="background-color:#52a76f; border:#428659 1px; border-style: solid none none none;" | With {{Icon Small|Dresser}} AND {{Icon Small|End table}}
|-
{{#ask: [[Rest Effectiveness::+]]
 | ?Name = ?Name
 | ?Resource 1 = ?R1
 | ?Rest Effectiveness = ?Rest
 | ?Stuff Tags = ?Stuff
 | ?Surgery Success Chance Factor = ?Surgery
 | ?Immunity Gain Speed Factor = ?Immunity
 | ?Comfort Base = ?Comfort
 | ?Facility = ?Facility
 | ?Has Quality = ?Quality
 | named args = yes
 | format = template
 | template = Sleep Furniture Table Row
 | link = none
 | sort = From DLC, Name
}}
|}
</li></div>
{{Note|Quality|A}} For the effects of qualities, see [[quality]] or the individual pages.
  • Furniture Resources to make Rest effectiveness Surgery Success Chance Factor Immunity Gain Speed Factor Comfort Facilities Has quality[A]
    Normal
    (made from Stone blocks)
    With Sleep accelerator
    (made from Stone blocks)
    Normal With Dresser OR End table With Dresser AND End table
    Animal bed Stuff 40 (Fabric/Leathery) 1 1 1.07 0.75 Check.png
    Animal sleeping box Stuff 25 (Metallic/Woody/Stony, 250 for SMVs) 0.93
    (0.837)
    1 1.05 0.6 Check.png
    Animal sleeping spot 0.8 0.7 1 0 Ex.png
    Bed Stuff 45 (Metallic/Woody/Stony, 450 for SMVs) 1
    (0.9)
    1.35
    (1.215)
    1 1.07 0.75 0.8 0.85 Dresser, End table, Sleep accelerator Check.png
    Bedroll Stuff 40 (Fabric/Leathery) 0.95 1.3 1 1.05 0.68 0.73 0.78 Dresser, End table, Sleep accelerator Check.png
    Double bed Stuff 85 (Metallic/Woody/Stony, 850 for SMVs) 1
    (0.9)
    1.35
    (1.215)
    1 1.07 0.75 0.8 0.85 Dresser, End table, Sleep accelerator Check.png
    Double bedroll Stuff 85 (Fabric/Leathery) 0.95 1.3 1 1.05 0.68 0.73 0.78 Dresser, End table, Sleep accelerator Check.png
    Double sleeping spot 0.8 0.7 1 0.4 Ex.png
    Hospital bed Stuff 40 (Metallic, 400 for SMVs), Steel 80, Component 5 1 1.35 1.1
    (with Vitals monitor 1.15)
    1.11
    (with Vitals monitor 1.13)
    0.8 0.85 0.9 Vitals monitor, Dresser, End table, Sleep accelerator Check.png
    Royal bed Stuff 100 (Metallic/Woody/Stony, 1000 for SMVs), Gold 50 1.05
    (0.945)
    1.4
    (1.26)
    1 1.07 0.9 0.95 1 Dresser, End table, Sleep accelerator Check.png
    Sleeping spot 0.8 0.7 1 0.4 Ex.png
    Baby sleeping spot Content added by the Biotech DLC 0.8 0.7 1 0.4 Ex.png
    Deathrest casket Content added by the Biotech DLC Steel 100, Component 3 1 1 1.07 0.75 Hemopump, Hemogen amplifier, Glucosoid pump, Deathrest accelerator, Psychofluid pump Ex.png
    Ancient bed Content added by the Ideology DLC 0.85 0.65 0.95 0.75 Ex.png
    Slab bed Content added by the Ideology DLC Stuff 30 (Metallic/Woody/Stony, 300 for SMVs) 1
    (0.9)
    1.35
    (1.215)
    1 1.07 0 0.05 0.1 Dresser, End table, Sleep accelerator Check.png
    Slab double bed Content added by the Ideology DLC Stuff 85 (Metallic/Woody/Stony, 850 for SMVs) 1
    (0.9)
    1.35
    (1.215)
    1 1.07 0 0.05 0.1 Dresser, End table, Sleep accelerator Check.png
  • ^A For the effects of qualities, see quality or the individual pages.