Difference between revisions of "Template:Stat/sandbox"

From RimWorld Wiki
Jump to navigation Jump to search
(Test new parameters from StatDef, plus defName and label)
 
m
 
(2 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
| Effective Maximum = {{#expr: {{{effective maximum|}}} }}
 
| Effective Maximum = {{#expr: {{{effective maximum|}}} }}
 
<!-- Strings -->
 
<!-- Strings -->
| Offset Label = {{offset label|}}
+
| Offset Label = {{{offset label|}}}
| Format String = {{format string|}}
+
| Format String = {{{format string|}}}
| Format String Unfinalized = {{format string unfinalized|}}
+
| Format String Unfinalized = {{{format string unfinalized|}}}
| Stat Factors Explanation Header = {{stat factors explanation header|}}
+
| Stat Factors Explanation Header = {{{stat factors explanation header|}}}
| Label For Full Stat List = {{label for full stat list|}}
+
| Label For Full Stat List = {{{label for full stat list|}}}
 
<!-- Booleans -->
 
<!-- Booleans -->
| Always Hide = {{always hide|}}
+
| Always Hide = {{{always hide|}}}
| Apply Factors If Negative = {{apply factors if negative|}}<!-- true -->
+
<!--
| Cacheable = {{cacheable|}}
+
| Apply Factors If Negative = {{{apply factors if negative|true}}}
| Display Max When Above Or Equal = {{display max when above or equal|}}
+
| Cacheable = {{{cacheable|}}}
| Finalize Equipped Stat Offset = {{finalize equipped stat offset|}}<!-- true -->
+
| Display Max When Above Or Equal = {{{display max when above or equal|}}}
| For Information Only = {{for information only|}}
+
| Finalize Equipped Stat Offset = {{{finalize equipped stat offset|true}}}
| Hide In Classic Mode = {{hide in classic mode|}}
+
-->
| Minified Thing Inherits = {{minified thing inherits|}}
+
| For Information Only = {{{for information only|}}}
| Never Disabled = {{never disabled|}}
+
<!--
| Overrides Hide Stats = {{overrides hide stats|}}
+
| Hide In Classic Mode = {{{hide in classic mode|}}}
| Round Value = {{round value|}}
+
| Minified Thing Inherits = {{{minified thing inherits|}}}
| Scenario Randomizable = {{scenario randomizable|}}
+
| Never Disabled = {{{never disabled|}}}
| Show If Undefined = {{show if undefined|}}<!-- true -->
+
| Overrides Hide Stats = {{{overrides hide stats|}}}
| Show Non Abstract = {{show non abstract|}}<!-- true -->
+
| Round Value = {{{round value|}}}
| Show On Animals = {{show on animals|}}<!-- true -->
+
| Scenario Randomizable = {{{scenario randomizable|}}}
| Show On Default Value = {{show on default value|}}<!-- true -->
+
| Show If Undefined = {{{show if undefined|true}}}
| Show On Entities = {{show on entities|}}<!-- true -->
+
| Show Non Abstract = {{{show non abstract|true}}}
| Show On Humanlikes = {{show on humanlikes|}}<!-- true -->
+
-->
| Show On Mechanoids = {{show on mechanoids|}}<!-- true -->
+
| Show On Animals = {{{show on animals|true}}}
| Show On Non Power Plants = {{show on non power plants|}}<!-- true -->
+
| Show On Default Value = {{{show on default value|true}}}
| Show On Non Wild Man Humanlikes = {{show on non wild man humanlikes|}}<!-- true -->
+
| Show On Entities = {{{show on entities|true}}}
| Show On Non Work Tables = {{show on non work tables|}}<!-- true -->
+
| Show On Humanlikes = {{{show on humanlikes|true}}}
| Show On Pawns = {{show on pawns|}}<!-- true -->
+
| Show On Mechanoids = {{{show on mechanoids|true}}}
| Show On Player Mechanoids = {{show on player mechanoids|}}
+
| Show On Non Power Plants = {{{show on non power plants|true}}}
| Show On Slaves Only = {{show on slaves only|}}
+
| Show On Non Wild Man Humanlikes = {{{show on non wild man humanlikes|true}}}
| Show On Unhaulables = {{show on unhaulables|}}<!-- true -->
+
| Show On Non Work Tables = {{{show on non work tables|true}}}
| Show On Untradeables = {{show on untradeables|}}<!-- true -->
+
| Show On Pawns = {{{show on pawns|true}}}
| Show Zero Base Value = {{show zero base value|}}
+
| Show On Player Mechanoids = {{{show on player mechanoids|}}}
| Suppress Disabled Error = {{suppress disabled error|}}<!-- written in code as: supressDisabledError -->
+
| Show On Slaves Only = {{{show on slaves only|}}}
| Immutable = {{immutable|}}
+
| Show On Unhaulables = {{{show on unhaulables|true}}}
 +
| Show On Untradeables = {{{show on untradeables|true}}}
 +
| Show Zero Base Value = {{{show zero base value|}}}
 +
| Suppress Disabled Error = {{{suppress disabled error|}}}<!-- written in code as: supressDisabledError -->
 +
| Immutable = {{{immutable|}}}
 
<!-- Floats -->
 
<!-- Floats -->
<!--| Default Base Value = {{default base value|1}}-->
+
<!--| Default Base Value = {{{default base value|1}}}-->
| Hide At Value = {{hide at value|}}<!-- -2.14748365 e9 -->
+
<!--| Hide At Value = {{{hide at value|-2.14748365 e9}}}-->
<!--| Max Value = {{max value|9999999}}-->
+
<!--| Max Value = {{{max value|9999999}}}-->
<!--| Min Value = {{min value|-9999999}}-->
+
<!--| Min Value = {{{min value|-9999999}}}-->
| No Skill Factor = {{no skill factor|}}<!-- 1 -->
+
<!--
| No Skill Offset = {{no skill offset|}}
+
| No Skill Factor = {{{no skill factor|1}}}
| Round To Five Over = {{round to five over|}}<!-- Max Value -->
+
| No Skill Offset = {{{no skill offset|}}}
| Value If Missing = {{value if missing|}}
+
| Round To Five Over = {{{round to five over|Max Value}}}
 +
| Value If Missing = {{{value if missing|}}}
 +
-->
 
<!-- Lists -->
 
<!-- Lists -->
<!--List<HediffDef>-->  | Show If Hediffs Present = {{show if hediffs present|}}
+
<!--List<HediffDef>-->  | Show If Hediffs Present = {{{show if hediffs present|}}}
<!--List<PawnCapacityFactor>--> | Capacity Factors = {{capacity factors|}}
+
<!--List<PawnCapacityFactor>--> | Capacity Factors = {{{capacity factors|}}}
<!--List<PawnCapacityOffset>--> | Capacity Offsets = {{capacity offsets|}}
+
<!--List<PawnCapacityOffset>--> | Capacity Offsets = {{{capacity offsets|}}}
<!--List<PawnKindDef>-->| Show On Pawn Kind = {{show on pawn kind|}}
+
<!--List<PawnKindDef>-->| Show On Pawn Kind = {{{show on pawn kind|}}}
<!--List<SkillNeed>-->  | Skill Need Factors = {{skill need factors|}}
+
<!--List<SkillNeed>-->  | Skill Need Factors = {{{skill need factors|}}}
<!--List<SkillNeed>-->  | Skill Need Offsets = {{skill need offsets|}}
+
<!--List<SkillNeed>-->  | Skill Need Offsets = {{{skill need offsets|}}}
<!--List<StatDef>-->| Post Process Stat Factors = {{post process stat factors|}}
+
<!--List<StatDef>-->| Post Process Stat Factors = {{{post process stat factors|}}}
<!--List<StatDef>-->| Stat Factors = {{stat factors|}}
+
<!--List<StatDef>-->| Stat Factors = {{{stat factors|}}}
<!--List<StatPart>-->  | Parts = {{parts|}}
+
<!--List<StatPart>-->  | Parts = {{{parts|}}}
<!--List<String>--> | Show If Mods Loaded = {{show if mods loaded|}}
+
<!--List<String>--> | Show If Mods Loaded = {{{show if mods loaded|}}}
<!--List<String>--> | Show If Mods Loaded Any = {{show if mods loaded any|}}
+
<!--List<String>--> | Show If Mods Loaded Any = {{{show if mods loaded any|}}}
 
<!-- Integer -->
 
<!-- Integer -->
| Display Priority In Category = {{display priority in category|}}
+
| Display Priority In Category = {{{display priority in category|}}}
 
<!-- Other -->
 
<!-- Other -->
<!--StatWorker-->  | Worker Int = {{worker int|}}
+
<!--StatWorker-->  | Worker Int = {{{worker int|}}}
<!--ToStringStyle?-->  | To String Style Unfinalized = {{to string style unfinalized|}}
+
<!--ToStringStyle?-->  | To String Style Unfinalized = {{{to string style unfinalized|}}}
<!--Hashset<StatDef>--> | Mutable Stats = {{mutable stats|}}
+
<!--Hashset<StatDef>--> | Mutable Stats = {{{mutable stats|}}}
<!--DevelopmentalStage-->  | Show Developmental Stage Filter = {{show developmental stage filter|}}<!-- Baby, Child, Adult -->
+
<!--DevelopmentalStage-->  | Show Developmental Stage Filter = {{{show developmental stage filter|}}}<!-- Baby, Child, Adult -->
<!--SimpleCurve-->  | Post Process Curve = {{post process curve|}}
+
<!--SimpleCurve-->  | Post Process Curve = {{{post process curve|}}}
<!--SkillDef--> | Disable If Skill Disabled = {{disable if skill disabled|}}
+
<!--SkillDef--> | Disable If Skill Disabled = {{{disable if skill disabled|}}}
<!--StatCategoryDef--><!--  | Category = {{category|}}-->
+
<!--StatCategoryDef--><!--  | Category = {{{category|}}}-->
<!--ToStringNumberSense-->  | To String Number Sense = {{to string number sense|}}<!-- Absolute -->
+
<!--ToStringNumberSense-->  | To String Number Sense = {{{to string number sense|Absolute}}}
<!--ToStringStyle--><!--| To String Style = {{to string style|}}-->
+
<!--ToStringStyle--><!--| To String Style = {{{to string style|}}}-->
<!--Type--> | Worker Class = {{worker class|}}
+
<!--Type--> | Worker Class = {{{worker class|}}}
 
   }}
 
   }}
 
   [[Category:{{#switch: {{{category|}}}
 
   [[Category:{{#switch: {{{category|}}}

Latest revision as of 03:16, 21 September 2024

Template:Template sandbox notice

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/sandbox 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/sandbox 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.