Difference between revisions of "Template:+"

From RimWorld Wiki
Jump to navigation Jump to search
(Test)
m (simplification)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><span style="color:forestgreen; {{#if: {{{2|}}}|{{#switch: {{{2|}}} | n = font-weight:normal | normal = font-weight:normal | b = font-weight:bold | bold = font-weight:bold}};"|font-weight:bold}};">+{{{1}}}</span><nowiki /></includeonly>
+
<includeonly><span style="color:forestgreen; {{#switch: {{{2}}}
 +
  | #default = font-weight:bold
 +
  | n | normal = font-weight:normal
 +
  <!--| b | bold = font-weight:bold-->
 +
}}">+{{{1|}}}</span></includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 11:38, 14 December 2022

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

Description[edit]

This template is creates an easy method for making statements such as Mining +5 get a green + sign and number, the manner in which they are presented in the game.

Syntax[edit]

Some text here {{+|value}}

By default, values are bolded. See the examples below for usage where this is not desirable.

Usage[edit]

Use this template any time you are referencing positive additions to skills, stats, moods, and the like.

Rarely an addition may be detriment to the player. A prime example would be Mental break threshold +12. In these cases, use the {{++}} template instead and the text will be highlighted red in order to make it obvious to the player the modifier is a detrimental.

By default, the result will be bolded. You may also call the following parameters after the value to change this behavior: |n (non-bold) or |normal.

Samples[edit]

Example 1[edit]

This code:

Mining {{+|5}}

produces the following result:

Mining +5

Example 2[edit]

This code:

Construction {{+|8|n}}

produces the following result:

Construction +8


This code:

Construction {{+|8|normal}}

produces the following result:

Construction +8


See Also[edit]