Template:TalentAttributes

From Archaelund Wiki
Revision as of 19:28, 18 February 2024 by MikeB (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This template contains the predefined talent attributes to be used within Template:Talent and takes a list of the corresponding tags (Reward • Enemy • Companion) 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

{{TalentAttributes|<format>|<semicolon-separated list of tags>}}

Format options

FormatDescriptionExample output
TextOutputs a semicolon-separated list of the attribute descriptions (plain text).rewarded by quest/NPC;available to enemies only;available to companions only
ImageOutputs a semicolon-separated list of the attribute icons, with the respective attribute description shown as a tooltip.rewarded by quest/NPC;available to enemies only;available to companions only
TagOutputs a semicolon-separated list of all available attribute tags. This is intended for documentation purposes only.Reward;Enemy;Companion

The semicolon-separated output lists may further be processed by using Template:ListFormat.

How to add new talent 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