Template:Feature box: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(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==



Revision as of 22:25, 31 October 2023

Creates a box to display enemy features such as special abilities and attacks. It is intended for use on creature pages, rather than being pages of their own. For player features, use Template:ActionPage.

The icon uses the SAI template. The version without integrated SAI is Template:TooltipBox. If no image name is provided, the template will attempt to use NAME.webp as the righthand-side image.

If the link name contains :, /, ( or ), they will be removed in the icon name.

Copy-ready example:
{{Feature box
|name=
|link=
|image name=
|
}}

Example:

Strengthened Shillelagh.webp

Example with alias link:

Death Burst Mud.webp
D6 Bludgeoning.png 4d6 (4~24) Damage TypesBludgeoning damage
  • Explode in a burst of sticky mud. It dries instantly on any nearby creatures not made of mud, Restraining Restraining and hurting them for 4d6Damage TypesBludgeoning damage.

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
namename

The name of the ability.

Stringrequired
image nameimage name

An override for the image to use on the right-hand side.

Default
{{{name}}}.webp
Unknownoptional
11

The content of the feature box.

Contentrequired