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

Template:Resource: Difference between revisions

Template page
No more "war priest charge charge"
Added common resources
Line 6: Line 6:
{{#if: {{{forceplural|}}} | {{#ifeq: {{{forceplural|}}} | yes | {{#lvardef:isplural|1}} | {{#lvardef:isplural|0}}}}}} <!--there may be special cases where you want to have plural forms without a count (i.e. explanations)-->
{{#if: {{{forceplural|}}} | {{#ifeq: {{{forceplural|}}} | yes | {{#lvardef:isplural|1}} | {{#lvardef:isplural|0}}}}}} <!--there may be special cases where you want to have plural forms without a count (i.e. explanations)-->
{{#switch: {{lc:{{#lvar: type}}}} <!-- lc is to make the input all lower case, so that case is not my biggest priority -->
{{#switch: {{lc:{{#lvar: type}}}} <!-- lc is to make the input all lower case, so that case is not my biggest priority -->
| action = {{#lvardef: type|Action{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Action Icon.png}}
| bonus = {{#lvardef: type|Bonus action{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Bonus Action Icon.png}}
| reaction = {{#lvardef: type|Reaction{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Reaction Icon.png}}
| movement = {{#lvardef: type|Movement}} {{#lvardef: icon|Movement Speed Icon.png}}{{#lvardef: count| {{Distance/Transform|{{{count|}}}}} }}|{{#if: {{{2|}}} | {{#lvardef:count|{{Distance/Transform|{{{2|}}}}}}}}}
| sd | supdie | superiority die = {{#lvardef: type|Superiority {{#ifexpr: {{#lvar: isplural}} > 0 |Dice|Die}}}} {{#lvardef: icon|Superiority Die d8 Icon.png}}
| sd | supdie | superiority die = {{#lvardef: type|Superiority {{#ifexpr: {{#lvar: isplural}} > 0 |Dice|Die}}}} {{#lvardef: icon|Superiority Die d8 Icon.png}}
| fi = {{#lvardef: type|Fungal Infestation Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Fungal Infestation Charge Icon.png}}
| fi = {{#lvardef: type|Fungal Infestation Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Fungal Infestation Charge Icon.png}}
Line 26: Line 30:
| nr | natrec | natural recovery = {{#lvardef: type|Natural Recovery Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Natural Recovery Charges Icon.png}}
| nr | natrec | natural recovery = {{#lvardef: type|Natural Recovery Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Natural Recovery Charges 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}}
| 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}}
}}{{#ifexpr: {{#lvar: isplural}} > 0 | {{#if: {{{forceplural|}}}||{{#lvar: count}}}}}}{{SmallIcon|{{#lvar:icon}}}}{{#if: {{{icononly|}}}||{{#lvar: type}}}}}}</span></includeonly><noinclude>
}}{{#ifexpr: {{#lvar: isplural}} > 0 | {{#if: {{{forceplural|}}}||{{#lvar: count}}}}}}{{SmallIcon|{{#lvar:icon}}}}{{#if: {{{icononly|}}}||{{#lvar: type}}}}}}</span></includeonly><noinclude>
=What is this?=
=What is this?=
Line 56: Line 61:
! Resource
! Resource
! Input
! Input
|-
| {{Resource|action|forceplural=yes}}
| {{C|action}}
|-
| {{Resource|bonus|forceplural=yes}}
| {{C|bonus}}
|-
| {{Resource|reaction|forceplural=yes}}
| {{C|reaction}}
|-
| {{Resource|movement|forceplural=yes}}
| {{C|movement}}
|-
|-
| {{Resource|ar|forceplural=yes}}
| {{Resource|ar|forceplural=yes}}
Line 116: Line 133:
| {{Resource|toc|forceplural=yes}}
| {{Resource|toc|forceplural=yes}}
| {{C|toc, tides of chaos}}
| {{C|toc, tides of chaos}}
|-
| {{Resource|lp|forceplural=yes}}
| {{C|lp, lukpnt, luck point}}
|}
|}
=Examples=
=Examples=
Line 142: Line 162:
| {{Resource | lh | icononly = yes}}
| {{Resource | lh | icononly = yes}}
| <pre>{{Resource | lh | icononly = yes}}</pre>
| <pre>{{Resource | lh | icononly = yes}}</pre>
|-
| {{Resource | movement | count = 5}}
| <pre>{{Resource | movement | count = 5}}</pre>
|-
|-
| Costs: {{Resource | ki | count = 2 | icononly = yes}}
| Costs: {{Resource | ki | count = 2 | icononly = yes}}