Template:SAI: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Template parameters: Freshen parameters) |
||
Line 42: | Line 42: | ||
"1": { | "1": { | ||
"description": "Name of the ability", | "description": "Name of the ability", | ||
"required": true | "required": true, | ||
"label": "name", | |||
"type": "wiki-page-name" | |||
}, | }, | ||
"2": { | "2": { | ||
"description": " | "description": "Alias for the link text", | ||
"label": "alias", | |||
"type": "string" | |||
}, | }, | ||
"w": { | "w": { | ||
"description": " | "description": "Icon width. Defaults to 24", | ||
"type": "number", | |||
"label": "width" | |||
}, | |||
"size": { | |||
"description": "The size of the icon. Defaults to 24.", | |||
"type": "number" | "type": "number" | ||
}, | }, | ||
" | "block": { | ||
" | "type": "boolean" | ||
}, | |||
"gap": { | |||
"type": "number" | "type": "number" | ||
}, | }, | ||
" | "height": { | ||
"description": " | "description": "Icon height", | ||
"type": "number" | |||
} | |||
}, | }, | ||
"description": "Inserts a link for a spell or ability." | "description": "Inserts a link for a spell or ability.", | ||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"w", | |||
"height", | |||
"size", | |||
"block", | |||
"gap" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 11:12, 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}}
|
And abilities:
{{SAI|Frenzy}} |
{{SAI|Guided Strike}} |
{{SAI|Acolyte of Nature}} |
{{SAI|Rage: Bear Heart}} |
{{SAI|Metamagic: Twinned Spell}} |
{{SAI|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 icon name.
Can have alternative link text as well as change its size: {{SAI|Power Word Kill|Alias Link|w=40|size=40}}
Inline example
Lorem ipsum dolor sit amet, consectetur
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | 1 | Name of the ability | Page name | required |
alias | 2 | Alias for the link text | String | optional |
width | w | Icon width. Defaults to 24 | Number | optional |
height | height | Icon height | Number | optional |
size | size | The size of the icon. Defaults to 24. | Number | optional |
block | block | no description | Boolean | optional |
gap | gap | no description | Number | optional |