Template:Feature box: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (Added link parameter for alias links) |
HiddenDragon (talk | contribs) (Fixed order of link and name, and added image link replaced chara) |
||
Line 1: | Line 1: | ||
<includeonly>{{TooltipBox|{{SAI|{{{name}}} | <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 21: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:
Example with alias link:
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | The name of the ability. | String | required |
image name | image name | An override for the image to use on the right-hand side.
| Unknown | optional |
1 | 1 | The content of the feature box. | Content | required |