Difference between revisions of "Template:Stat"

From RimWorld Wiki
Jump to navigation Jump to search
m (Additional parameters)
m (Undo revision 151306 by JuliaCat (talk))
Tag: Undo
Line 5: Line 5:
 
  | 0 | no | n | f | false =
 
  | 0 | no | n | f | false =
 
  | #default =
 
  | #default =
   {{#set: Description = {{{description|}}}
+
   {{#set: Description       = {{{description|}}}
| Def Name = {{{def name|}}}
+
        | Stat Minimum      = {{{min value|}}}
| Label = {{{label|}}}
+
        | Stat Maximum       = {{{max value|}}}
| Stat Maximum = {{{max value|}}}<!-- 9999999 -->
+
        | Default Base Value = {{{default base value|}}}
| Stat Minimum = {{{min value|}}}<!-- -9999999 -->
+
        | To String Style   = {{{to string style|}}}
| Default Base Value = {{{default base value|}}}<!-- 1 -->
+
        | Health Type       = Stat
| To String Style = {{{to string style|}}}
+
        | Effective Minimum = {{#expr: {{{effective minimum|}}} }}
| Health Type = Stat
+
        | Effective Maximum = {{#expr: {{{effective maximum|}}} }}
| Effective Minimum = {{#expr: {{{effective minimum|}}} }}
 
| Effective Maximum = {{#expr: {{{effective maximum|}}} }}
 
<!-- Strings -->
 
| Offset Label = {{offset label|}}
 
| Format String = {{format string|}}
 
| Format String Unfinalized = {{format string unfinalized|}}
 
| Stat Factors Explanation Header = {{stat factors explanation header|}}
 
| Label For Full Stat List = {{label for full stat list|}}
 
<!-- Booleans -->
 
| Always Hide = {{always hide|}}
 
| For Information Only = {{for information only|}}
 
| Show On Animals = {{show on animals|true}}
 
| Show On Default Value = {{show on default value|true}}
 
| Show On Entities = {{show on entities|true}}
 
| Show On Humanlikes = {{show on humanlikes|true}}
 
| Show On Mechanoids = {{show on mechanoids|true}}
 
| Show On Non Power Plants = {{show on non power plants|true}}
 
| Show On Non Wild Man Humanlikes = {{show on non wild man humanlikes|true}}
 
| Show On Non Work Tables = {{show on non work tables|true}}
 
| Show On Pawns = {{show on pawns|true}}
 
| Show On Player Mechanoids = {{show on player mechanoids|}}
 
| Show On Slaves Only = {{show on slaves only|}}
 
| Show On Unhaulables = {{show on unhaulables|true}}
 
| Show On Untradeables = {{show on untradeables|true}}
 
| Show Zero Base Value = {{show zero base value|}}
 
| Display Priority In Category = {{display priority in category|}}
 
    | To String Number Sense = {{to string number sense|Absolute}}
 
| Worker Class = {{worker class|}}
 
 
   }}
 
   }}
 
   [[Category:{{#switch: {{{category|}}}
 
   [[Category:{{#switch: {{{category|}}}
| Important
+
    | BasicsImportant       = Stats - Important
| Basics Important
+
    | BasicsPawnImportant   = Stats - Pawn Important
| BasicsImportant = Stats - Important
+
    | BasicsNonPawnImportant = Stats - Non Pawn Important
| Pawn Important
+
    | Basics           = Stats - Basics
| Basics Pawn Important
+
    | Pawn
| BasicsPawnImportant = Stats - Pawn Important
+
    | BasicsPawn       = Stats - Pawn
| NonPawnImportant
+
    | Non Pawn
| Basics Non Pawn Important
+
    | NonPawn
| BasicsNonPawnImportant = Stats - Non Pawn Important
+
    | BasicsNonPawn   = Stats - Non Pawn
| Basics   = Stats - Basics
+
    | Terrain         = Stats - Terrain
| Pawn
+
    | Meditation       = Stats - Meditation
| BasicsPawn   = Stats - Pawn
+
    | Mechanoid       = Stats - Mechanoid
| Non Pawn
+
    | Apparel         = Stats - Apparel
| NonPawn
+
    | Buildings
| BasicsNonPawn = Stats - Non Pawn
+
    | Building         = Stats - Building
| Terrain   = Stats - Terrain
+
    | Ranged Weapon
| Meditation   = Stats - Meditation
+
    | Ranged
| Mechanoid = Stats - Mechanoid
+
    | Weapon_Ranged   = Stats - Weapon (Ranged)
| Apparel   = Stats - Apparel
+
    | Melee
| Buildings
+
    | Melee Weapon
| Building = Stats - Building
+
    | Weapon_Melee     = Stats - Weapon (Melee)
| Ranged Weapon
+
    | Ability         = Stats - Ability
| Ranged
+
    | Stuff Stat Factors
| Weapon_Ranged = Stats - Weapon (Ranged)
+
    | StuffStatFactors = Stats - Stuff Stat Factors
| Melee
+
    | Mechanitor       = Stats - Mechanitor
| Melee Weapon
+
    | Pawn Combat
| Weapon_Melee = Stats - Weapon (Melee)
+
    | PawnCombat       = Stats - Pawn Combat
| Ability   = Stats - Ability
+
    | Social
| Stuff Stat Factors
+
    | Pawn Social
| StuffStatFactors = Stats - Stuff Stat Factors
+
    | PawnSocial       = Stats - Pawn Social
| Mechanitor   = Stats - Mechanitor
+
    | Misc
| Pawn Combat
+
    | Pawn Misc
| PawnCombat   = Stats - Pawn Combat
+
    | PawnMisc         = Stats - Pawn Misc
| Social
+
    | Work
| Pawn Social
+
    | Pawn Work
| PawnSocial   = Stats - Pawn Social
+
    | PawnWork         = Stats - Pawn Work
| Misc
+
    | Psychic Ritual
| Pawn Misc
+
    | PsychicRituals  = Stats - Psychic Ritual
| PawnMisc = Stats - Pawn Misc
+
    | Containment     = Stats - Containment
| Work
+
    | Obsolete         = Stats - Obsolete
| Pawn Work
+
    | #default         = Stat}}]]
| PawnWork = Stats - Pawn Work
 
| Psychic Ritual
 
| PsychicRituals  = Stats - Psychic Ritual
 
| Containment   = Stats - Containment
 
| Obsolete = Stats - Obsolete
 
| #default = Stat}}]]
 
 
}}<!--
 
}}<!--
  
 
DISPLAY TEXT
 
DISPLAY TEXT
-->'''{{PAGENAME}}''' is a [[stat]]: {{Text | description | {{{description|}}} }} <!--
+
-->'''{{PAGENAME}}''' is a [[stat]]: {{Text | description | {{{description|}}} }} {{#if: {{{min value|}}} | Its minimum allowed value is {{Format Number|{{{min value|}}}|{{{to string style|}}} }}{{#if: {{{effective minimum|}}} | &nbsp;(effectively limited to {{Format Number|{{{effective minimum|}}}|{{{to string style|}}} }})}}.}} {{#if: {{{max value|}}} | Its maximum allowed value is {{Format Number|{{{max value|}}}|{{{to string style|}}} }}{{#if: {{{effective maximum|}}} | &nbsp;(effectively limited to {{Format Number|{{{effective maximum|}}}|{{{to string style|}}} }})}}.}} {{#if: {{{default base value|}}} | Its default value is {{Format Number|{{{default base value|}}}|{{{to string style|}}} }}.}}</includeonly><noinclude>{{Documentation}}</noinclude>
-->{{#if: {{{min value|}}} | Its minimum allowed value is {{Format Number|{{{min value|}}}|{{{to string style|}}} }}<!--
 
-->{{#if: {{{effective minimum|}}} | &nbsp;(effectively limited to {{Format Number|{{{effective minimum|}}}|{{{to string style|}}} }})}}.}} <!--
 
-->{{#if: {{{max value|}}} | Its maximum allowed value is {{Format Number|{{{max value|}}}|{{{to string style|}}} }}<!--
 
-->{{#if: {{{effective maximum|}}} | &nbsp;(effectively limited to {{Format Number|{{{effective maximum|}}}|{{{to string style|}}} }})}}.}} <!--
 
-->{{#if: {{{default base value|}}} | Its default value is {{Format Number|{{{default base value|}}}|{{{to string style|}}} }}.}}</includeonly><noinclude>{{Documentation}}</noinclude>
 

Revision as of 03:03, 21 September 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

Stat is a stat: Speed at which this person sows and harvests plants. Its minimum allowed value is 10% (effectively limited to 11%). Its maximum allowed value is 100% (effectively limited to 90%). Its default value is 50%.