Difference between revisions of "Template:Bad/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "{{Documentation wanted}} <pre>{{Bad|Bad thing}}</pre> produces: {{Bad|Bad thing}} as a result. <pre>{{Bad|x5}}</pre> produces: {{Bad|x5}} as a result. <pre>{{Bad|-5}}</pre>...")
 
 
Line 1: Line 1:
{{Documentation wanted}}
+
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. When dealing with number additions and subtractions, [[Template:+]], [[Template:++]], [[Template:--]], and [[Template:---]] are useful, however, they add a symbol before the text which isn't always appropriate. This template, along side [[Template:Good]], add the option to format text similarly without the symbol.
 +
 
 +
For ease of use, it also formats any "-" and "x" into "−" and "×" respectively. This can be suppressed by the noFormat argument.
 +
 
 +
== Example ==
 +
 
 
<pre>{{Bad|Bad thing}}</pre>
 
<pre>{{Bad|Bad thing}}</pre>
 
produces: {{Bad|Bad thing}} as a result.
 
produces: {{Bad|Bad thing}} as a result.
Line 28: Line 33:
  
 
==See Also==
 
==See Also==
*[[Template: Good]]
+
* [[Template: Good]]
*[[Template:++]]
+
* [[Template:+]]
*[[Template:--]]
+
* [[Template:++]]
*[[Template:---]]
+
* [[Template:--]]
 +
* [[Template:---]]
  
 
<includeonly>[[Category:Formatting templates]]</includeonly>
 
<includeonly>[[Category:Formatting templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 22:19, 15 February 2023

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. When dealing with number additions and subtractions, Template:+, Template:++, Template:--, and Template:--- are useful, however, they add a symbol before the text which isn't always appropriate. This template, along side Template:Good, add the option to format text similarly without the symbol.

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

Example[edit]

{{Bad|Bad thing}}

produces: Bad thing as a result.

{{Bad|x5}}

produces: ×5 as a result.

{{Bad|-5}}

produces: −5 as a result.

{{Bad|x5|noFormat=1}}

produces: x5 as a result.

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

produces: -5 as a result.

{{Bad|5x5}}

produces: 5x5 as a result.

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

produces: 5x5 as a result.

{{Bad|5-5}}

produces: 5−5 as a result.

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

produces: 5-5 as a result.

See Also[edit]