Difference between revisions of "Template:++"

From RimWorld Wiki
Jump to navigation Jump to search
(Creation)
 
m (simplification)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly><!--
+
<includeonly><span style="color:firebrick; {{#switch: {{{2}}}
--><span style="color:firebrick; <!--
+
  | #default = font-weight:bold
-->{{#switch: {{{2}}}
+
  | n | normal = font-weight:normal
| #default = font-weight:bold
+
  <!--| b | bold = font-weight:bold-->
| n = font-weight:normal
+
}}">+{{{1|}}}</span></includeonly><noinclude>{{Documentation}}</noinclude>
| normal = font-weight:normal
 
| b = font-weight:bold
 
| bold = font-weight:bold
 
}}"><!--
 
-->+{{{1}}}<!--
 
--></span><nowiki /></includeonly><!--
 
--><noinclude><!--
 
-->{{Documentation}}<!--
 
-->[[Category:Templates]]<!--
 
--></noinclude><!--
 

Latest revision as of 11:40, 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 Mental break threshold +12 get replaced with a red + symbol 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.

In most cases, you'll want to use {{+}} when a bonus to a stat is a benefit to the player. This template is to highlight only cases where an increase is a detriment.

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

Samples[edit]

Example 1[edit]

This code:

Mental break threshold {{++|12}}

produces the following result:

Mental break threshold +12

Example 2[edit]

This code:

Mental break threshold {{++|12|n}}

produces the following result:

Mental break threshold +12


This code:

Mental break threshold {{++|12|normal}}

produces the following result:

Mental break threshold +12


See Also[edit]