Template:Spell action icon link

From bg3.wiki
(Redirected from Template:Sai)
Jump to navigation Jump to search
Template documentation
Shortcut

A universal link template for Spells and Actions. Once all Ability Icons get converted to Ability_Icon.webp it will be complete.

Works for spells:

Markup Renders as
{{SAI|Magic Missile}}
Magic MissileMagic Missile
{{SAI|Enlarge/Reduce}}
Enlarge/ReduceEnlarge/Reduce

And abilities:

Markup Renders as
{{SAI|Frenzy}}
FrenzyFrenzy
{{SAI|Guided Strike}}
Guided StrikeGuided Strike
{{SAI|Acolyte of Nature}}
Acolyte of NatureAcolyte of Nature
{{SAI|Rage: Bear Heart}}
Rage: Bear HeartRage: Bear Heart
{{SAI|Metamagic: Twinned Spell}}
Metamagic: Twinned SpellMetamagic: Twinned Spell

But as for conditions, not all conditions are supported this way. If the link name contains :, /, ( or ), they will be removed in the icon name. In some cases, inline use is undesirable for passive features, in which case use Template:PAS.

Can change its size:

Markup Renders as
{{SAI|Power Word Kill|w=40}}
Power Word KillPower Word Kill

Can have alternative link text as well as change its size:

Markup Renders as
{{SAI|Power Word Kill|Alias Link|w=40}}
Alias LinkAlias Link

You can also add Concentration and Ritual icons:

Markup Renders as
{{SAI|Aid|c=16}}
AidAid
{{SAI|Disguise Self|r=16}}
Disguise SelfDisguise Self
{{SAI|Silence|c=16|r=16}}
SilenceSilence

...where the number is the size of the icon. Best to keep it 16px.

Inline example

Lorem ipsum dolor sit amet, consectetur Guided StrikeGuided Strike elit. Sed porta ornare ipsum nec hendrerit. Etiam tempus placerat dui, nec ornare neque tempus sit amet. Integer convallis erat eget sollicitudin mattis. Integer vehicula consectetur risus, eu suscipit lacus faucibus a. Aliquam tempor sagittis dignissim. Vestibulum sed faucibus nibh. Donec in pharetra ex. Suspendisse potenti.

See also

  • {{LgSAI}} - sets the default size to 40 instead of 25
  • {{MdSAI}} - sets the default size to 30 instead of 25
  • {{SmSAI}} - sets the default size to 20 instead of 25

Template parameters

Inserts a link for a spell or ability.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
name1

Name of the ability

Page namerequired
alias2

Alias for the link text

Stringoptional
Widthw

Override the width of the image.

Numberoptional
Heighth

Override the height of the image.

Numberoptional
Sizesize

Set the size of the image to this by this.

Numberoptional
Blockblock

Whether to wrap the icon and link in a container HTML element.

Stringoptional
Gapgap

If 'block' is set, the exact gap to use between the icon and link.

Numberoptional
Nowrapnowrap

If specified, will add the nowrap css style to the span.

Stringoptional
concentration iconc

Icon size in pixels of the concentration icon. Hidden by default

Numberoptional
ritual iconr

Icon size in pixels of the ritual icon. Hidden by default

Numberoptional