Template:Resource/doc: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created page with "{{Shortcut|r}} Display action resources, including specific class resources, in a standardized and consistent format. This template is intended to be inline. 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. {| class="wikitable mw-collapsible" |+ name parameter ! Resource...")
 
(Writhing Tide -> Writing Current)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Shortcut|r}}
{{Shortcut|r}}
Display action resources, including specific class resources, in a standardized and consistent format. This template is intended to be inline.
Display action resources, including specific class resources, in a standardized and consistent format. This template is intended to be inline.
; Usage
: {{c|<nowiki>{{Resource | <type> | [count] | [icononly] | [nameonly] | [forceplural]}}</nowiki>}}
: {{c|< ... >}} denotes mandatory parameters and {{c|[ ... ]}} denotes optional parameters.


Refer to the table below for all the supported resource types and their aliases.
Refer to the table below for all the supported resource types and their aliases.
Line 34: Line 38:
| {{C|half movement}}
| {{C|half movement}}
|-
|-
| {{Resource|aa|forceplural=yes}}
| {{C|aa, arcarr, arcane arrow}}
|-
|-
| {{Resource|ar|forceplural=yes}}
| {{Resource|ar|forceplural=yes}}
Line 40: Line 46:
| {{Resource|bi|forceplural=yes}}
| {{Resource|bi|forceplural=yes}}
| {{C|bi, bardin, bardic inspiration}}
| {{C|bi, bardin, bardic inspiration}}
|-
| {{Resource|bsp|forceplural=yes}}
| {{C|bsp, bladesong, bladesong power}}
|-
|-
| {{Resource|cd|forceplural=yes}}
| {{Resource|cd|forceplural=yes}}
Line 46: Line 55:
| {{Resource|co|forceplural=yes}}
| {{Resource|co|forceplural=yes}}
| {{C|co, chaoat, channel oath}}
| {{C|co, chaoat, channel oath}}
|-
| {{Resource|cos|forceplural=yes}}
| {{C|cos, cosmic, cosmic omen}}
|-
|-
| {{Resource|fi|forceplural=yes}}
| {{Resource|fi|forceplural=yes}}
Line 85: Line 97:
| {{Resource|sp|forceplural=yes}}
| {{Resource|sp|forceplural=yes}}
| {{C|sp, srcpnt, sorcery}}
| {{C|sp, srcpnt, sorcery}}
|-
| {{Resource|sm|forceplural=yes}}
| {{C|sm, star map, star maps}}
|-
|-
| {{Resource|sd|forceplural=yes}}
| {{Resource|sd|forceplural=yes}}
Line 100: Line 115:
| {{Resource|lp|forceplural=yes}}
| {{Resource|lp|forceplural=yes}}
| {{C|lp, lukpnt, luck, luck point}}
| {{C|lp, lukpnt, luck, luck point}}
|-
| {{Resource|wc|forceplural=yes}}
| {{C|wc, writhing, writhing current}}
|}
|}


Line 124: Line 142:


== Template data ==
== Template data ==
; Usage
: {{c|<nowiki>{{Resource | <type> | [count] | [icononly] | [nameonly] | [forceplural]}}</nowiki>}}
: {{c|< ... >}} denotes mandatory parameters and {{c|[ ... ]}} denotes optional parameters.
<templatedata>
<templatedata>
{
{
Line 136: Line 151:
             "aliases": ["type"],
             "aliases": ["type"],
"description": "The name of the resource. For shorter aliases for these options, refer to the full list on the template page.",
"description": "The name of the resource. For shorter aliases for these options, refer to the full list on the template page.",
             "suggestedvalues": ["action", "bonus", "reaction", "movement", "movement m", "spell1", "spell2", "spell3", "spell4", "spell5", "spell6", "arcane recovery", "bardic inspiration", "channel divinity", "channel oath", "fungal infestation", "ki", "lay on hands", "luck point", "natural recovery", "rage", "shadowspell3", "sorcery", "superiority die", "tides of chaos", "war priest", "wild shape"],
             "suggestedvalues": ["action", "bonus", "reaction", "movement", "movement m", "spell1", "spell2", "spell3", "spell4", "spell5", "spell6", "arcane arrow", "arcane recovery", "bardic inspiration", "bladesong power", "channel divinity", "channel oath", "cosmic omen", "fungal infestation", "ki", "lay on hands", "luck point", "natural recovery", "rage", "shadowspell3", "sorcery", "star map", "superiority die", "tides of chaos", "war priest", "wild shape"],
             "type": "string",
             "type": "string",
"required": true
"required": true

Latest revision as of 23:24, 1 February 2025

Shortcut
  • {{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.

name parameter
Resource Input
Actions action
Bonus actions bonus, bonus action, ba
Reactions reaction
Movement movement (no value)
Movement movement m (value in meters)
Movement 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
 Cosmic Omens 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
 Star Maps 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
 Writhing Currents wc, writhing, writhing current

Examples

Markup Renders as
{{Resource | invalid}}
 invalid
{{Resource}}
 UNDEFINED
{{Resource | supdie}}
 Superiority Die
{{Resource | SuPdIe | 2}}
2 Superiority Dice
{{Resource | supdie| forceplural=yes}}
 Superiority Dice
{{Resource | ki | count = 200}}
200 Ki Points
{{Resource | lh | icononly = yes}}
{{Resource | movement m | count = 1.5}}
1.5 m / 5 ftMovement
Costs: {{Resource | ki | count = 2 | icononly = yes}}
Costs: 2
Costs: {{Resource | l2 | count = 2 | nameonly = yes}}
Costs: 2  Level 2 Spell Slots
Recover half of your max {{Resource | ki | forceplural = yes}}, once per short rest.
Recover half of your max  Ki Points, once per short rest.
{{Resource | type = ar | 1 | forceplural = yes}}
 Arcane Recovery Charges
{{Resource | type = shadowspell3 | 1 }}
 Level 3 Shadow Spell Slot
{{Resource | type = eyestalk | 1 }}
 Eyestalk Action
{{r|reaction}}s
Reactions


Template data

Display an action resource with its accompanying icon.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Type1 type

The name of the resource. For shorter aliases for these options, refer to the full list on the template page.

Suggested values
action bonus reaction movement movement m spell1 spell2 spell3 spell4 spell5 spell6 arcane arrow arcane recovery bardic inspiration bladesong power channel divinity channel oath cosmic omen fungal infestation ki lay on hands luck point natural recovery rage shadowspell3 sorcery star map superiority die tides of chaos war priest wild shape
Stringrequired
Count2 count

The number of the specified resources consumed.

Default
1
Stringoptional
Name onlynameonly

Hide the resource icon leaving just the name of resource and the count.

Booleanoptional
Icon onlyicononly

Hide the resource name leaving just the resource icon and the count.

Booleanoptional
Force pluralforceplural

Force the output use the plural form even when count is 1.

Booleanoptional