Difference between revisions of "Template:AttributeModifier"
From A Wiki in the Desert
Line 3: | Line 3: | ||
|Has magnitude={{{amount}}} | |Has magnitude={{{amount}}} | ||
|Has duration={{{time|-1}}} | |Has duration={{{time|-1}}} | ||
− | }}{{# | + | }}{{#ifexpr:{{{amount}}} != 0| |
− | {{# | + | {{#ifexpr:{{{amount}}}>0| |
* Increases [[{{{attribute}}}]] by <span style="color:green">{{{amount}}}</span>{{#ifeq: {{{time|0}}}|0|| for {{{time}}}s}} | * Increases [[{{{attribute}}}]] by <span style="color:green">{{{amount}}}</span>{{#ifeq: {{{time|0}}}|0|| for {{{time}}}s}} | ||
− | }}{{# | + | }}{{#ifexpr:{{{amount}}}<0| |
* Decreases [[{{{attribute}}}]] by <span style="color:red">{{{amount}}}</span>{{#ifeq: {{{time|0}}}|0|| for {{{time}}}s}} | * Decreases [[{{{attribute}}}]] by <span style="color:red">{{{amount}}}</span>{{#ifeq: {{{time|0}}}|0|| for {{{time}}}s}} | ||
}} | }} | ||
}} | }} |
Revision as of 18:48, 12 May 2021
<ul><li>Property "Affects attribute" (as page type) with input value "{{{attribute}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.</li> <!--br--><li>"{{{amount}}}" is not a number.</li></ul>Expression error: Unrecognized punctuation character "{".