Template:AreaAttributes (AL)

From Exiled Kingdoms Wiki

Description

This template contains the predefined area attributes to be used within Template:Area (AL) and takes a list of the corresponding tags (such as "Townhall", "Resting", etc.) as input. The output is a list of the actual texts to be displayed on the Wiki page (e.g. "contains town hall", "contains resting place", 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

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

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

{{AreaAttributes (AL)|TagList}}

How to add new area attributes

In order to add a new area 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