Template:Elements/doc

From Archaelund Wiki
< Template:Elements
Revision as of 11:34, 13 September 2020 by MikeB (talk | contribs)

Description

This template generates various output formats from raw element input.

Usage

{{Elements|<element input>|<format>}}

Make sure that <element input> is formatted correctly according to the rules given below, otherwise error messages may be generated.

Format options

FormatDescriptionInputExample output
ResistanceDisplays elemental symbols and the corresponding resistance values.vector of 6 comma-separated numbers, representing resistance values (e.g. "10,0,50,-10,0,0")
ThreatDisplays elemental symbols according to threat level.vector of 6 comma-separated numbers, representing threat level 0...2 (e.g. "0,2,0,0,1,1")

In the above-mentioned vector of 6 comma-separated number, every position corresponds to a specific element. See the subsequent list for details.

Element names and icons

IndexNameIcon
1FireFire.png
2ColdCold.png
3ShockShock.png
4ToxicPoison.png
5
6

To extract the individual element names and corresponding icons use the following syntaxes:

{{Elements/names|<element index>}}
{{Elements/icons|<element index>}}