Template:SAI: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Move link/alias to param 2, fix functionality.) |
||
Line 2: | Line 2: | ||
| {{#replace:{{{1}}}|:|}} Icon.webp | | {{#replace:{{{1}}}|:|}} Icon.webp | ||
| {{{1}}} | | {{{1}}} | ||
| | | {{{2|{{{1}}} }}} | ||
| w = {{{w|24}}} | | w = {{{w|24}}} | ||
| h = {{{h|{{{size|}}}}}} | | h = {{{h|{{{size|}}}}}} | ||
Line 15: | Line 15: | ||
{{SAI|Frenzy}}, {{SAI|Guided Strike}}, {{SAI|Acolyte of Nature}}, {{SAI|Rage: Bear Heart}}, {{SAI|Metamagic: Twinned Spell}} | {{SAI|Frenzy}}, {{SAI|Guided Strike}}, {{SAI|Acolyte of Nature}}, {{SAI|Rage: Bear Heart}}, {{SAI|Metamagic: Twinned Spell}} | ||
{{SAI|Power Word Kill| | {{SAI|Power Word Kill|True Strike|w=34}} | ||
{{InfoBlob|<nowiki>{{SAI|Magic Missile}}</nowiki>}} | {{InfoBlob|<nowiki>{{SAI|Magic Missile}}</nowiki>}} | ||
Line 22: | Line 22: | ||
{{InfoBlob|<nowiki>{{SAI|Power Word Kill|w=34}}</nowiki>}} | {{InfoBlob|<nowiki>{{SAI|Power Word Kill|w=34}}</nowiki>}} | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"description": "Name of the ability", | |||
"required": true | |||
}, | |||
"2": { | |||
"description": "(optional) Alias for the link text" | |||
}, | |||
"w": { | |||
"description": "(optional) Icon width. Defaults to 24", | |||
"type": "number" | |||
}, | |||
"h": { | |||
"description": "(optional) Icon height", | |||
"type": "number" | |||
}, | |||
"size": { | |||
"description": "(optional) The size of the icon. This is equivalent to the \"w\" parameter. Defaults to 24." | |||
}, | |||
"block": {}, | |||
"gap": {} | |||
}, | |||
"description": "Inserts a link for a spell or ability." | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 11:43, 22 September 2023
Work in Progress
A universal link template for Spells and Abilities. Once all Ability Icons get converted to Ability_Icon.webp it will be complete.
, , , ,
{{SAI|Magic Missile}}
{{SAI|Frenzy}}, {{SAI|Guided Strike}}, {{SAI|Acolyte of Nature}}, {{SAI|Rage: Bear Heart}}, {{SAI|Metamagic: Twinned Spell}}
{{SAI|Power Word Kill|w=34}}
Inserts a link for a spell or ability.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | Name of the ability | Unknown | required |
2 | 2 | (optional) Alias for the link text | Unknown | optional |
w | w | (optional) Icon width. Defaults to 24 | Number | optional |
h | h | (optional) Icon height | Number | optional |
size | size | (optional) The size of the icon. This is equivalent to the "w" parameter. Defaults to 24. | Unknown | optional |
block | block | no description | Unknown | optional |
gap | gap | no description | Unknown | optional |