70,989
editsno edit summary
(Added "half movement" option for use with abilities like Fly that use movement at half cost) |
HiddenDragon (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span class="bg3wiki-resource-template">{{trim| {{#lvardef: type|UNDEFINED}} {{#lvardef: icon|Alert Icon.png}}{{#lvardef:isplural|0}}{{#lvardef:icononly|0}} | <includeonly><span class="bg3wiki-resource-template">{{trim| {{#lvardef: type|UNDEFINED}} {{#lvardef: icon|Alert Icon.png}}{{#lvardef:isplural|0}}{{#lvardef:icononly|0}}{{#lvardef:nameonly|0}} | ||
{{#lvardef: count | 1}}<!--if count is empty, set it to 1--> <!--this is at the front --> | {{#lvardef: count | 1}}<!--if count is empty, set it to 1--> <!--this is at the front --> | ||
{{#if: {{{type|}}} | {{#lvardef:type|{{{type|}}}}}|{{#if: {{{1|}}} | {{#lvardef:type|{{{1}}}}}}}}} | {{#if: {{{type|}}} | {{#lvardef:type|{{{type|}}}}}|{{#if: {{{1|}}} | {{#lvardef:type|{{{1}}}}}}}}} | ||
Line 32: | Line 32: | ||
| toc | tides of chaos = {{#lvardef: type|Tides of Chaos Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }}{{#lvardef:icon|Tides of Chaos Resource Icon.png}} | | toc | tides of chaos = {{#lvardef: type|Tides of Chaos Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }}{{#lvardef:icon|Tides of Chaos Resource Icon.png}} | ||
| lp | lukpnt | luck point = {{#lvardef: type|Luck Point{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }}{{#lvardef:icon|Luck Point Resource Icon.png}} | | lp | lukpnt | luck point = {{#lvardef: type|Luck Point{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }}{{#lvardef:icon|Luck Point Resource Icon.png}} | ||
}}{{#ifexpr: {{#lvar: isplural}} > 0 | {{#if: {{{forceplural|}}}||{{#lvar: count}}}}}}{{SmallIcon|{{#lvar:icon}}}}{{#if: {{{icononly|}}}||{{#lvar: type}}}}}}{{#ifeq: {{#lvar: icon}}|Alert Icon.png|[[Category:Pages with unknown resources]]}}</span></includeonly><noinclude> | }}{{#ifexpr: {{#lvar: isplural}} > 0 | {{#if: {{{forceplural|}}}||{{#lvar: count}}}}}}{{#if: {{{nameonly|}}}|{{Nbts}}|{{SmallIcon|{{#lvar:icon}}}}}}{{#if: {{{icononly|}}}||{{#lvar: type}}}}}}{{#ifeq: {{#lvar: icon}}|Alert Icon.png|[[Category:Pages with unknown resources]]}}</span></includeonly><noinclude> | ||
=What is this?= | =What is this?= | ||
This is a template for a quicker and more standardized manner of typing out the class-specific resource. This template is intended to be ''inline''. | This is a template for a quicker and more standardized manner of typing out the class-specific resource. This template is intended to be ''inline''. | ||
Line 38: | Line 38: | ||
If there are any missing resources, don't hesitate to contribute! | If there are any missing resources, don't hesitate to contribute! | ||
=Usage= | =Usage= | ||
<pre>{{Resource | <type> | [count] | [icononly] | [forceplural]}}</pre> | <pre>{{Resource | <type> | [count] | [icononly] | [nameonly] | [forceplural]}}</pre> | ||
---- | ---- | ||
<br/><code><></code> Denotes mandatory parameters. | <br/><code><></code> Denotes mandatory parameters. | ||
Line 53: | Line 53: | ||
* <code>icononly</code> | * <code>icononly</code> | ||
** Show the icon only, leaving the count there as well. | ** Show the icon only, leaving the count there as well. | ||
** Can be used to just quickly get the icon without the text. | |||
* <code>nameonly</code> | |||
** Show the name only, leaving the count there as well. | |||
** Can be used to just quickly get the icon without the text. | ** Can be used to just quickly get the icon without the text. | ||
* <code>forceplural</code> | * <code>forceplural</code> | ||
Line 175: | Line 178: | ||
| <pre>Costs: {{Resource | ki | count = 2 | icononly = yes}}</pre> | | <pre>Costs: {{Resource | ki | count = 2 | icononly = yes}}</pre> | ||
|- | |- | ||
| Restores: {{Resource | l2 | count = 2}} | | Restores: {{Resource | l2 | count = 2 | nameonly = yes}} | ||
| <pre>Costs: {{Resource | l2 | count = 2}}</pre> | | <pre>Costs: {{Resource | l2 | count = 2 | nameonly = yes}}</pre> | ||
|- | |- | ||
| Recover half of your max {{Resource | ki | forceplural = yes}}, once per short rest. | | Recover half of your max {{Resource | ki | forceplural = yes}}, once per short rest. |