Difference between revisions of "Template:Stat"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{lc:{{{set property|}}} }} | <includeonly>{{#switch: {{lc:{{{set property|}}} }} | ||
− | | | + | | 0 | no | n | f | false = |
+ | | #default = [[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}}} }}} }}} }}}| ({{#if:{{{minValue|}}}| Min: {{%|{{{minValue}}}}}}}{{#if:{{{maxValue|}}}| Max: {{%|{{{maxValue}}}}}}} )}}-->: {{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:49, 4 October 2023
This page has been suggested for recoding. Reason: Display mins and maxes, but requires use of toStringStyle to handle - some stats are %, some are flat numbers. You can help RimWorld Wiki by improving it. |
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
No Table (Default)
Stat is a Stat: Speed of movement in cells per second.
Table
Stat is a Stat: Speed of movement in cells per second.
The above documentation is transcluded from Template:Stat/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |