Template:QuestAttributes (AL)

From Exiled Kingdoms Wiki

Description

This template contains the predefined quest attributes to be used within Template:Quest (AL) and takes a list of the corresponding tags (such as "Incomplete", "Missable", etc.) as input. The output is a list of the actual texts to be displayed on the Wiki page (e.g. "cannot be completed", "may be missed", etc.).

Note that the order of the output list produced by the template is fixed, irrespective of the order of the input list. Unknown or duplicate tags are ignored.

Usage

{{QuestAttributes (AL)|<semicolon-separated list of tags>}}

For generating a semicolon-separated list of all available tags (intended for documentation purposes) use

{{QuestAttributes (AL)|TagList}}

How to add new quest attributes

In order to add a new quest attribute to the template, you have to add the following line to the #default case of the #switch structure (only parts indicated by <...> may be edited):

-->{{#if:{{#pos:{{{1|}}}|<NewTag>}}|<desired output text>;}}<!--

Note that the order of the tag lines directly determines the order of the output list, so choose the position of the inserted code accordingly.

Also, add the new tag to the existing TagList case so it will appear in any documentation:

|TagList = ...; <NewTag>; ...

View/Edit documentation page