Template:HealingInfo/Primitive: Difference between revisions
(Created page with "<includeonly><div class="bg3wiki-info-blob">{{DieIcon|D{{{die}}}|Healing}} {{DamageColor | Healing | {{{count}}}d{{{die}}} {{#switch:{{{plus|0}}}|0=|+ {{{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> Examples: {{code|<nowiki>{{HealingInfo/Primit...") |
m (Fix category name) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="bg3wiki-info-blob">{{DieIcon|D{{{die}}}|Healing}} {{DamageColor | Healing | {{{count}}}d{{{die}}} {{#switch:{{{plus|0}}}|0=|+ {{{plus}}}}} ({{#expr: {{{count}}} + {{{plus|0}}} }}~{{#expr: {{{count}}}*{{{die}}} + {{{plus|0}}} }}) {{ | <includeonly><div class="bg3wiki-info-blob">{{DieIcon|D{{{die}}}|Healing}} {{DamageColor | Healing | {{{count}}}d{{{die}}} {{#switch:{{{plus|0}}}|0=|+ {{{plus}}}}} ({{#expr: {{{count}}} + {{{plus|0}}} }}~{{#expr: {{{count}}}*{{{die}}} + {{{plus|0}}} }}) {{DamageModifier | {{{modifier|}}} }} {{#if:{{{per|}}}|per {{{per}}}|}} }} {{icon|Healing Icon.png|30}} {{DamageColor|Healing|Hit Points}}</div></includeonly><noinclude> | ||
Examples: | Examples: | ||
{{code|<nowiki>{{HealingInfo/Primitive|count=1|die=8}}</nowiki>}} | {{code|<nowiki>{{HealingInfo/Primitive|count=1|die=8}}</nowiki>}} | ||
{{HealingInfo|count=1|die=8}} | {{HealingInfo/Primitive|count=1|die=8}} | ||
--- | --- | ||
{{code|<nowiki>{{HealingInfo/Primitive|count=1|die=4|modifier= | {{code|<nowiki>{{HealingInfo/Primitive|count=1|die=4|modifier=spell|per=ally}}</nowiki>}} | ||
{{HealingInfo|count=1|die=4|modifier= | {{HealingInfo/Primitive|count=1|die=4|modifier=spell|per=ally}} | ||
---- | ---- | ||
Examples: | Examples of using [[Template:HealingInfo]]: | ||
{{code|<nowiki>{{HealingInfo | 1d8 | {{code|<nowiki>{{HealingInfo | 1d8 }}</nowiki>}} | ||
{{HealingInfo | 1d8 | {{HealingInfo | 1d8 }} | ||
--- | --- | ||
{{code|<nowiki>{{HealingInfo | | {{code|<nowiki>{{HealingInfo | 1d4+1 }}</nowiki>}} | ||
{{HealingInfo | | {{HealingInfo | 1d4+1 }} | ||
--- | --- | ||
{{code|<nowiki>{{HealingInfo | | {{code|<nowiki>{{HealingInfo | 1d12 | per = turn }}</nowiki>}} | ||
{{HealingInfo | | {{HealingInfo | 1d12 | per = turn }} | ||
--- | --- | ||
{{code|<nowiki>{{HealingInfo | | {{code|<nowiki>{{HealingInfo | 1d8 | modifier = spell | per = ally }}</nowiki>}} | ||
{{HealingInfo | | {{HealingInfo | 1d8 | modifier = spell | per = ally }} | ||
--- | --- | ||
{{code|<nowiki>{{HealingInfo | | {{code|<nowiki>{{HealingInfo | 1d8 | modifier = Wisdom }}</nowiki>}} | ||
{{HealingInfo | | {{HealingInfo | 1d8 | modifier = Wisdom }} | ||
--- | --- | ||
Line 79: | Line 43: | ||
The {{code|plus}} parameter must be either omitted entirely, or set to a valid number, but never provided with an empty value like {{code|<nowiki>{{...|plus=|...}}</nowiki>}}. It can be set to 0, which is the same as omitting it, so if you're using this template from within another, and want to pass on an optional parameter for the plus value, you can pass it on like {{code|<nowiki>{{...|plus={{{MyOptionalPlus|0}}}|...}}</nowiki>}}. | The {{code|plus}} parameter must be either omitted entirely, or set to a valid number, but never provided with an empty value like {{code|<nowiki>{{...|plus=|...}}</nowiki>}}. It can be set to 0, which is the same as omitting it, so if you're using this template from within another, and want to pass on an optional parameter for the plus value, you can pass it on like {{code|<nowiki>{{...|plus={{{MyOptionalPlus|0}}}|...}}</nowiki>}}. | ||
[[Category:Damage | [[Category:Damage info templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 16:09, 10 October 2023
Examples:
{{HealingInfo/Primitive|count=1|die=8}}
---
{{HealingInfo/Primitive|count=1|die=4|modifier=spell|per=ally}}
Examples of using Template:HealingInfo:
{{HealingInfo | 1d8 }}
---
{{HealingInfo | 1d4+1 }}
---
{{HealingInfo | 1d12 | per = turn }}
---
{{HealingInfo | 1d8 | modifier = spell | per = ally }}
---
{{HealingInfo | 1d8 | modifier = Wisdom }}
---
IMPORTANT NOTES
The plus
parameter must be either omitted entirely, or set to a valid number, but never provided with an empty value like {{...|plus=|...}}
. It can be set to 0, which is the same as omitting it, so if you're using this template from within another, and want to pass on an optional parameter for the plus value, you can pass it on like {{...|plus={{{MyOptionalPlus|0}}}|...}}
.