12,660
editsno edit summary
m (Plural of superiority die is superiority dice) |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{trim| {{# | <includeonly>{{trim| {{#lvardef: name|UNDEFINED}} {{#lvardef: icon|Alert Icon.png}}{{#lvardef:isplural|0}}{{#lvardef:icononly|0}} | ||
{{# | {{#lvardef: icononly | {{#if: {{{icononly|}}} | 1 | 0}}}} | ||
{{# | {{#lvardef: count| {{#if: {{{count|}}} | {{{count|}}} | 1}}}} <!--if count is empty, set it to 1--> | ||
{{#if: {{{count|}}}| {{#ifexpr: {{{count|}}} > 1 | {{# | {{#if: {{{count|}}}| {{#ifexpr: {{{count|}}} > 1 | {{#lvardef:isplural|1}}}}}} <!--if count is not empty, check if its plural--> | ||
{{#if: {{{forceplural|}}} | {{#ifeq: {{{forceplural|}}} | yes | {{# | {{#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:{{{name}}}}} <!-- lc is to make the input all lower case, so that case is not my biggest priority --> | {{#switch: {{lc:{{{name}}}}} <!-- lc is to make the input all lower case, so that case is not my biggest priority --> | ||
| sd | supdie | superiority die = {{# | | sd | supdie | superiority die = {{#lvardef: name|Superiority {{#ifexpr: {{#lvar: isplural}} > 0 |Dice|Die}}}} {{#lvardef: icon|Superiority Die d8 Icon.png}} | ||
| ki = {{# | | ki = {{#lvardef: name|Ki Point{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Monk Ki Icon.png}} | ||
| ws | wldshp | wild shape | = {{# | | ws | wldshp | wild shape | = {{#lvardef: name|Wild Shape Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Wild Shape Charges Icon.png}} | ||
| spell1 | s1 | level1 | l1 = {{# | | spell1 | s1 | level1 | l1 = {{#lvardef: name|Level 1 Spell Slot{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Spell Slot Icon.png}} | ||
| spell2 | s2 | level2 | l2 = {{# | | spell2 | s2 | level2 | l2 = {{#lvardef: name|Level 2 Spell Slot{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Spell Slot Icon.png}} | ||
| spell3 | s3 | level3 | l3 = {{# | | spell3 | s3 | level3 | l3 = {{#lvardef: name|Level 3 Spell Slot{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Spell Slot Icon.png}} | ||
| spell4 | s4 | level4 | l4 = {{# | | spell4 | s4 | level4 | l4 = {{#lvardef: name|Level 4 Spell Slot{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Spell Slot Icon.png}} | ||
| spell5 | s5 | level5 | l5 = {{# | | spell5 | s5 | level5 | l5 = {{#lvardef: name|Level 5 Spell Slot{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Spell Slot Icon.png}} | ||
| spell6 | s6 | level6 | l6 = {{# | | spell6 | s6 | level6 | l6 = {{#lvardef: name|Level 6 Spell Slot{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Spell Slot Icon.png}} | ||
| ar | arcrec | arcane recovery = {{# | | ar | arcrec | arcane recovery = {{#lvardef: name|Arcane Recovery Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Arcane Recovery Charges Icons.png}} | ||
| bi | bardin | bardic inspriation = {{# | | bi | bardin | bardic inspriation = {{#lvardef: name|Bardic Inspiration Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Bardic Inspiration Resource Icon.png}} | ||
| cd | chadiv | channel divinity = {{# | | cd | chadiv | channel divinity = {{#lvardef: name|Channel Divinity Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Channel Divinity Charges Icons.png}} | ||
| co | chaoat | channel oath = {{# | | co | chaoat | channel oath = {{#lvardef: name|Channel Oath Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Channel Oath Icon.png}} | ||
| rg | rage = {{# | | rg | rage = {{#lvardef: name|Rage Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Rage Charges Icons.png}} | ||
| sp | srcpnt | sorcery = {{# | | sp | srcpnt | sorcery = {{#lvardef: name|Sorcery Point{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Sorcery Points Icons.png}} | ||
| wp | warpri | war priest = {{# | | wp | warpri | war priest = {{#lvardef: name|War Priest Charge Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|War Priest Charges Icon.png}} | ||
| lh | layonh | lay on hands = {{# | | lh | layonh | lay on hands = {{#lvardef: name|Lay on Hands Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Lay on Hands Resource Icon.png}} | ||
| nr | natrec | natural recovery = {{# | | nr | natrec | natural recovery = {{#lvardef: name|Natural Recovery Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Natural Recovery Charges Icon.png}} | ||
}}{{#ifexpr: {{# | }}{{#ifexpr: {{#lvar: isplural}} > 0 | ||
| {{#if: {{{forceplural|}}}||{{# | | {{#if: {{{forceplural|}}}||{{#lvar: count}}}}}}{{SmallIcon|{{#lvar:icon}}}}{{#ifexpr: {{#lvar: icononly}} < 1 |{{#lvar: name}}}}}}</includeonly><noinclude>[[Category:Templates]] | ||
=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 is a template for a quicker and more standardized manner of typing out the class-specific resource. |