Template:Elements/doc
From Archaelund Wiki
Description
This template generates various output formats from raw element input.
Usage
{{Elements|<element input>|<format>}}
Make sure that the element input is formatted correctly, otherwise error messages may be generated.
Format options
| Format | Description | Input | Example output |
|---|---|---|---|
| Resistance | Displays elemental symbols and the corresponding resistance values. | vector of 6 comma-separated numbers, representing resistance values (e.g. 10,0,50,-10,0,0) | |
| Threat | Displays 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) |
Element names and icons
To extract the individual element names and corresponding icons use the following syntaxes:
{{Elements/names|<element index>}}
{{Elements/icons|<element index>}}
Here, the element index 1...6 corresponds to the element's position in the above-mentioned element vector.