Template:ResourceList: Difference between revisions
Jump to navigation
Jump to search
(Fix to use new movement cost syntax.) |
m (Use {{Template demo}}) |
||
Line 17: | Line 17: | ||
=Examples= | =Examples= | ||
{| | {{Template demo | ||
| style=table | |||
|<nowiki>{{ResourceList|bonus, movement m:9}}</nowiki> | |||
|<nowiki>{{ResourceList|action, ki:3}}</nowiki> | |||
|<nowiki>{{ResourceList|action, bonus, level1}}</nowiki> | |||
}} | |||
</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 |