Template:Up/doc

From RimWorld Wiki
< Template:Up
Revision as of 00:38, 16 November 2024 by Harakoni (talk | contribs) (Created page with "Because the effects of stats, effects, and other changes can be somewhat obscure, beneficial and detrimental effects on this wiki are displayed as green and red respectively v...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Because the effects of stats, effects, and other changes can be somewhat obscure, beneficial and detrimental effects on this wiki are displayed as green and red respectively via Template:+, Template:++, Template:--, Template:---, Template:Good, and Template:Bad.

This template, along side Template:Down, add the option to format text similarly without making a judgement about whether an effect is beneficial or detrimental.

For ease of use, it also formats any "-" and "x" into "−" and "×" respectively. This can be suppressed by the noFormat argument.

Example

{{Up|Lowering value}}

produces: Lowering value as a result.

{{Up|x5}}

produces: ×5 as a result.

{{Up|-5}}

produces: −5 as a result.

{{Up|x5|noFormat=1}}

produces: x5 as a result.

{{Up|-5|noFormat=1}}

produces: -5 as a result.

{{Up|5x5}}

produces: 5x5 as a result.

{{Up|5x5|noFormat=1}}

produces: 5x5 as a result.

{{Up|5-5}}

produces: 5−5 as a result.

{{Up|5-5|noFormat=1}}

produces: 5-5 as a result.

See also