Template:Resource: Difference between revisions
(Added a few more resource aliases) |
HiddenDragon (talk | contribs) (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
- {{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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | 1 type | The name of the resource. For shorter aliases for these options, refer to the full list on the template page.
| String | required |
Count | 2 count | The number of the specified resources consumed.
| String | optional |
Name only | nameonly | Hide the resource icon leaving just the name of resource and the count. | Boolean | optional |
Icon only | icononly | Hide the resource name leaving just the resource icon and the count. | Boolean | optional |
Force plural | forceplural | Force the output use the plural form even when count is 1. | Boolean | optional |
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. {