Difference between revisions of "Template:Thought"

From RimWorld Wiki
Jump to navigation Jump to search
(Recoding done. Added optional value2 to value6. Disabled the stacking tooltips for that case since they don't make much sense)
 
Line 1: Line 1:
<includeonly>{{Hover title|{{#if:{{{stack|}}}|Stacking {{{stack}}} times {{#ifeq:{{{multi|1}}}|1|for a maximum of {{#expr: {{{value}}} * {{{stack|1}}}}}|with a {{{multi}}} multiplier for maximum of {{#expr: {{{value}}} * ( 1 - {{{multi}}}^{{{stack|1}}})/(1 - {{{multi}}}) round 0}}}}|{{#ifeq:{{{multi|1}}}|1|Stacking infinitely|Stacking with a {{{multi}}} multiplier for maximum of {{#expr: {{{value}}} * ( 1 - {{{multi}}}^100)/(1 - {{{multi}}}) round 0}}}}}}|{{#ifexpr:{{{value}}}<0|{{Bad|{{{value}}}}}|{{Good|{{{value}}}}}}}}} {{Hover title|{{{desc|}}}|''{{ucfirst:{{{label}}}}}''}} [[mood]]{{#if:{{{duration|}}}|<nowiki> </nowiki>for {{{duration}}} [[time|day]]{{#ifeq: {{{duration}}}|1||s}}}}</includeonly><noinclude>{{Recode|reason=Solution to [[Ideoligion#Gauranlen connection]] and [[Ideoligion#Ranching]] where you might want to display something like '''0'''/{{--|1}}/{{--|2}}/{{--|4}}/{{--|6}}}}{{Documentation}}</noinclude>
+
<includeonly>{{#if:{{{value2|}}}||<abbr title="{{#if:{{{stack|}}}|Stacking {{{stack}}} times {{#ifeq:{{{multi|1}}}|1|for a maximum of {{#expr: {{{value}}} * {{{stack|1}}}}}|with a {{{multi}}} multiplier for maximum of {{#expr: {{{value}}} * ( 1 - {{{multi}}}^{{{stack|1}}})/(1 - {{{multi}}}) round 0}}}}|{{#ifeq:{{{multi|1}}}|1|Stacking infinitely|Stacking with a {{{multi}}} multiplier for maximum of {{#expr: {{{value}}} * ( 1 - {{{multi}}}^100)/(1 - {{{multi}}}) round 0}}}}}}">}}<!--
 +
-->{{#ifexpr: {{{value}}}<0 | {{Bad|{{{value}}} }} | {{Good|{{{value}}} }} }}<!--
 +
-->{{#if: {{{value2|}}} | '''/'''{{#ifexpr: {{{value2}}}<0 | {{Bad|{{{value2}}} }} | {{Good|{{{value2}}} }} }} }}<!--
 +
-->{{#if: {{{value3|}}} | '''/'''{{#ifexpr: {{{value3}}}<0 | {{Bad|{{{value3}}} }} | {{Good|{{{value3}}} }} }} }}<!--
 +
-->{{#if: {{{value4|}}} | '''/'''{{#ifexpr: {{{value4}}}<0 | {{Bad|{{{value4}}} }} | {{Good|{{{value4}}} }} }} }}<!--
 +
-->{{#if: {{{value5|}}} | '''/'''{{#ifexpr: {{{value5}}}<0 | {{Bad|{{{value5}}} }} | {{Good|{{{value5}}} }} }} }}<!--
 +
-->{{#if: {{{value6|}}} | '''/'''{{#ifexpr: {{{value6}}}<0 | {{Bad|{{{value6}}} }} | {{Good|{{{value6}}} }} }} }}<!--
 +
-->{{#if:{{{value2|}}}||</abbr>}} <abbr title="{{{desc|}}}">''{{ucfirst:{{{label}}}}}''</abbr> [[mood]]{{#if:{{{duration|}}}|<nowiki> </nowiki>for {{{duration}}} [[time|day]]{{#ifeq: {{{duration}}}|1||s}}}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 14:18, 20 July 2023

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

A standardized way of formatting and displaying thoughts.

Thoughts have the following parameters, and ideally all of them will be displayed, at least optionally:

  • Label label
  • Mood value value, value2, value3, value4, value5, value6
  • Description desc
  • Duration duration
  • Stack limit stack
  • Stack multiplier multi

Examples[edit]

{{Thought|desc=A cute animal nuzzled me|label=Nuzzled|value=+6|multi=0.75|stack=4|duration=1}}

+6 Nuzzled mood for 1 day

{{Thought|desc=Someone covered me with onions|label=Garnished with onions|value=-10|stack=10|duration=0.5}}

−10 Garnished with onions mood for 0.5 days

{{Thought|desc=Without a neural supercharge, I'm running below my true capacity. It's depressing.|label=want neural supercharge|value=-6|stack=1}} 

−6 Want neural supercharge mood

{{Thought|desc=We've got slaves. It means we're on the right path.|label=slaves in colony|value=+1}} 

+1 Slaves in colony mood

{{Thought|desc=I am happily connected to a Gauranlen tree.|label=Gauranlen connection|value=+3|value2=+0|value3=-1|value4=-2|value5=-4|value6=-6}}

+3/+0/−1/−2/−4/−6 Gauranlen connection mood