Template:SpellAttributes
Description
This template contains the predefined spell attributes to be used within Template:Spell and takes a list of the corresponding tags (Heal • Damage • Buff • Debuff • Disable • Summon • Environment) as input. The output is a list of the description (either as text or image) to be displayed on the Wiki page.
Note that the order of the output list produced by this template is fixed, irrespective of the order of the input list. Unknown or duplicate tags are ignored.
Usage
{{SpellAttributes|<format>|<semicolon-separated list of tags>}}
Format options
| Format | Description | Example output |
|---|---|---|
| Text | Outputs a semicolon-separated list of the attribute descriptions (plain text). | provides healing;deals damage;buffs allies;debuffs enemies;disables enemies;summons creatures;manipulates environment |
| Image | Outputs a semicolon-separated list of the attribute icons, with the respective attribute description shown as a tooltip. | |
| Tag | Outputs a semicolon-separated list of all available attribute tags. This is intended for documentation purposes only. | Heal;Damage;Buff;Debuff;Disable;Summon;Environment |
The semicolon-separated output lists may further be processed by using Template:ListFormat.
How to add new spell attributes
In order to add a new attribute, you have to insert the following line in the template's code (only parts indicated by <...> may be edited):
-->{{Attribute|{{{1|}}}|{{{2|}}}|Tag=<new tag>|Text=<output text>|Image=<output icon>}}<!--
Note that the order of the attribute lines directly determines the order of the output list, so choose the position of the inserted code accordingly.
View/Edit documentation page