Template:ResourceList: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Changed the input format to "type:count" instead of "count type")
m (Use {{Template demo}})
 
(One intermediate revision by one other user not shown)
Line 17: Line 17:


=Examples=
=Examples=
{| class="wikitable mw-collapsible"
{{Template demo
! Output
| style=table
! Input
|<nowiki>{{ResourceList|bonus, movement m:9}}</nowiki>
|-
|<nowiki>{{ResourceList|action, ki:3}}</nowiki>
|{{ResourceList|bonus, movement:30}}||<pre>{{ResourceList|bonus, movement:30}}</pre>
|<nowiki>{{ResourceList|action, bonus, level1}}</nowiki>
|-
}}
|{{ResourceList|action, ki:3}}||<pre>{{ResourceList|action, ki:3}}</pre>
|-
|{{ResourceList|action, bonus, level1}}||<pre>{{ResourceList|action, bonus, level1}}</pre>
|}
</noinclude>
</noinclude>

Latest revision as of 17:27, 2 October 2024

What is this?

This is a wrapper around Template:Resource that produces a formatted total resource cost from a list costs.

This is intended for use in Template:Action_Page and similar.

Usage

{{ResourceList | <type>:[count] [, <type>:[count]]}}


<> Denotes mandatory parameters, [] denotes optional parameters.

Refer to Template:Resource for a list of the handled resource types.

Examples

Markup Renders as
{{ResourceList|bonus, movement m:9}}
Bonus action + 9 m / 30 ftMovement
{{ResourceList|action, ki:3}}
Action + 3Ki Points
{{ResourceList|action, bonus, level1}}
Action + Bonus action + Level 1 Spell Slot