Difference between revisions of "Template:Rest Effectiveness Quality Table"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly><div><li style="display: inline-table;">{{#vardefine: name | {{{1|{{PAGENAME}}}}} }}{{#vardefine: baseresteffectiveness | {{Q|{{#var: name}}|Rest Effectiveness}}}}
 
<includeonly><div><li style="display: inline-table;">{{#vardefine: name | {{{1|{{PAGENAME}}}}} }}{{#vardefine: baseresteffectiveness | {{Q|{{#var: name}}|Rest Effectiveness}}}}
 
{| {{STDT| sortable c_08 text-center}}
 
{| {{STDT| sortable c_08 text-center}}
! Material
+
! {{#if: {{#pos:{{Q|{{#var: name}}|Stuff Tags}}|Stony}}|Material|Quality}}
 
!data-sort-type="number"| Awful
 
!data-sort-type="number"| Awful
 
!data-sort-type="number"| Poor
 
!data-sort-type="number"| Poor

Revision as of 14:05, 22 November 2021

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

Summary

This template generates a table summarizing the rest effectiveness for each quality tier. If the object in question is has an option to use stone as a construction material, it will add a row to that effect.

Parameters

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

Example usage

Bed

{{Rest Effectiveness Quality Table}}

On the Bed page produces:

  • Material Awful Poor Normal Good Excellent Masterwork Legendary
    Non-Stone and Jade 86% 92% 100% 108% 114% 125% 160%
    Stone except Jade 77% 83% 90% 97% 103% 113% 144%
  • Hospital bed

    {{Rest Effectiveness Quality Table | Hospital bed}}

    Produces:

  • Quality Awful Poor Normal Good Excellent Masterwork Legendary
    Rest effectiveness 86% 92% 100% 108% 114% 125% 160%
  • Animal bed

    {{Rest Effectiveness Quality Table | Animal bed}}

    Produces:

  • Quality Awful Poor Normal Good Excellent Masterwork Legendary
    Rest effectiveness 86% 92% 100% 108% 114% 125% 160%
  • Sleeping spot

    {{Rest Effectiveness Quality Table | Sleeping spot}}

    Produces:

  • Quality Awful Poor Normal Good Excellent Masterwork Legendary
    Rest effectiveness 69% 74% 80% 86% 91% 100% 128%