Template:SAI: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(Fix sizing)
Line 1: Line 1:
<includeonly>{{IconLink
<includeonly>{{#lvardef:}}{{IconLink
| {{#replace:{{#replace:{{#replace:{{#replace:{{{1}}}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}} Icon.webp
| {{#replace:{{#replace:{{#replace:{{#replace:{{{1}}}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}} Icon.webp
| {{{1}}}
| {{{1}}}
| {{{2|{{{1}}} }}}
| {{{2|{{{1}}} }}}
| w = {{{w|24}}}
| size = {{{size|24}}}
| h = {{{h|{{{size|}}}}}}
| w = {{{w|}}}
| block = {{{block|yes}}}
| h = {{{h|}}}
| gap = {{{gap|2}}}}}</includeonly><noinclude>[[Category:Templates]]{{DISPLAYTITLE:Template:SAI - '''{{Color|yellow|S}}'''pell and '''{{Color|yellow|A}}'''bility '''{{Color|yellow|I}}'''con}}
| gap = 2
| block = true
}}</includeonly><noinclude>[[Category:Templates]]{{DISPLAYTITLE:Template:SAI - '''{{Color|yellow|S}}'''pell and '''{{Color|yellow|A}}'''bility '''{{Color|yellow|I}}'''con}}
A universal link template for Spells and Abilities. Once all Ability Icons get converted to Ability_Icon.webp it will be complete.
A universal link template for Spells and Abilities. Once all Ability Icons get converted to Ability_Icon.webp it will be complete.


Line 31: Line 33:
{{SAI|Power Word Kill|Alias Link|w=34}}
{{SAI|Power Word Kill|Alias Link|w=34}}


 
=== Inline example ===
Lorem ipsum dolor sit amet, consectetur {{SAI|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 ==
== Template parameters ==

Revision as of 10:35, 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.

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