Template:ResourceHelper: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Fix.)
No edit summary
 
Line 11: Line 11:
| #default = {{#switch: {{#lvar: type}}
| #default = {{#switch: {{#lvar: type}}
   | bonus = [[Category:Bonus actions]]
   | bonus = [[Category:Bonus actions]]
   | half movement | movement m = [[Category:Movement-expending actions]]
   | half movement | movement | movement m = [[Category:Movement-expending actions]]
   | reaction = [[Category:Reactions]]
   | reaction = [[Category:Reactions]]
   | action = [[Category:Actions]]  
   | action = [[Category:Actions]]  

Latest revision as of 04:38, 8 April 2024

What is this?

This is a wrapper around Template:Resource to work better in conjunction with Module:ParseList specifically by Template:ResourceList.

Optional parameters like cost=3 do not work when applying a template to a list with ParseList, so this template enables an alternative syntax that can be used with ParseList.

Usage

{{ResourceHelper | <type>:[count]}}


<> Denotes mandatory parameters, [] denotes optional parameters.

Refer to Template:Resource for a list of the handled resource types.

Examples

Output Input
Ki Point
{{ResourceHelper|ki}}
5Ki Points
{{ResourceHelper|ki:5}}
30 m / 100 ftMovement
{{ResourceHelper|movement m:30}}