Template:Spell action icon link
This Template page is licensed under CC BY-SA 4.0. See bg3.wiki's Template:Spell_action_icon_link for the original. |
- {{SAI}}
A universal link template for Spells and Actions. Once all Ability Icons get converted to Ability_Icon.webp it will be complete.
Works for skills:
| Markup | Renders as |
|---|---|
{{SAI|First Aid}} | First Aid |
{{SAI|Raise Bloated Corpse}} | Raise Bloated Corpse |
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|Raise Bloated Corpse|w=40}} | Raise Bloated Corpse |
Can have alternative link text as well as change its size:
| Markup | Renders as |
|---|---|
{{SAI|Raise Bloated Corpse|Alias Link|w=40}} | Alias Link |
...where the number is the size of the icon. Best to keep it 16px.
Inline example
Lorem ipsum dolor sit amet, consectetur 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.
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| name | 1 | Name of the ability | Page name | required |
| alias | 2 | Alias for the link text | String | optional |
| Width | w | Override the width of the image. | Number | optional |
| Height | h | Override the height of the image. | Number | optional |
| Size | size | Set the size of the image to this by this. | Number | optional |
| Block | block | Whether to wrap the icon and link in a container HTML element. | String | optional |
| Gap | gap | If 'block' is set, the exact gap to use between the icon and link. | Number | optional |
| Nowrap | nowrap | If specified, will add the nowrap css style to the span. | String | optional |
| concentration icon | c | Icon size in pixels of the concentration icon. Hidden by default | Number | optional |
| ritual icon | r | Icon size in pixels of the ritual icon. Hidden by default | Number | optional |