Template:Resource: Difference between revisions
mNo edit summary |
Added bladesong power resource |
||
Line 165: | Line 165: | ||
| arcane arrow | arcarr | aa = | | arcane arrow | arcarr | aa = | ||
{{#lvardef: type | Arcane Arrow{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }} | {{#lvardef: type | Arcane Arrow{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }} | ||
{{#lvardef: icon | Eyestalk Action Icon.png }} <!-- TODO: Update this icon when patch releases --> | |||
| bladesong power | bladesong | bsp = | |||
{{#lvardef: type | Bladesong Power | |||
{{#lvardef: icon | Eyestalk Action Icon.png }} <!-- TODO: Update this icon when patch releases --> | {{#lvardef: icon | Eyestalk Action Icon.png }} <!-- TODO: Update this icon when patch releases --> | ||
Revision as of 19:21, 27 January 2025
- {{r}}
Display action resources, including specific class resources, in a standardized and consistent format. This template is intended to be inline.
- Usage
{{Resource | <type> | [count] | [icononly] | [nameonly] | [forceplural]}}
< ... >
denotes mandatory parameters and[ ... ]
denotes optional parameters.
Refer to the table below for all the supported resource types and their aliases.
Supported resources
Below is a table of all the resource options this template accepts as well as their aliases. This should cover all the resources in the game.
Resource | Input |
---|---|
|
action
|
|
bonus, bonus action, ba
|
|
reaction
|
|
movement (no value)
|
|
movement m (value in meters)
|
|
movement ft (value in feet)
|
Movement (Half cost) |
half movement
|
Arcane Arrows |
aa, arcarr, arcane arrow
|
Arcane Recovery Charges |
ar, arcrec, arcane recovery
|
Bardic Inspiration Charges |
bi, bardin, bardic inspiration
|
Bladesong Power |
bsp, bladesong, bladesong power
|
Channel Divinity Charges |
cd, chadiv, channel divinity
|
Channel Oath Charges |
co, chaoat, channel oath
|
cos |
cos, cosmic, cosmic omen
|
Fungal Infestation Charges |
fi, fnginf, fungal infestation
|
Ki Points |
ki
|
Level 1 Spell Slots |
l1, s1, spell1, level1
|
Level 2 Spell Slots |
l2, s2, spell2, level2
|
Level 3 Spell Slots |
l3, s3, spell3, level3
|
Level 4 Spell Slots |
l4, s4, spell4, level4
|
Level 5 Spell Slots |
l5, s5, spell5, level5
|
Level 6 Spell Slots |
l6, s6, spell6, level6
|
Level 3 Shadow Spell Slots |
shadowspell3, ss3, shadowlevel3, sl3
|
Lay on Hands Charges |
lh, layonh, lay on hands
|
Natural Recovery Charges |
nr, natrec, natural recovery
|
Rage Charges |
rg, rage
|
Sorcery Points |
sp, srcpnt, sorcery
|
sm |
sm, star map, star maps
|
Superiority Dice |
sd, supdie, superiority die
|
War Priest Charges |
wp, warpri, war priest
|
Wild Shape Charges |
ws, wldshp, wild shape, wildshape
|
Tides of Chaos Charges |
toc, tides of chaos
|
Luck Points |
lp, lukpnt, luck, luck point
|
Examples
Markup | Renders as |
---|---|
{{Resource | invalid}} | {{trim|
|
{{Resource}} | {{trim|
|
{{Resource | supdie}} | {{trim|
|
{{Resource | SuPdIe | 2}} | {{trim|
|
{{Resource | supdie| forceplural=yes}} | {{trim|
|
{{Resource | ki | count = 200}} | {{trim|
|
{{Resource | lh | icononly = yes}} | {{trim|
|
{{Resource | movement m | count = 1.5}} | {{trim|
|
Costs: {{Resource | ki | count = 2 | icononly = yes}} | Costs: {{trim|
|
Costs: {{Resource | l2 | count = 2 | nameonly = yes}} | Costs: {{trim|
|
Recover half of your max {{Resource | ki | forceplural = yes}}, once per short rest. | Recover half of your max {{trim|
|
{{Resource | type = ar | 1 | forceplural = yes}} | {{trim|
|
{{Resource | type = shadowspell3 | 1 }} | {{trim|
|
{{Resource | type = eyestalk | 1 }} | {{trim|
|
{{r|reaction}}s | {{trim|
|
Template data
Display an action resource with its accompanying icon.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | 1 type | The name of the resource. For shorter aliases for these options, refer to the full list on the template page.
| String | required |
Count | 2 count | The number of the specified resources consumed.
| String | optional |
Name only | nameonly | Hide the resource icon leaving just the name of resource and the count. | Boolean | optional |
Icon only | icononly | Hide the resource name leaving just the resource icon and the count. | Boolean | optional |
Force plural | forceplural | Force the output use the plural form even when count is 1. | Boolean | optional |