Template:Feature box: Difference between revisions
Jump to navigation
Jump to search
m (add copy-ready) |
(use {1} for content) |
||
Line 1: | Line 1: | ||
<includeonly>{{TooltipBox|{{SAI|{{{name}}}|w=40}}|image={{{image name|{{{name}}}.webp}}}|w=100| | <includeonly>{{TooltipBox|{{SAI|{{{name}}}|w=40}}|image={{{image name|{{{name}}}.webp}}}|w=100| | ||
{{{ | {{{1}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
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]]. | 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]]. | ||
Line 10: | Line 10: | ||
|name= | |name= | ||
|image name= | |image name= | ||
| | | | ||
}} | }} | ||
</pre> | </pre> | ||
Line 18: | Line 18: | ||
|name=Strengthened Shillelagh | |name=Strengthened Shillelagh | ||
|image name=Strengthened Shillelagh.webp | |image name=Strengthened Shillelagh.webp | ||
| | |* The Dryad's [[Quarterstaff|staff]] or [[club]] deals {{DamageText|4d8|Bludgeoning}} damage, and uses your [[Ability Score Modifier|Spellcasting Ability]] for {{Attack Roll}}s. | ||
}} | }} | ||
Line 28: | Line 28: | ||
{ | { | ||
"params": { | "params": { | ||
"1": { | |||
"description": "The content of the feature box.", | |||
"type": "content", | |||
"required": true | |||
}, | |||
"name": { | "name": { | ||
"description": "The name of the ability. ", | "description": "The name of the ability. ", | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | }, | ||
Line 46: | Line 46: | ||
"name", | "name", | ||
"image name", | "image name", | ||
" | "1" | ||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Revision as of 16:54, 28 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. If no image name is provided, the template will attempt to use NAME.webp
as the righthand-side image.
{{Feature box |name= |image name= | }}
Example:
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 |