Template:SAI: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Fix sizing)
No edit summary
Line 27: Line 27:
|}
|}


But as for conditions, not all conditions are supported this way.
But as for conditions, not all conditions are supported this way. If the link name contains {{InfoBlob|:}}, {{InfoBlob|/}}, {{InfoBlob|(}} or {{InfoBlob|)}}, they will be removed in the file-link.


Can have alternative link text: {{InfoBlob|<nowiki>{{SAI|Power Word Kill|Alias Link|w=34}}</nowiki>}}
Can have alternative link text: {{InfoBlob|<nowiki>{{SAI|Power Word Kill|Alias Link|w=34}}</nowiki>}}

Revision as of 10:42, 24 September 2023

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

Works for spells:

{{SAI|Magic Missile}} {{SAI|Enlarge/Reduce}}
Magic Missile Magic Missile Enlarge/Reduce Enlarge/Reduce

And abilities:

{{SAI|Frenzy}} {{SAI|Guided Strike}} {{SAI|Acolyte of Nature}} {{SAI|Rage: Bear Heart}} {{SAI|Metamagic: Twinned Spell}} {{SAI|Bardic Inspiration (Condition)}}
Frenzy Frenzy Guided Strike Guided Strike Acolyte of Nature Acolyte of Nature Rage: Bear Heart Rage: Bear Heart Metamagic: Twinned Spell Metamagic: Twinned Spell Bardic Inspiration (Condition) Bardic Inspiration (Condition)

But as for conditions, not all conditions are supported this way. If the link name contains :, /, ( or ), they will be removed in the file-link.

Can have alternative link text: {{SAI|Power Word Kill|Alias Link|w=34}}

Alias Link Alias Link

Inline example

Lorem ipsum dolor sit amet, consectetur Guided Strike Guided 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.

Template parameters

Inserts a link for a spell or ability.

Template parameters

ParameterDescriptionTypeStatus
11

Name of the ability

Unknownrequired
22

(optional) Alias for the link text

Unknownoptional
ww

(optional) Icon width. Defaults to 24

Numberoptional
hh

(optional) Icon height

Numberoptional
sizesize

(optional) The size of the icon. This is equivalent to the "w" parameter. Defaults to 24.

Unknownoptional
blockblock

no description

Unknownoptional
gapgap

no description

Unknownoptional