10,062
editsTemplate:SAI: Difference between revisions
Jump to navigation
Jump to search
m
no edit summary
(→Template parameters: Freshen parameters) |
mNo edit summary |
||
(13 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{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}}} }}} | ||
| size = {{{ | | size = {{{w|24}}} | ||
| w = {{{w|}}} | | w = {{{w|}}} | ||
| h = {{{h|}}} | | h = {{{h|}}} | ||
| gap = | | gap = {{{gap|}}} | ||
| block = | | block = {{{block|}}} | ||
}}</includeonly><noinclude>[[Category:Templates]]{{DISPLAYTITLE:Template:SAI - '''{{Color|yellow|S}}'''pell and '''{{Color|yellow|A}}'''bility '''{{Color|yellow|I}}''' | }}{{#if:{{{c|}}}|{{Nbts}}{{Icon|Concentration Icon.png|{{{c|16}}}px|link=Concentration|caption=}}|}}{{#if:{{{r|}}}|{{Nbts}}{{Icon|Ritual_Spell_Icon.png|{{{r|16}}}px|link=Ritual Spells|caption=}}|}}</includeonly><noinclude>[[Category:Templates]]{{DISPLAYTITLE:Template:SAI - '''{{Color|yellow|S}}'''pell and '''{{Color|yellow|A}}'''bility '''{{Color|yellow|I}}'''conlink}} | ||
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 27: | Line 27: | ||
|} | |} | ||
But as for conditions, not all conditions are supported this way. If the link name contains {{InfoBlob|:}}, {{InfoBlob|/}}, {{InfoBlob|(}} or {{InfoBlob|)}}, they will be removed in the icon name. | But as for conditions, not all conditions are supported this way. If the link name contains {{InfoBlob|:}}, {{InfoBlob|/}}, {{InfoBlob|(}} or {{InfoBlob|)}}, 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 have alternative link text as well as change its size: {{InfoBlob|<nowiki>{{SAI|Power Word Kill|Alias Link|w=40|size=40}}</nowiki>}} | Can have alternative link text as well as change its size: {{InfoBlob|<nowiki>{{SAI|Power Word Kill|Alias Link|w=40|size=40}}</nowiki>}} | ||
{{SAI|Power Word Kill|Alias Link|w=40|size=40}} | {{SAI|Power Word Kill|Alias Link|w=40}} | ||
Can have alternative link text as well as change its size: {{InfoBlob|<nowiki>{{SAI|Power Word Kill|Alias Link|w=40|size=40}}</nowiki>}} | |||
You can also add Concentration and Ritual icons {{InfoBlob|<nowiki>{{SAI|Aid|c=16}}, {{SAI|Disguise Self|r=16}}, {{SAI|Silence|c=16|r=16}}</nowiki>}} where the number is the size of the icon. Best to keep it 16px. | |||
: {{SAI|Aid|c=16}} | |||
: {{SAI|Disguise Self|r=16}} | |||
: {{SAI|Silence|c=16|r=16}} | |||
=== Inline example === | === Inline example === |