A Wiki in the Desert
Log in

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}}}
}}{{#if:{{{amount}}}>0|* Increases [[{{{attribute}}}]] by <span style="color:green">{{{amount}}}</span>{{#ifeq: {{{time|0}}}|0||&nbsp;for {{{time}}}s}}}}{{#if:{{{amount}}}<0|* Decreases [[{{{attribute}}}]] by <span style="color:red">{{{amount}}}</span>{{#ifeq: {{{time|0}}}|0||&nbsp;for {{{time}}}s}}}}
+
}}{{#if:{{{amount}}}!=0|
 +
{{#if:{{{amount}}}>0|
 +
* Increases [[{{{attribute}}}]] by <span style="color:green">{{{amount}}}</span>{{#ifeq: {{{time|0}}}|0||&nbsp;for {{{time}}}s}}
 +
}}{{#if:{{{amount}}}<0|
 +
* Decreases [[{{{attribute}}}]] by <span style="color:red">{{{amount}}}</span>{{#ifeq: {{{time|0}}}|0||&nbsp;for {{{time}}}s}}
 +
}}

Revision as of 18:45, 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>{{#if:{{{amount}}}!=0|

  • Increases [[{{{attribute}}}]] by {{{amount}}}
  • Decreases [[{{{attribute}}}]] by {{{amount}}}