Template:Resource: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Added a few more resource aliases)
(Add documentation template)
Line 178: Line 178:
| <!-- blank -->
| <!-- blank -->
| {{#lvar: type}}
| {{#lvar: type}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>{{Documentation|content=
{{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.
Line 342: Line 342:
| <nowiki>{{Resource | type = eyestalk | 1 }}</nowiki>
| <nowiki>{{Resource | type = eyestalk | 1 }}</nowiki>
| <nowiki>{{r|reaction}}s</nowiki>
| <nowiki>{{r|reaction}}s</nowiki>
}}
}}
}}
[[Category:Templates]]
[[Category:Templates]]
[[Category:Icon templates]]
[[Category:Icon templates]]
</noinclude>
</noinclude>

Revision as of 21:43, 19 January 2025

Template documentation
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.

Template data

Usage
{{Resource | <type> | [count] | [icononly] | [nameonly] | [forceplural]}}
< ... > denotes mandatory parameters and [ ... ] denotes optional parameters.

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 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
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

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