Template:ConditionChange: Difference between revisions
(Creating a sub-template for evaluating a status moodlet's change value and coloring it red or green as appropriate.) |
(Realized since all moodlets follow the same semantics (a negative value is a positive change) I could greatly simplify the template) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#ifexpr:{{{ | {{#ifexpr:{{{moodletchange|0}}}>0|'''{{{Moodlet Name}}}:''' <font style="color:red">{{{moodletchange}}}</font>}} | ||
{{#ifexpr:{{{moodletchange|0}}}<0|'''{{{Moodlet Name}}}:''' <font style="color:green">{{{moodletchange}}}</font>}} | |||
{{#ifexpr:{{{DangerousUncooked|0}}}=1|<font style="color:red">This food is dangerous uncooked and may make you [[Moodles#Sick|sick]].</font>}} | |||
{{#ifexpr:{{{ | {{#ifexpr:{{{WillMakeSick|0}}}=1|<font style="color:red">Consuming this will make you [[Moodles#Sick|sick]].</font>}} | ||
{{#ifexpr:{{{ | |||
{{#ifexpr:{{{ | |||
</includeonly> | </includeonly> | ||
Revision as of 01:45, 10 December 2013
This template doesn't have any documentation yet! Help out by writing some.
Documentation transcluded from Template:ConditionChange/doc.
Editors can experiment in this template's sandbox (create)
Editors can experiment in this template's sandbox (create)