Template:HealingInfo: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
m (Fix category name)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><code>[[File:D{{{die}}} Healing.png|frameless|link=|60px]] {{DamageColor|Healing|{{{count}}}d{{{die}}} {{#if:{{{plus|}}}|+ {{{plus}}}|}} ({{#expr: {{{count}}} + {{{plus|0}}} }}-{{#expr: {{{count}}}*{{{die}}} + {{{plus|0}}} }}) {{#if:{{{modifier|}}}|+ {{{modifier}}}|}} {{#if:{{{per|}}}|per {{{per}}}|}} }} [[File:Healing Icon.png|frameless|link=|40px]] {{DamageColor|Healing|Hit Points}} &nbsp; </code></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:


Usage: {{code|<nowiki>{{HealingInfo|count=1|die=8}}</nowiki>}}
{{code|<nowiki>{{HealingInfo | 1d8 }}</nowiki>}}
{{HealingInfo | 1d8 }}


Result: {{HealingInfo|count=1|die=8}}
---


Usage: {{code|<nowiki>{{HealingInfo|count=1|die=4|modifier=[[Spellcasting Modifier]]|per=spell level}}</nowiki>}}
{{code|<nowiki>{{HealingInfo | 1d4+1 }}</nowiki>}}
{{HealingInfo | 1d4+1 }}


Result: {{HealingInfo|count=1|die=4|modifier=[[Spellcasting Modifier]]|per=spell level}}
---


{{code|<nowiki>{{HealingInfo | 1d12 | per = turn }}</nowiki>}}
{{HealingInfo | 1d12 | per = turn }}
---
{{code|<nowiki>{{HealingInfo | 1d8 | modifier = spell | per = ally }}</nowiki>}}
{{HealingInfo | 1d8 | modifier = spell | per = ally }}
---
{{code|<nowiki>{{HealingInfo | 1d8 | modifier = Wisdom }}</nowiki>}}
{{HealingInfo | 1d8 | modifier = Wisdom }}
---
[[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

---