Template:ResourceHelper: Difference between revisions
Jump to navigation
Jump to search
(Updated documentation) |
m (NtCarlson moved page Template:ResourceSimple to Template:ResourceHelper: More appropriate name for helper template that isn't intended be called directly) |
(No difference)
|
Revision as of 02:37, 14 November 2023
What is this?
This is a wrapper around Template:Resource to work better in conjunction with Module:ParseList specifically by Template:ResourceList.
Usage
{{ResourceSimple | [count] <type>}}
<>
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|5 ki}} |
(ERROR: Use movement m or movement ft .)Movement |
{{ResourceSimple|30 movement}} |
Action, and 3Ki Points | {{#invoke: ParseList | main | action, 3 ki | useTemplate = ResourceSimple }} |
Bonus action, and(ERROR: Use movement m or movement ft .)Movement
|
{{#invoke: ParseList | main | bonus, 10 movement | useTemplate = ResourceSimple }} |