Ad placeholder

Template:Damage text: Difference between revisions

Jump to navigation Jump to search
add drs parameter
No edit summary
(add drs parameter)
Line 1: Line 1:
<includeonly><span style="white-space: nowrap;">{{DamageColor | {{{2}}} |'''{{{1}}}{{DamageIcon|{{{2}}}}}{{#ifeq: {{{2}}} | Healing | [[Hit Points|{{DamageColor | {{{2}}} |Hit Points}}]]''' | [[Damage Types|{{DamageColor | {{{2}}} |{{{2}}}}}]]'''}}}}</span></includeonly><noinclude>
<includeonly><span style="white-space: nowrap;">{{DamageColor | {{{2}}} |'''{{{1}}}{{DamageIcon|{{{2}}}}}{{#ifeq: {{{2}}} | Healing | [[Hit Points|{{DamageColor | {{{2}}} |Hit Points}}]]''' | [[Damage Types|{{DamageColor | {{{2}}} |{{{2}}}}}]]'''}}}}{{#if:{{{drs|}}}|{{DRS}}}}</span></includeonly><noinclude>
 
This template inserts formatted damage text.
 
=== Basic usage ===


Usage: {{code|Blah blah deals <nowiki>{{DamageText|2d6|Fire}}</nowiki> damage.}}
Usage: {{code|Blah blah deals <nowiki>{{DamageText|2d6|Fire}}</nowiki> damage.}}
Line 8: Line 12:


Result: Blah blah deals {{DamageText|2d6|Physical}} damage.
Result: Blah blah deals {{DamageText|2d6|Physical}} damage.
----
Also supports Healing text.


=== Healing text ===
Usage: {{code|Blah blah heals <nowiki>{{DamageText|2d4+2|Healing}}</nowiki>.}}
Usage: {{code|Blah blah heals <nowiki>{{DamageText|2d4+2|Healing}}</nowiki>.}}


Result: Blah blah restores {{DamageText|2d4+2|Healing}}.
Result: Blah blah restores {{DamageText|2d4+2|Healing}}.
=== [[Damage rider as source]] ===
See [[Template:DRS]] for an explanation on why anyone would want to do this.
Usage: {{code|Blah blah deals <nowiki>{{DamageText|2d6|Physical}}</nowiki> damage.}}
Result: Blah blah deals {{DamageText|2d6|Physical|drs=t}} damage.
[[Category:Damage Info Templates]]
[[Category:Damage Info Templates]]
</noinclude>
</noinclude>

Navigation menu