Difference between revisions of "Template:Infobox trait"

From RimWorld Wiki
Jump to navigation Jump to search
(test width)
 
(2 intermediate revisions by one other user not shown)
Line 92: Line 92:
 
! colspan="2" class="infoboxname" | {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
 
! colspan="2" class="infoboxname" | {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
 
|-
 
|-
! colspan="2" | {{#if: {{{image|}}} | [[File:{{{image}}}]] | [[File:Questionmark black.png|link=]]{{#ifeq: {{NAMESPACE}} | 0 | [[Category:Image wanted]]}} }}  
+
! colspan="2" | {{#if: {{{image|}}} | [[File:{{{image}}}]] | [[File:Ambox deletion.png|link=]]{{#ifeq: {{NAMESPACE}} | 0 | [[Category:Image wanted]]}} }}  
 
|-
 
|-
 
| colspan="2" | {{#if: {{{description|}}} | ''{{{description}}}'' }}
 
| colspan="2" | {{#if: {{{description|}}} | ''{{{description}}}'' }}
Line 124: Line 124:
 
| {{!}} colspan="2" class="infoboxdescription" {{!}} Trait data }}
 
| {{!}} colspan="2" class="infoboxdescription" {{!}} Trait data }}
 
|-
 
|-
{{#if: {{{aimingdelayfactor|}}} | {{!}} <div>aimingdelayfactor</div> {{!!}} {{{aimingdelayfactor}}} }}
+
{{#if: {{{aimingdelayfactor|}}} | {{!}} <div>Aiming delay factor</div> {{!!}} {{{aimingdelayfactor}}} }}
 
|-
 
|-
 
{{#if: {{{allowedmentalbreaks|}}} | {{!}} <div>Allowed mentalbreaks</div> {{!!}} {{#if:{{#pos: {{{allowedmentalbreaks}}} |,}} | {{#arraymap:{{{allowedmentalbreaks|}}}|,|x|* x|\n}} | {{{allowedmentalbreaks}}} }} }}
 
{{#if: {{{allowedmentalbreaks|}}} | {{!}} <div>Allowed mentalbreaks</div> {{!!}} {{#if:{{#pos: {{{allowedmentalbreaks}}} |,}} | {{#arraymap:{{{allowedmentalbreaks|}}}|,|x|* x|\n}} | {{{allowedmentalbreaks}}} }} }}
Line 140: Line 140:
 
{{#if: {{{marketvaluefactoroffset|}}} | {{!}} <div>Market value</div> {{!!}} {{#expr:{{{marketvaluefactoroffset}}}*100}}% }}
 
{{#if: {{{marketvaluefactoroffset|}}} | {{!}} <div>Market value</div> {{!!}} {{#expr:{{{marketvaluefactoroffset}}}*100}}% }}
 
|-
 
|-
{{#if: {{{meleedodgechance|}}} | {{!}} <div>meleedodgechance</div> {{!!}} {{{meleedodgechance}}} }}
+
{{#if: {{{meleedodgechance|}}} | {{!}} <div>Melee dodge chance</div> {{!!}} {{{meleedodgechance}}} }}
 
|-
 
|-
{{#if: {{{meleehitchance|}}} | {{!}} <div>meleehitchance</div> {{!!}} {{{meleehitchance}}} }}
+
{{#if: {{{meleehitchance|}}} | {{!}} <div>Melee hit chance</div> {{!!}} {{{meleehitchance}}} }}
 
|-
 
|-
{{#if: {{{mentalbreakthreshold|}}} | {{!}} <div>mentalbreakthreshold</div> {{!!}} {{#expr:{{{mentalbreakthreshold}}}*100}}% }}
+
{{#if: {{{mentalbreakthreshold|}}} | {{!}} <div>Mental break threshold</div> {{!!}} {{#expr:{{{mentalbreakthreshold}}}*100}}% }}
 
|-
 
|-
{{#if: {{{movespeed|}}} | {{!}} <div>movespeed</div> {{!!}} {{#expr:{{{movespeed}}}*100}}% }}
+
{{#if: {{{movespeed|}}} | {{!}} <div>Move speed</div> {{!!}} {{#expr:{{{movespeed}}}*100}}% }}
 
|-
 
|-
{{#if: {{{painshockthreshold|}}} | {{!}} <div>painshockthreshold</div> {{!!}} {{#expr:{{{painshockthreshold}}}*100}}% }}
+
{{#if: {{{painshockthreshold|}}} | {{!}} <div>Pain shock threshold</div> {{!!}} {{#expr:{{{painshockthreshold}}}*100}}% }}
 
|-
 
|-
{{#if: {{{psychicsensitivity|}}} | {{!}} <div>psychicsensitivity</div> {{!!}} {{#expr:{{{psychicsensitivity}}}*100}}% }}
+
{{#if: {{{psychicsensitivity|}}} | {{!}} <div>Psychic sensitivity</div> {{!!}} {{#expr:{{{psychicsensitivity}}}*100}}% }}
 
|-
 
|-
{{#if: {{{randomdiseasemtbdays|}}} | {{!}} <div>randomdiseasemtbdays</div> {{!!}} {{{randomdiseasemtbdays}}} }}
+
{{#if: {{{randomdiseasemtbdays|}}} | {{!}} <div>Random disease mtbdays</div> {{!!}} {{{randomdiseasemtbdays}}} }}
 
|-
 
|-
{{#if: {{{randommentalstate|}}} | {{!}} <div>randommentalstate</div> {{!!}} {{{randommentalstate}}} }}
+
{{#if: {{{randommentalstate|}}} | {{!}} <div>Random mental state</div> {{!!}} {{{randommentalstate}}} }}
 
|-
 
|-
{{#if: {{{restratemultiplier|}}} | {{!}} <div>restratemultiplier</div> {{!!}} {{#expr:{{{restratemultiplier}}}*100}}% }}
+
{{#if: {{{restratemultiplier|}}} | {{!}} <div>Rest rate multiplier</div> {{!!}} {{#expr:{{{restratemultiplier}}}*100}}% }}
 
|-
 
|-
{{#if: {{{shootingaccuracypawn|}}} | {{!}} <div>shootingaccuracypawn</div> {{!!}} {{{shootingaccuracypawn}}} }}
+
{{#if: {{{shootingaccuracypawn|}}} | {{!}} <div>Shooting accuracy</div> {{!!}} {{{shootingaccuracypawn}}} }}
 
|-
 
|-
{{#if: {{{socialfightchancefactor|}}} | {{!}} <div>socialfightchancefactor</div> {{!!}} {{{socialfightchancefactor}}} }}
+
{{#if: {{{socialfightchancefactor|}}} | {{!}} <div>Social fight chance factor</div> {{!!}} {{{socialfightchancefactor}}} }}
 
|-
 
|-
{{#if: {{{workspeedglobal|}}} | {{!}} <div>workspeedglobal</div> {{!!}} {{#expr:{{{workspeedglobal}}}*100}}% }}
+
{{#if: {{{workspeedglobal|}}} | {{!}} <div>Work speed global</div> {{!!}} {{#expr:{{{workspeedglobal}}}*100}}% }}
 
|}
 
|}
 
<!-- Auto categories --><!--
 
<!-- Auto categories --><!--

Latest revision as of 12:24, 10 March 2022

This template defines the table "Trait". This table has not been created yet.

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage[edit]

{{Infobox trait
| name                    = 
| defname                 = 
| image                   = 
| description             = 
| description_markup      = 
<!--   Degree -->
| degree                  = 
<!--   General   -->
| commonality             = 
| commonalityfemale       = 
| conflictingtraits       = 
| disabledworktags        = 
| requiredworktags        = 
<!--   Skill gains   -->
| skillgains1key          = 
| skillgains1value        = 
| skillgains2key          = 
| skillgains2value        = 
<!--   Degree data   -->
| aimingdelayfactor       = 
| allowedmentalbreaks     = 
| disallowedinspirations  = 
| disallowedmentalstates  = 
| globallearningfactor    = 
| hungerratemultiplier    = 
| immunitygainspeed       = 
| marketvaluefactoroffset = 
| meleedodgechance        = 
| meleehitchance          = 
| mentalbreakthreshold    = 
| movespeed               = 
| painshockthreshold      = 
| psychicsensitivity      = 
| randomdiseasemtbdays    = 
| randommentalstate       = 
| restratemultiplier      = 
| shootingaccuracypawn    = 
| socialfightchancefactor = 
| workspeedglobal         = 
}}