Template:ConditionChange
This template is a sub-template for use by other templates like the items and consumables template.
Description
It currently has three functions:
- It is designed to evaluate the value of changes to status moodlets and color the value red or green as appropriate.
- It will display warning text if a food is dangerous to eat.
- It will display warning text if a food is dangerous to eat only when uncooked.
Parameters
MoodletName
- An arbitrary text string which will be repeated back verbatim as italicized text.
MoodletChange
- A signed integer value that is evaluated and colored green if a negative number, and red if a positive integer.
DangerousUncooked
- A binary true/false value that if true will display warning text.
WillMakeSick
- A binary true/false value that if true will display warning text.
Examples
Status moodle changes
{{ConditionChange|MoodletName=Thirst|MoodletChange=+15}}
- Produces
Thirst: +15
{{ConditionChange|MoodletName=OopsIMadeATypo|MoodletChange=-15}}
- Produces
OopsIMadeATypo: -15
Status moodle warnings
{{ConditionChange|DangerousUncooked=1}}
- Produces
Dangerous uncooked, may cause sickness.
{{ConditionChange|WillMakeSick=1}}
- Produces
Dangerous, will cause sickness.