Template:Damage info/Primitive: Difference between revisions

Jump to navigation Jump to search
Moved conditinal text so it's coloured
(Try using main only template)
(Moved conditinal text so it's coloured)
Line 1: Line 1:
<includeonly><div class="bg3wiki-info-blob">{{#if: {{{die|}}} | {{DieIcon | D{{{die}}} | {{{type}}} }} }} {{DamageColor | {{{type}}} | {{#if: {{{flat value|}}} | {{{flat value}}} }}{{#if: {{{die|}}} | {{#if:{{{con|}}} | + |}}{{{count}}}d{{{die}}} }} {{#switch: {{{plus|0}}} | 0 = | + {{{plus}}} }} {{#if: {{{die|}}} | ({{#expr: {{{count}}} + {{{plus|0}}} }}~{{#expr: {{{count}}}*{{{die}}} + {{{plus|0}}} }}) }} {{DamageModifier | {{{modifier|}}} }} {{#ifeq: {{{type|}}} | Healing | {{DamageType | {{{type}}} }}  | {{DamageType | {{{type}}} }} damage}} {{#if: {{{per|}}} | per {{{per}}} }} }} {{#if: {{{save|}}} | ({{#switch:{{{save}}} | no | none = No [[Saving Throw]] allowed | #default = [[Saving Throw|{{{save}}} Save]] to {{#switch: {{{save effect|}}} | half | halve = halve | #default = negate }} }})}} {{#if:{{{con|}}} | (Conditional)|}}</div>{{#if:{{{type|}}}|{{Main only|[[Category:Sources of {{{type}}} damage]]}}}}</includeonly><noinclude>
<includeonly><div class="bg3wiki-info-blob">{{#if: {{{die|}}} | {{DieIcon | D{{{die}}} | {{{type}}} }} }} {{DamageColor | {{{type}}} | {{#if: {{{flat value|}}} | {{{flat value}}} }}{{#if: {{{die|}}} | {{#if:{{{con|}}} | + |}}{{{count}}}d{{{die}}} }} {{#switch: {{{plus|0}}} | 0 = | + {{{plus}}} }} {{#if: {{{die|}}} | ({{#expr: {{{count}}} + {{{plus|0}}} }}~{{#expr: {{{count}}}*{{{die}}} + {{{plus|0}}} }}) }} {{DamageModifier | {{{modifier|}}} }} {{#ifeq: {{{type|}}} | Healing | {{DamageType | {{{type}}} }}  | {{DamageType | {{{type}}} }} damage}} {{#if: {{{per|}}} | per {{{per}}} }} {{#if:{{{con|}}} | (Conditional)|}}}} {{#if: {{{save|}}} | ({{#switch:{{{save}}} | no | none = No [[Saving Throw]] allowed | #default = [[Saving Throw|{{{save}}} Save]] to {{#switch: {{{save effect|}}} | half | halve = halve | #default = negate }} }})}}</div>{{#if:{{{type|}}}|{{Main only|[[Category:Sources of {{{type}}} damage]]}}}}</includeonly><noinclude>
Examples:
Examples:


Navigation menu