Difference between revisions of "Template:GoodBad%"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "{{#ifexpr:{{{1}}}>1|{{Good|{{%|{{{1}}}|{{{2}}}}}}}|{{#ifexpr:{{{1}}}<1|{{Bad|{{%|{{{1}}}|{{{2}}}}}}}|{{%|{{{1}}}|{{{2}}}}}}}}}")
 
 
Line 1: Line 1:
{{#ifexpr:{{{1}}}>1|{{Good|{{%|{{{1}}}|{{{2}}}}}}}|{{#ifexpr:{{{1}}}<1|{{Bad|{{%|{{{1}}}|{{{2}}}}}}}|{{%|{{{1}}}|{{{2}}}}}}}}}
+
<includeonly>{{#ifexpr:{{{1}}}>1|{{Good|{{%|{{{1}}}|{{{2}}}}}}}|{{#ifexpr:{{{1}}}<1|{{Bad|{{%|{{{1}}}|{{{2}}}}}}}|{{%|{{{1}}}|{{{2}}}}}}}}}</includeonly><noinclude>
 +
{{Documentation}}
 +
</noinclude>

Latest revision as of 10:13, 26 December 2024

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

Produces the text from Template:%, but colored with Template:Good if it is larger than 100%, and Template:Bad if it is less than 100%

CodeResult
{{GoodBad%|1.23224|1}}123.2%
{{GoodBad%|0.75322|1}}75.3%
{{GoodBad%|1|1}}100%