Template:Damage display: Difference between revisions
Jump to navigation
Jump to search
Created page with "<noinclude>{{Under construction}}</noinclude><includeonly>{{#invoke: Damage display | main <!-- Parameters which come from the spell table fields --> | damage = {{{damage|}}} | damage type = {{{damage type|}}} | damage modifier = {{{damage modifier|}}} | extra damage = {{{extra damage|}}} | extra damage type = {{{extra damage type|}}} | extra damage modifier = {{{extra damage modifier|}}} | extra damage 2 = {{{extra damage 2|}}} | extra damage type 2 = {{{extra damage ty..." |
Updated module's arguments so that they are more consistent but no longer match the cargo table field names |
||
Line 1: | Line 1: | ||
<noinclude>{{Under construction}}</noinclude><includeonly>{{#invoke: Damage display | main | <noinclude>{{Under construction}}</noinclude><includeonly>{{#invoke: Damage display | main | ||
<!-- Parameters which come from the spell table fields --> | <!-- Parameters which come from the spell table fields --> | ||
| damage = {{{damage|}}} | | damage 1 = {{{damage|}}} | ||
| damage type = {{{damage type|}}} | | damage 1 type = {{{damage type|}}} | ||
| damage modifier = {{{damage modifier|}}} | | damage 1 modifier = {{{damage modifier|}}} | ||
| | | damage 2 = {{{extra damage|}}} | ||
| | | damage 2 type = {{{extra damage type|}}} | ||
| | | damage 2 modifier = {{{extra damage modifier|}}} | ||
| | | damage 3 = {{{extra damage 2|}}} | ||
| | | damage 3 type = {{{extra damage type 2|}}} | ||
| | | damage 3 modifier = {{{extra damage modifier 2|}}} | ||
| | | damage 4 = {{{extra damage 3|}}} | ||
| | | damage 4 type = {{{extra damage type 3|}}} | ||
| | | damage 4 modifier = {{{extra damage modifier 3|}}} | ||
<!-- Parameters to provide additional context for evaluating things like "Strength modifier" or "Normal weapon damage" --> | <!-- Parameters to provide additional context for evaluating things like "Strength modifier" or "Normal weapon damage" --> |
Latest revision as of 16:31, 28 January 2025
![]() | This page is in the process of being constructed or reformatted. You are welcome to contribute as well. Last edited on 2025-01-28. If multiple days have passed since, this template should be removed. |

Display damage in a format designed to replicate the in-game display.
Usage
This template is intended for use with Cargo queries and most of the fields will be filled by corresponding fields in the spells
table.
Additionally, this template accepts str
, dex
, con
, wis
, int
, cha
, casting stat
, and weapon
parameters to provide additional context. If possible, the template will replace generic placeholder information like "Strength modifier" or "Normal weapon damage" with specific values from these optional parameters.
Examples
No ability scores specified
Markup{{Damage display | damage = 1d6 + 2 | damage type = Piercing | damage modifier = finesse | extra damage = 1d6 | extra damage type = Fire }}Renders as
Damage: 4~14


1d6 + 2 + Strength or Dexterity modifierPiercing
+ 1d6Fire
Relevant ability scores specified so that the modifier can be evaluated
Markup{{Damage display | damage = 1d6 + 2 | damage type = Piercing | damage modifier = finesse | extra damage = 1d6 | extra damage type = Fire | str = 9 | dex = 17 }}Renders as
Damage: 7~17
Showing off the damage dice display
Markup{{Damage display | damage = 1d12 + 3 | damage type = Slashing | damage modifier = melee | extra damage = 1d6 | extra damage type = Fire | extra damage 2 = 2d8 | extra damage type 2 = Radiant | extra damage 3 = 1d4 | extra damage type 3 = Psychic | str = 19 | dex = 12 | dice width = 45 }}Renders as
Damage: 12~45