Template:Damage
Usage
{{Damage
Specify a damage type or group from the table below and any optional params. Any casing is allowed.
Depending on whether it's a damage type or group, the following will be generated:
- If it's a damage type, a potentially colored label with an amount (if specified) will be produced. If specified type is an alias, the real definition will be used for displaying a label (hence the same labels for some damage types in the damage types table).
- If it's a damage group, a label will be produced for that group, similar to the damage type. The damage types composing that group will be listed in parenthesis, with amount if it's specified for all of them (including the group label).
For amount a simple number will do. If it's a damage group, specify the amount for the entire group - each subtype will get its amount properly calculated.
The [dealt or healed] optional allows to specify whether damage was dealed or healed. Simply put + for healing or - for dealt damage. Using this parameter requires specifying the amount.
If any of the above is confusing, check out the examples below.
How to make changes
See Module:Damage for details.
Examples
Damage type
{{Damage
↓
blunt
Damage type with an amount
{{Damage
↓
5 poison
Damage group
{{Damage
↓
burn (heat, shock, cold and caustic)
Damage group with an amount
↓
- 10 toxin (5 poison and 5 radiation)
- 25 brute (≈8.3 blunt, ≈8.3 slash and ≈8.3 piercing)
Specifying dealt/healed damage
↓
- 10 caustic
- 10 caustic
Configuring distribution between damage types in a group
Damage group can distribute its damage between damage types in different ways:
- By default, the damage gets evenly distributed between damage types: 10 toxin (5 poison and 5 radiation). Each damage type can only heal/deal its part of damage, no more.
- With shared value on the distribution param, the damage is shared among all damage types: 10 toxin (10 damage between poison and radiation). Each damage type can heal the entire damage of the damage group.
Above example: {{Damage
List of damage groups
Damage group | How it looks | Alias template |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List of damage types
Damage type | How it looks | Alias template |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Creates a colored label corresponding to a damage type.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | 1 | Damage type or damage group. Lowercase and other -case values are allowed.
| Line | required |
Amount | 2 | Amount of that damage. | Number | suggested |
Damage or healing? | 3 | Is the damage dealt or healed? '+' for healing, '-' for damage.
| Line | suggested |
Distribution | split distribution distrib | For damage groups: how is the damage in the damage group is split? "Each" - damage is split evenly between damage types (for example, 10 toxin → 5 poison and 5 radiation). "Shared" - damage is shared between all damage types (for example, 10 toxin → 10 between poison and radiation).
| Line | suggested |