Template:Feature box: Difference between revisions

From bg3.wiki
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|
{{{content}}}
{{{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=
|content=
|
}}
}}
</pre>
</pre>
Line 18: Line 18:
|name=Strengthened Shillelagh
|name=Strengthened Shillelagh
|image name=Strengthened Shillelagh.webp
|image name=Strengthened Shillelagh.webp
|content=* The Dryad's [[Quarterstaff|staff]] or [[club]] deals {{DamageText|4d8|Bludgeoning}} damage, and uses your [[Ability Score Modifier|Spellcasting Ability]] for {{Attack Roll}}s.
|* 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
},
"content": {
"description": "The description.",
"type": "content",
"required": true
"required": true
},
},
Line 46: Line 46:
"name",
"name",
"image name",
"image name",
"content"
"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.

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

Example:

Strengthened Shillelagh.webp
Strengthened Shillelagh Strengthened Shillelagh

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