Template:Resource box

From bg3.wiki
(Redirected from Template:Rbox)
Jump to navigation Jump to search
Template documentation
Shortcut

Display action resources, including specific class resources, in a standardized and consistent format with a box around it just as it is in-game. You can specify a resource exactly like you can with the {{Resource}} template.

Example Markup Renders as
Basic usage
{{Resource box|ki}}
Ki Point
With a quantity
{{Resource box|chadiv|2}}
Channel Divinity Charge
2
Spell slot
{{Resource box|spell3|4}}
4 Level 3 Spell Slots.png
High quantity
{{Resource box|bardin|12}}
Bardic Inspiration
12
Spell slot with high quantity
{{Resource box|spell3|8}}
1 Level 3 Spell Slots.png
8

This template is intended to be inline, and can be used alongside {{Spell slot}}, and in fact will use that template if a spell slot resource is specified.

e.g.

{{Resource box|ki|6}}{{Resource box|chadiv|2}}{{Resource box|spell3|4}}{{Resource box|bardin|12}}
Ki Point
6
Channel Divinity Charge
2
4 Level 3 Spell Slots.png
Bardic Inspiration
12

Template data

Insert a resource box.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Resource name1

The resource to show.

Stringrequired
Quantity2

A quantity of resource to show in the box

Numberoptional
Widthw

Override the width of the resource box.

Numberoptional
Heighth

Override the height of the resource box.

Numberoptional