Template:Feature box: Difference between revisions

Jump to navigation Jump to search
Fixed order of link and name, and added image link replaced chara
(Added link parameter for alias links)
(Fixed order of link and name, and added image link replaced chara)
Line 1: Line 1:
<includeonly>{{TooltipBox|{{SAI|{{{name}}}|{{{link|{{{name}}}}}}|w=40}}|image={{{image name|{{{name}}}.webp}}}|w=100|
<includeonly>{{TooltipBox|{{SAI|{{{link|{{{name}}}}}}|{{{name}}}|w=40}}|image={{{image name|{{#replace:{{#replace:{{#replace:{{#replace:{{{link|{{{name}}}}}}|:|}}|/|}}|(|}}|)|}}.webp}}}|w=100|
{{{1}}}
{{{1}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Line 5: Line 5:


The icon uses the [[Template:SAI|SAI]] template. The version without integrated SAI is [[Template:TooltipBox]]. If no image name is provided, the template will attempt to use {{c|NAME.webp}} as the righthand-side image.
The icon uses the [[Template:SAI|SAI]] template. The version without integrated SAI is [[Template:TooltipBox]]. If no image name is provided, the template will attempt to use {{c|NAME.webp}} as the righthand-side image.
If the link name contains {{InfoBlob|:}}, {{InfoBlob|/}}, {{InfoBlob|(}} or {{InfoBlob|)}}, they will be removed in the icon name.


Copy-ready example:<pre>
Copy-ready example:<pre>
Line 22: Line 24:
}}
}}


Example with alias link:
{{Feature box|name=Death Burst|link=Death Burst (Mud)
|{{DamageInfo|4d6|Bludgeoning}}
* Explode in a burst of sticky mud. It dries instantly on any nearby creatures not made of mud, {{Cond|Muddy|Restraining}} and hurting them for {{DamageText|4d6|Bludgeoning}} damage.
}}
==Template data==
==Template data==


Navigation menu