Template:Up

From RimWorld Wiki
Revision as of 00:33, 16 November 2024 by Harakoni (talk | contribs) (Created page with "<includeonly><!-- --><span style="color:DarkOrange; <!-- -->{{#switch: {{{2}}} | #default = font-weight:bold | n = font-weight:normal | normal = font-weight:normal | b = font-...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Documentation icon Template documentation[view] [edit] [history] [purge]

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[edit]

{{Up|Higher value}}

produces: Higher 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[edit]