Template:Resource: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
m (SORRY BARDS ALL OVER I FORGOT ABOUT YOUR INSPIRATION ;A;)
m (ki charge -> ki point)
Line 6: Line 6:
{{#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 = {{#vardefine: name|Superiority {{#ifexpr: {{#var: isplural}} > 0 |Dices|Die}}}} {{#vardefine: icon|Superiority Die d8 Icon.png}}
| sd | supdie | superiority die = {{#vardefine: name|Superiority {{#ifexpr: {{#var: isplural}} > 0 |Dices|Die}}}} {{#vardefine: icon|Superiority Die d8 Icon.png}}
| ki = {{#vardefine: name|Ki Charge{{#ifexpr: {{#var: isplural}} > 0 |s}}}} {{#vardefine: icon|Monk Ki Icon.png}}
| ki = {{#vardefine: name|Ki Point{{#ifexpr: {{#var: isplural}} > 0 |s}}}} {{#vardefine: icon|Monk Ki Icon.png}}
| ws | wldshp | wild shape | = {{#vardefine: name|Wild Shape Charge{{#ifexpr: {{#var: isplural}} > 0 |s}}}} {{#vardefine: icon|Wild Shape Charges Icon.png}}
| ws | wldshp | wild shape | = {{#vardefine: name|Wild Shape Charge{{#ifexpr: {{#var: isplural}} > 0 |s}}}} {{#vardefine: icon|Wild Shape Charges Icon.png}}
| spell1 | s1 | level1 | l1 = {{#vardefine: name|Level 1 Spell Slot{{#ifexpr: {{#var: isplural}} > 0 |s}}}} {{#vardefine: icon|Spell Slot Icon.png}}
| spell1 | s1 | level1 | l1 = {{#vardefine: name|Level 1 Spell Slot{{#ifexpr: {{#var: isplural}} > 0 |s}}}} {{#vardefine: icon|Spell Slot Icon.png}}

Revision as of 09:11, 25 August 2023

What is this?

This is a template for a quicker and more standardized manner of typing out the class-specific resource.

If there are any missing ones, don't hesitate to contribute!

Quick Reference

name parameter
Resource Input
Level 1 Spell Slots l1, s1, spell1, level1
Level 2 Spell Slots l2, s2, spell2, level2
Level 3 Spell Slots l3, s3, spell3, level3
Level 4 Spell Slots l4, s4, spell4, level4
Level 5 Spell Slots l5, s5, spell5, level5
Level 6 Spell Slots l6, s6, spell6, level6
Arcane Recovery Charges ar, arcrec, arcane recovery
Bardic Inspiration Charges bi, bardin, bardic inspriation
Channel Divinity Charges cd, chadiv, channel divinity
Channel Oath Charges co, chaoat, channel oath
Ki Points ki
Lay on Hands Charges lh, layonh, lay on hands
Natural Recovery Charges nr, natrec, natural recovery
Rage Charges rg, rage
Sorcery Points sp, srcpnt, sorcery
Superiority Dices sd, supdie, superiority die
War Priest Charge Charges wp, warpri, war priest
Wild Shape Charges ws, wldshp, wild shape

Examples

Output Input
UNDEFINED
{{Resource | name = invalid}}
UNDEFINED
{{Resource}}
Superiority Die
{{Resource | name = supdie}}
2Superiority Dices
{{Resource | name = SUPdie | count = 2}}
Superiority Dices
{{Resource | name = supdie | forceplural=yes}}
200Ki Points
{{Resource | name = ki | count = 200}}
{{Resource | name = ki | icononly = yes}}
Costs: 3
Costs: {{Resource | name = ki | count = 3 | icononly = yes}}
Recover half of your max Ki Points, once per short rest.
Recover half of your max {{Resource | name = ki | forceplural = yes}}, once per short rest.
Arcane Recovery Charges
{{Resource | name = ar | count = 1 | forceplural = yes}}