Difference between revisions of "Template:Stat"

From RimWorld Wiki
Jump to navigation Jump to search
(did the recoding)
m (Obsolete Stat Category)
 
(4 intermediate revisions by 3 users not shown)
Line 11: Line 11:
 
         | To String Style    = {{{to string style|}}}
 
         | To String Style    = {{{to string style|}}}
 
         | Health Type        = Stat
 
         | Health Type        = Stat
         | Effective Minimum  = {{{effective minimum|}}}
+
         | Effective Minimum  = {{#expr: {{{effective minimum|}}} }}
         | Effective Minimum = {{{effective maximum|}}}
+
         | Effective Maximum = {{#expr: {{{effective maximum|}}} }}
 
   }}
 
   }}
 
   [[Category:{{#switch: {{{category|}}}
 
   [[Category:{{#switch: {{{category|}}}
     | BasicsPawn = Pawn Stat General
+
    | BasicsImportant
     | PawnCombat = Pawn Stat Combat
+
    | BasicsPawnImportant
     | PawnSocial = Pawn Stat Social
+
    | BasicsNonPawnImportant
     | PawnMisc   = Pawn Stat Misc
+
    | Basics          = Stats - Basics
     | PawnWork   = Pawn Stat Work
+
    | Pawn
     | #default   = Stat}}]]
+
     | BasicsPawn       = Stats - Pawn
 +
    | Non Pawn
 +
    | NonPawn
 +
    | BasicsNonPawn    = Stats - Non Pawn
 +
    | Terrain          = Stats - Terrain
 +
    | Meditation      = Stats - Meditation
 +
    | Mechanoid        = Stats - Mechanoid
 +
    | Apparel          = Stats - Apparel
 +
    | Buildings
 +
    | Building        = Stats - Building
 +
    | Ranged Weapon
 +
    | Ranged
 +
    | Weapon_Ranged    = Stats - Weapon (Ranged)
 +
    | Melee
 +
    | Melee Weapon
 +
    | Weapon_Melee    = Stats - Weapon (Melee)
 +
    | Ability          = Stats - Ability
 +
    | Stuff Stat Factors
 +
    | StuffStatFactors = Stats - Stuff Stat Factors
 +
    | Mechanitor      = Stats - Mechanitor
 +
    | Pawn Combat
 +
     | PawnCombat       = Stats - Pawn Combat
 +
    | Social
 +
    | Pawn Social
 +
     | PawnSocial       = Stats - Pawn Social
 +
    | Misc
 +
    | Pawn Misc
 +
     | PawnMisc         = Stats - Pawn Misc
 +
    | Work
 +
    | Pawn Work
 +
     | 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|}}} }} {{#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: {{{min value|}}} | Its default value is {{Format Number|{{{default base value|}}}|{{{to string style|}}} }}.}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
-->'''{{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>

Latest revision as of 19:17, 7 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[edit]

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%.