Template:WeaponAttributes
Description
This template contains the predefined weapon attributes to be used within Template:Weapon and takes a list of the corresponding tags (Quest • Craftable • Crafting • Summon • Brittle) 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
{{WeaponAttributes|<format>|<semicolon-separated list of tags>}}
Format options
| Format | Description | Example output |
|---|---|---|
| Text | Outputs a semicolon-separated list of the attribute descriptions (plain text). | quest item;can be crafted;crafting material;summoned item;breakable |
| 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. | Quest;Craftable;Crafting;Summon;Brittle |
The semicolon-separated output lists may further be processed by using Template:ListFormat.
How to add new weapon 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