Template:HealingInfo: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
m (change "-" character to "~" to match healing range, as in Template:DamageInfo)
m (Fix category name)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><div class="bg3wiki-damage-info">{{DieIcon|D{{{die}}}|Healing}} {{DamageColor|Healing|{{{count}}}d{{{die}}} {{#if:{{{plus|}}}|+ {{{plus}}}|}} ({{#expr: {{{count}}} + {{{plus|0}}} }}~{{#expr: {{{count}}}*{{{die}}} + {{{plus|0}}} }}) {{#if:{{{modifier|}}}|+ {{{modifier}}}|}} {{#if:{{{per|}}}| per {{{per}}}|}} }} {{icon|Healing Icon.png|30}} {{DamageColor|Healing|Hit Points}}</div></includeonly><noinclude>
<includeonly>{{HealingInfo/Primitive
| count = {{{count |
  {{#explode: {{lc: {{{1}}} }} | d | 0 }}
}}}
| die = {{{die |
  {{#explode: {{#replace: {{lc: {{{1}}} }} | d | + }} | + | 1 }}
}}}
| plus = {{{plus |
  {{#if: {{#pos: {{{1}}} | + }}
    | {{#explode: {{#replace: {{lc: {{{1}}} }} | d | + }} | + | 2}}
    | 0 }}
}}}
| modifier = {{{modifier | }}}
| per = {{{per | }}}
}}</includeonly><noinclude>
Examples:
 
{{code|<nowiki>{{HealingInfo | 1d8 }}</nowiki>}}
{{HealingInfo | 1d8 }}
 
---
 
{{code|<nowiki>{{HealingInfo | 1d4+1 }}</nowiki>}}
{{HealingInfo | 1d4+1 }}
 
---


Examples:
{{code|<nowiki>{{HealingInfo | 1d12 | per = turn }}</nowiki>}}
{{HealingInfo | 1d12 | per = turn }}
 
---


{{code|<nowiki>{{HealingInfo|count=1|die=8}}</nowiki>}}
{{code|<nowiki>{{HealingInfo | 1d8 | modifier = spell | per = ally }}</nowiki>}}
{{HealingInfo|count=1|die=8}}
{{HealingInfo | 1d8 | modifier = spell | per = ally }}


---
---


{{code|<nowiki>{{HealingInfo|count=1|die=4|modifier=[[Spellcasting Modifier]]|per=ally}}</nowiki>}}
{{code|<nowiki>{{HealingInfo | 1d8 | modifier = Wisdom }}</nowiki>}}
{{HealingInfo|count=1|die=4|modifier=[[Spellcasting Modifier]]|per=ally}}
{{HealingInfo | 1d8 | modifier = Wisdom }}
 
---


[[Category:Damage Info Templates]]
[[Category:Damage info templates]]
</noinclude>
</noinclude>

Latest revision as of 16:09, 10 October 2023

Examples:

{{HealingInfo | 1d8 }}

D8 Healing.png 1d8 (1~8) Healing Icon.png Hit Points

---

{{HealingInfo | 1d4+1 }}

D4 Healing.png 1d4 + 1 (2~5) Healing Icon.png Hit Points

---

{{HealingInfo | 1d12 | per = turn }}

D12 Healing.png 1d12 (1~12) per turn Healing Icon.png Hit Points

---

{{HealingInfo | 1d8 | modifier = spell | per = ally }}

D8 Healing.png 1d8 (1~8) + spellcasting modifier per ally Healing Icon.png Hit Points

---

{{HealingInfo | 1d8 | modifier = Wisdom }}

D8 Healing.png 1d8 (1~8) + Wisdom modifier Healing Icon.png Hit Points

---