Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:DMG: Difference between revisions

Template page
(Actually use a switch instead of 20 nested ifeq)
No edit summary
Line 1: Line 1:
<onlyinclude>
<onlyinclude>{{#switch: {{{1|}}}
{{#switch: {{{1|}}}
  | BRUTE = <abbr title="Brute damage: Blunt, Slash, Piercing"><font color=#CC1037>BRUTE</font></abbr>
  | BRUTE = <abbr title="Brute damage: Blunt, Slash, Piercing"><font color=#CC1037>BRUTE</font></abbr>
  | Blunt = <font color=#CC1037>Blunt</font>
  | Blunt = <font color=#CC1037>Blunt</font>

Revision as of 19:20, 4 December 2023


Usage

This is mostly a decorative template to color the damages and show a tooltip for damage groups. Mostly used for the Weapons page but can be freely used anywhere else. Please use the groups as much as possible to avoid cluttering the table when specific damage types aren't required.

To use it, simply write:

{{DMG|TOXIN}}

Which will render differently depending on the damage you write;

Damage groups and types:
BRUTE: BRUTE
Blunt: Blunt
Slash: Slash
Piercing: Piercing

BURN: BURN
Heat: Heat
Shock: Shock
Cold: Cold
Caustic: Caustic

AIR: AIR
Asphyxiation: Asphyxiation
Bloodloss: Bloodloss

TOXIN: TOXIN
Poison: Poison
Radiation: Radiation

GENE: GENE
Cellular: Cellular

IMMAT: IMMAT
Holy: Holy

STAM: STAM

STRUC: STRUC