Difference between revisions of "Template:Stat"

From RimWorld Wiki
Jump to navigation Jump to search
m (Removed all default values to avoid clutter while adding missing parameters to many of the stats, and to verify that default values aren't overridden or modified outside of StatDef's (e.g. StatPart's and StatWorker's))
 
Line 530: Line 530:
 
{{#ifeq:{{{P|Always Hide}}} | true | [[Category:Stats - Always Hide]]}}
 
{{#ifeq:{{{P|Always Hide}}} | true | [[Category:Stats - Always Hide]]}}
 
{{#ifeq:{{{P|For Information Only}}} | true | [[Category:Stats - For Information Only]]}}
 
{{#ifeq:{{{P|For Information Only}}} | true | [[Category:Stats - For Information Only]]}}
--></includeonly><noinclude>{{Documentation}}</noinclude>
+
--></includeonly><noinclude>{{Recode|reason=If lable and name arent the same, display explanatory text as to the in game name}}{{Documentation}}</noinclude>

Latest revision as of 09:56, 4 November 2024

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[edit]

No Table (Default)[edit]

Stat is a stat: Speed of movement in cells per second. Its minimum allowed value is 0.15 c/s. Its default value is 3 c/s.

Table[edit]

Stat

Speed of movement in cells per second.

Base Stats

Def Name
MoveSpeed
Label
move speed
Min Value
0.15
Default Base Value
3.0
To String Style
FloatTwo
Format String
{0} c/s

Other

Scenario Randomizable
true
Capacity Factors
Moving
Parts
StatPart_Glow, StatPart_RevenantSpeed
Display Priority In Category
2500
Stat is a stat: Speed of movement in cells per second. Its minimum allowed value is 0.15 c/s. Its default value is 3 c/s.