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

Template:ResourceHelper

Template page
Revision as of 02:47, 14 November 2023 by NtCarlson (talk | contribs) (Changed the input format to "type:count" instead of "count type")

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
{{ResourceSimple|ki}}
5Ki Points
{{ResourceSimple|ki:5}}
(ERROR: Use movement m or movement ft.)Movement
{{ResourceSimple|movement:30}}
Action, and 3Ki Points
{{#invoke: ParseList | main | action, ki:3 | useTemplate = ResourceSimple }}
Bonus action, and(ERROR: Use movement m or movement ft.)Movement
{{#invoke: ParseList | main
  | bonus, movement:10 | useTemplate = ResourceSimple
}}