Template to display the affinity icon and text label.
{{Affinity|''type''|''level''|''size''|plain=''true''}}
type
The affinity type to display. Case insensitive. Defaults to Neutral.
| Value | Result |
|---|---|
| fire | |
| ice | |
| lightning | |
| wind | |
| neutral | |
level
The affinity level to display. Valid values are 1 to 5 or left blank, other values will display a, presumably unexisting file link. Neutral ignores this value.
| Value | Fire | Ice | Lightning | Wind | Neutral |
|---|---|---|---|---|---|
| 1 | |||||
| 2 | |||||
| 3 | |||||
| 4 | |||||
| 5 |
size
The size in pixels to display the affinity image.
Example: {{Affinity|fire||48}} Result:
Fire
Defaults to 32px if the | is omitted.
Example: {{Affinity|fire|}} or {{Affinity|fire}} Result:
Fire
Defaults to 64px(full image size) if the | is included but no value entered.
Example: {{Affinity|fire||}} Result :
Fire
plain
If plain=true is specified, the text label is omitted.
If omitted, or for any other value, the text label is displayed.
Example: {{Affinity|fire|3|plain=true}} Result:
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| type | 1 | Affinity type.
| String | suggested |
| level | 2 | Affinity level
| Number | optional |
| size | 3 | Size in pixels to display affinity icon.
| Number | optional |
| plain | plain | If set true, omitts text label.
| Boolean | optional |