Difference between revisions of "Template:GoodBad%"
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
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%
Code | Result |
---|---|
{{GoodBad%|1.23224|1}} | 123.2% |
{{GoodBad%|0.75322|1}} | 75.3% |
{{GoodBad%|1|1}} | 100% |
The above documentation is transcluded from Template:GoodBad%/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |