Jump to content

Template:Affinity/doc

From Neptunia Wiki

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  Fire
ice  Ice
lightning  Lightning
wind  Wind
neutral  Neutral
 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
 Fire  Ice  Lightning  Wind  Neutral
1  Fire  Ice  Lightning  Wind  Neutral
2  Fire  Ice  Lightning  Wind  Neutral
3  Fire  Ice  Lightning  Wind  Neutral
4  Fire  Ice  Lightning  Wind  Neutral
5  Fire  Ice  Lightning  Wind  Neutral

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 : px 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:

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
type1

Affinity type.

Default
neutral
Example
fire
Auto value
Stringsuggested
level2

Affinity level

Default
none
Example
3
Numberoptional
size3

Size in pixels to display affinity icon.

Default
32 if | is ommitted.

64 if | is present but left blank(full image size).

Example
24
Numberoptional
plainplain

If set true, omitts text label.

Default
false
Booleanoptional