Difference between revisions of "Template:Comfort Quality Table"

From RimWorld Wiki
Jump to navigation Jump to search
(make it work for non-quality things)
m
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
 
{| {{STDT|c_15 text-center}}
 
{| {{STDT|c_15 text-center}}
 
{{#ifeq: {{#var:hasQuality}} | true |
 
{{#ifeq: {{#var:hasQuality}} | true |
! [[Quality]]
+
  ! [[Quality]]
! Awful
+
  ! Awful
! Poor
+
  ! Poor
! Normal
+
  ! Normal
! Good
+
  ! Good
! Excellent
+
  ! Excellent
! Masterwork
+
  ! Masterwork
! Legendary
+
  ! Legendary
 
| ! colspan="2" {{!}} {{#var:name}} }}
 
| ! colspan="2" {{!}} {{#var:name}} }}
 
|-
 
|-
Line 72: Line 72:
 
}} }}
 
}} }}
 
|}
 
|}
</li></div></includeonly><noinclude>{{Comfort Quality Table|Sleeping spot}}
+
</li></div></includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 10:26, 16 December 2023

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

This template generates a table summarizing the comfort for each quality tier. If the object in question is has the end table and dresser as facilities, it will add a row to that effect.

Parameters[edit]

The first parameter, if present, will specify which object to generate the template for. If absent, {{PAGENAME}} will be used.

Example usage[edit]

{{Comfort Quality Table}}

On the Bed page produces:

  • Quality Awful Poor Normal Good Excellent Masterwork Legendary
    Comfort 57% 66% 75% 84% 93% 109% 128%
    + End Table 61% 70% 80% 90% 99% 116% 136%
    + Dresser 61% 70% 80% 90% 99% 116% 136%
    + End Table & Dresser 65% 75% 85% 95% 105% 123% 145%
  • {{Comfort Quality Table | Armchair}}

    Produces:

  • Quality Awful Poor Normal Good Excellent Masterwork Legendary
    Comfort 61% 70% 80% 90% 99% 116% 136%