70,989
editsLink the common resources
HiddenDragon (talk | contribs) (Fixed count/distance) |
HiddenDragon (talk | contribs) (Link the 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}} | | 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}} | | 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}} | | reaction = {{#lvardef: type|[[Reaction]]{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Reaction Icon.png}} | ||
| movement = {{#lvardef: type|Movement}} {{#lvardef: icon|Movement Speed Icon.png}} {{#if: {{{count|}}}| {{#lvardef: count| {{Distance/Transform|{{{count|}}}}}}}|{{#if: {{{2|}}} | {{#lvardef:count|{{Distance/Transform|{{{2|}}}}}}}}}}} | | 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|}}}}}}}}}}} | ||
| 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}} |