Difference between revisions of "Template:Stat"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>[[Category:Stat]]{{#switch: {{lc:{{{set property|}}} }}
+
<includeonly>{{#switch: {{lc:{{{set property|}}} }}
  | 1 | yes | y | t | true ={{#set: Health Type = Stat | Stat Minimum = {{{minValue|{{{min value|}}} }}} | Stat Maximum = {{{maxValue|{{{max value|}}} }}} | Default Base Value = {{{default base value|{{{default value|}}} }}} }}}}'''{{PAGENAME}}''' is a [[Stat]]<!--{{#if: {{{minValue|{{{min value|{{{maxValue|{{{max value}}} }}} }}} }}}|&nbsp;({{#if:{{{minValue|}}}|&nbsp;Min: {{%|{{{minValue}}}}}}}{{#if:{{{maxValue|}}}|&nbsp;Max: {{%|{{{maxValue}}}}}}}&nbsp;)}}-->: {{Text | description | {{{description|}}} }}</includeonly><noinclude>{{Recode|reason=Display mins and maxes, but requires use of toStringStyle to handle - some stats are %, some are flat numbers}}{{Documentation}}</noinclude>
+
  | 1 | yes | y | t | true =[[Category:Stat]]{{#set: Health Type = Stat | Stat Minimum = {{{minValue|{{{min value|}}} }}} | Stat Maximum = {{{maxValue|{{{max value|}}} }}} | Default Base Value = {{{default base value|{{{default value|}}} }}} }}}}'''{{PAGENAME}}''' is a [[Stat]]<!--{{#if: {{{minValue|{{{min value|{{{maxValue|{{{max value}}} }}} }}} }}}|&nbsp;({{#if:{{{minValue|}}}|&nbsp;Min: {{%|{{{minValue}}}}}}}{{#if:{{{maxValue|}}}|&nbsp;Max: {{%|{{{maxValue}}}}}}}&nbsp;)}}-->: {{Text | description | {{{description|}}} }}</includeonly><noinclude>{{Recode|reason=Display mins and maxes, but requires use of toStringStyle to handle - some stats are %, some are flat numbers}}{{Documentation}}</noinclude>

Revision as of 04:48, 4 October 2023

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

Creates the first line of a Stat page, displaying what it is, providing the description, categorizing the page and setting several page parameters.

Note: Description placed in the template should match the description of the stat in-game. Additional information and context can be added later. Links can be made from the text in the description.

The Capacity equivalent is Template: Capacity.

Example

Stat is a Stat: Speed at which this person sows and harvests plants.