Difference between revisions of "Template:Stat"
Jump to navigation
Jump to search
Tag: Undo |
m (Additional parameters) |
||
Line 5: | Line 5: | ||
| 0 | no | n | f | false = | | 0 | no | n | f | false = | ||
| #default = | | #default = | ||
− | {{#set: Description | + | {{#set: Description = {{{description|}}} |
− | + | | Def Name = {{{def name|}}} | |
− | + | | Label = {{{label|}}} | |
− | + | | Stat Maximum = {{{max value|}}}<!-- 9999999 --> | |
− | + | | Stat Minimum = {{{min value|}}}<!-- -9999999 --> | |
− | + | | Default Base Value = {{{default base value|}}}<!-- 1 --> | |
− | + | | To String Style = {{{to string style|}}} | |
− | + | | Health Type = Stat | |
+ | | 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 | |
− | + | | Basics Important | |
− | + | | BasicsImportant = Stats - Important | |
− | + | | Pawn Important | |
− | + | | Basics Pawn Important | |
− | + | | BasicsPawnImportant = Stats - Pawn Important | |
− | + | | NonPawnImportant | |
− | + | | Basics Non Pawn Important | |
− | + | | BasicsNonPawnImportant = Stats - Non Pawn Important | |
− | + | | Basics = Stats - Basics | |
− | + | | Pawn | |
− | + | | 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|}}} | (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|}}} | (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> | + | -->'''{{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|}}} | (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|}}} | (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 02:56, 21 September 2024
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. Its minimum allowed value is 0.15. Its default value is 3.
Table
Stat is a stat: Speed of movement in cells per second. Its minimum allowed value is 0.15. Its default value is 3.
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. |