Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Resource/doc

From bg3.wiki

This is the documentation page for Module:Resource

This module handles displaying resource costs. It can:

  • Handle multiple resources at once. The input is a comma separated list of resource names.
  • Handle auto-categorisation for actions based on resource consumption via the categories function. This is not done implicitly so page generators must call this additional function.
  • Display in multiple formats suitable for inline usage or for compact table columns.

End users should invoke this module through the wrapper template: {{Resource}}.

File tree

Parameters

Parameter Meaning
Unnamed parameter A comma separated list of resources with an optional count parameter separated by :

ListTerm | Term, Term
TermResource | Resource:Count
Resource → (see below for valid values)

force plural Boolean flag to force icon names to always use their plural forms. Default is no.
icons only Boolean flag to show only the icon names. Full resource names are visible in hover-over tooltips. Default is no.
show links Boolean flag to make resource names into links to the appropriate pages. Default is no.
icon size Adjust the size of the resource icons. Default is 20 and for inline text, larger icons should not be used.

Resource types

The available resource types are as follows:

List of resources
Resource Name and aliases
Actionsaction
Bonus Actionsbonus, ba, bonus action
Reactionsreaction
Movement Speedmovement, movement m, m
Movement Speed (Half cost)half movement, 1/2 movement
Level 1 Spell Slotsspell1, s1, level1, l1
Level 2 Spell Slotsspell2, s2, level2, l2
Level 3 Spell Slotsspell3, s3, level3, l3
Level 4 Spell Slotsspell4, s4, level4, l4
Level 5 Spell Slotsspell5, s5, level5, l5
Level 6 Spell Slotsspell6, s6, level6, l6
Level 3 Shadow Spell Slotsshadowspell3, shadow spell, ss3, shadowlevel3, sl3
Warlock Spell Slotswspell, wsp
Arcane Arrowsarcarr, aa, arcane arrow
Arcane Recovery Chargesarcrec, ar, arcane recovery
Bardic Inspirationsbi, bardin, bardic inspiration
Bladesong Powerbladesong, bs, bsp, bladesong power
Channel Divinity Chargescd, chadiv, channel divinity
Channel Oath Chargesco, oath, chao, chaoat, channel oath
Cosmic Omenscos, cosmic, omen, cosmic omen
Eyestalk actionses, eyestalk, eyestalk action
Fungal Infestation Chargesfi, fnginf, fungal infestation
Ki Pointski
Lay on Hands Chargesloh, lh, layonh, lay on hands
Luck Pointsluck, lp, lukpnt, luck point
Natural Recovery Chargesnatrec, nr, natural recovery
Rage Chargesrage, rg
Sorcery Pointssp, srcpnt, sorcery, sorcery point
Star Mapsstarmap, sm, star map
Superiority Dicesupdie, sd, superiority die
Tides of Chaos Chargestoc, tides, tides of chaos
Writhing Currentswc, writhing, writhing current
Wild Shape Chargesws, wldshp, wildshape, wild shape
War Priest Chargeswp, warpri, war priest

Examples

Example Markup Renders as
Basic usage
{{#invoke: Resource | main | action}}
 Action
Optional count specified
{{#invoke: Resource | main | ki:3 }}
 3 Ki Points
Multiple resources
{{#invoke: Resource | main | action, bonus, spell1}}
 Action +  Bonus Action +  Level 1 Spell Slot
Movement speed
{{#invoke: Resource | main | bonus, m:3 }}
 Bonus Action +  3 m / 10 ft Movement Speed
Icons only
{{#invoke: Resource | main 
| action, bonus, spell1 
| icons only = yes
}}
Action + Bonus Action + Level 1 Spell Slot