Template:ConditionChange: Difference between revisions
(Realized since all moodlets follow the same semantics (a negative value is a positive change) I could greatly simplify the template) |
(Updated input varible names to use consistent semantics and attempting to fix formatting issues.) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#ifexpr:{{{ | {{#ifexpr:{{{MoodletChange|0}}}>0|'''{{{MoodletName}}}:''' <font style="color:red">{{{moodletchange}}}</font>}}{{#ifexpr:{{{MoodletChange|0}}}<0|'''{{{MoodletName}}}:''' <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:{{{WillMakeSick|0}}}=1|<font style="color:red">Consuming this will make you [[Moodles#Sick|sick]].</font>}} | ||
{{#ifexpr:{{{ | |||
{{#ifexpr:{{{DangerousUncooked|0}}}=1|<font style="color:red">This food is dangerous uncooked and may make you [[Moodles#Sick|sick]].</font>}} | |||
{{#ifexpr:{{{WillMakeSick|0}}}=1|<font style="color:red">Consuming this will make you [[Moodles#Sick|sick]].</font>}} | |||
</includeonly> | </includeonly> | ||
Revision as of 02:03, 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)