Template:Resource: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
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}}
| action = {{#lvardef: type|{{#if: {{{nameonly|}}}|Action|[[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}}
| bonus = {{#lvardef: type|{{#if: {{{nameonly|}}}|Bonus action|[[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}}
| reaction = {{#lvardef: type|{{#if: {{{nameonly|}}}|Reaction|[[Reaction]]}}{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Reaction Icon.png}}
| movement = {{#lvardef: type|[[Movement speed|Movement]]}} {{#lvardef: icon|Movement Speed Icon.png}} {{#if: {{{count|}}}| {{#lvardef: count| {{Distance/Transform|{{{count|}}}}}}}|{{#if: {{{2|}}} | {{#lvardef:count|{{Distance/Transform|{{{2|}}}}}}}}}}}
| movement = {{#lvardef: type|{{#if: {{{nameonly|}}}|Movement|[[Movement speed|Movement]]}}}} {{#lvardef: icon|Movement Speed Icon.png}} {{#if: {{{count|}}}| {{#lvardef: count| {{Distance/Transform|{{{count|}}}}}}}|{{#if: {{{2|}}} | {{#lvardef:count|{{Distance/Transform|{{{2|}}}}}}}}}}}
| half movement = {{#lvardef: type|[[Movement speed|Movement]] (Half cost)}} {{#lvardef: icon|Movement Speed Icon.png}}
| half movement = {{#lvardef: type|{{#if: {{{nameonly|}}}|Movement (Half cost)|[[Movement speed|Movement]] (Half cost)}}}} {{#lvardef: icon|Movement Speed Icon.png}}
| 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 | fnginf = {{#lvardef: type|Fungal Infestation Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Fungal Infestation Charge Icon.png}}
| fi | fnginf = {{#lvardef: type|Fungal Infestation Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Fungal Infestation Charge Icon.png}}

Navigation menu