Template:Spell link

From dos2.wiki
Jump to navigation Jump to search
Template documentation

Displays a skill or spell as a clickable image block – the icon is shown above the linked name, the same way {{Image link}} works – but the icon filename is auto-resolved from the skill name using the same logic as {{SAI}}.

Characters :, /, (, and ) are stripped from the name when building the icon filename, and Icon.webp is appended.

Examples

Standard width/height is 50:

Markup Renders as
{{Spell link|First Aid}}
{{Spell link|Raise Bloated Corpse}}

Custom link text:

Markup Renders as
{{Spell link|First Aid|Heal Ally}}

Custom width and height:

Markup Renders as
{{Spell link|First Aid|w=50|h=50}}
{{Spell link|Raise Bloated Corpse|w=80|h=80|font size=80%}}

See also

  • {{SAI}} – inline icon + link (same icon resolution)
  • {{Image link}} – image block with manually specified icon

Template parameters

Displays a skill/spell as a clickable image block with an auto-resolved icon.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Name1

Name of the skill or spell. Also used to resolve the icon filename.

Page namerequired
Text2

Override the displayed link text.

Stringoptional
Widthw

Width of the image block in pixels.

Default
50
Numberoptional
Heighth

Height of the image block in pixels.

Default
50
Numberoptional
Font sizefont size

Font size for the link text (e.g. 80%).

Stringoptional