Template:Spell action icon link
- {{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 spells:
| Markup | Renders as |
|---|---|
{{SAI|Magic Missile}} | Magic Missile |
{{SAI|Enlarge/Reduce}} | Enlarge/Reduce |
And abilities:
| Markup | Renders as |
|---|---|
{{SAI|Frenzy}} | Frenzy |
{{SAI|Guided Strike}} | Guided Strike |
{{SAI|Acolyte of Nature}} | Acolyte of Nature |
{{SAI|Rage: Bear Heart}} | Rage: Bear Heart |
{{SAI|Metamagic: Twinned Spell}} | Metamagic: 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 Kill |
Can have alternative link text as well as change its size:
| Markup | Renders as |
|---|---|
{{SAI|Power Word Kill|Alias Link|w=40}} | Alias Link |
You can also add Concentration and Ritual icons:
| Markup | Renders as |
|---|---|
{{SAI|Aid|c=16}} | Aid |
{{SAI|Disguise Self|r=16}} | Disguise Self |
{{SAI|Silence|c=16|r=16}} | Silence |
...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 |