Template:Timed Effect: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
m (CptTwinkie moved page Template:Effect Specification to Template:Timed Effect without leaving a redirect)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{name|}}}|<!--true--><h2>{{{name}}}</h2>|<!--false--><h2>Effect Specification</h2>}}
{{#if:{{{name|}}}|<!--true--><h2>Timed Effect: {{{name}}}</h2>|<!--false--><h2>Timed Effect</h2>}}
;Stat
;Effect
<p style="margin-left: 1.6em;">{{{stat|<Information Missing>}}}{{#if:{{{stat|}}}|<!--true-->|<includeonly>[[Category:Missing_information]]</includeonly>}}</p>
<p style="margin-left: 1.6em;">{{{regen|<Information Missing>}}}&nbsp;{{{stat|<Information Missing>}}}{{#if:{{{omitSeconds|}}}|<!--true-->|<!--false-->&nbsp;per&nbsp;second}}{{#if:{{{stat|}}}|<!--true-->|<includeonly>[[Category:Missing_information]]</includeonly>}}{{#if:{{{regen|}}}|<!--true-->|<includeonly>[[Category:Missing_information]]</includeonly>}}</p>
;Amount
<p style="margin-left: 1.6em;">{{{regen|<Information Missing>}}}&nbsp; per second{{#if:{{{regen|}}}|<!--true-->|<includeonly>[[Category:Missing_information]]</includeonly>}}</p>
;Duration
;Duration
<p style="margin-left: 1.6em;">{{{duration|<Information Missing>}}}&nbsp;second(s){{#if:{{{duration|}}}|<!--true-->|<includeonly>[[Category:Missing_information]]</includeonly>}}</p>
<p style="margin-left: 1.6em;">{{{duration|<Information Missing>}}}&nbsp;seconds{{#if:{{{duration|}}}|<!--true-->|<includeonly>[[Category:Missing_information]]</includeonly>}}</p>
{{#if:{{{category|}}}|<!--TRUE-->;Category
{{#if:{{{category|}}}|<!--TRUE-->;Category
<p style="margin-left: 1.6em;">{{{category|}}}</p>}}<!--
<p style="margin-left: 1.6em;">{{{category|}}}</p>}}<!--
Line 11: Line 9:
--><noinclude>
--><noinclude>
==Usage==
==Usage==
The Effect Specification template is meant to be used with any item that can add a timed stat effect to the character. Usually these are from consumable items or combat.
The Timed Effect template is meant to be used with any item that can add a timed stat effect to the character. Usually these are from consumable items or combat.
<pre>{{Effect_Specification
<pre>{{Timed_Effect
|name=<Name>
|name=<Name>
|stat=<StatName>
|stat=<StatName>
Line 18: Line 16:
|duration=<DurationInSeconds>
|duration=<DurationInSeconds>
|category=<CategoryName>?
|category=<CategoryName>?
|omitSeconds=<true>?
}}</pre>
}}</pre>
*The code above can be pasted into your page and edited.
*The code above can be pasted into your page and edited.

Latest revision as of 20:04, 19 July 2022

Timed Effect

Effect

<Information Missing> <Information Missing> per second

Duration

<Information Missing> seconds

Usage

The Timed Effect template is meant to be used with any item that can add a timed stat effect to the character. Usually these are from consumable items or combat.

{{Timed_Effect
|name=<Name>
|stat=<StatName>
|regen=<RegenPerSecond>
|duration=<DurationInSeconds>
|category=<CategoryName>?
|omitSeconds=<true>?
}}
  • The code above can be pasted into your page and edited.
  • Most attributes are required and will display <Information Missing> if not provided. Items marked with a "?" are optional.
  • Category:Missing_information is added conditionally.

ORDERED TEMPLATE: This template is typically used on pages with other templates. It should be added in the order specified in Template Ordering.