6,366
editsAd placeholder
Template:HealingInfo/Primitive: Difference between revisions
Jump to navigation
Jump to search
m
Template:HealingInfo/Primitive (view source)
Revision as of 16:09, 10 October 2023
, 10 October 2023Fix category name
(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> |