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
m (brute group color change)
(Actually use a switch instead of 20 nested ifeq)
Line 1: Line 1:
<onlyinclude>{{#ifeq:{{{1|}}}|BRUTE|<abbr title="Brute damage: Blunt, Slash, Piercing"><font color=#CC1037>BRUTE</font></abbr>
<onlyinclude>
|{{#ifeq:{{{1|}}}|Blunt|<font color=#CC1037>Blunt</font>
{{#switch: {{{1|}}}
|{{#ifeq:{{{1|}}}|Slash|<font color=#CC1037>Slash</font>
| BRUTE = <abbr title="Brute damage: Blunt, Slash, Piercing"><font color=#CC1037>BRUTE</font></abbr>
|{{#ifeq:{{{1|}}}|Piercing|<font color=#CC1037>Piercing</font>
| Blunt = <font color=#CC1037>Blunt</font>
|{{#ifeq:{{{1|}}}|BURN|<abbr title="Burn damage: Heat, Shock, Cold, Caustic"><font color=#CC7A1D>BURN</font></abbr>
| Slash = <font color=#CC1037>Slash</font>
|{{#ifeq:{{{1|}}}|Heat|<font color=#CC7A1D>Heat</font>
| Piercing = <font color=#CC1037>Piercing</font>
|{{#ifeq:{{{1|}}}|Shock|<font color=#CC7A1D>Shock</font>
| BURN = <abbr title="Burn damage: Heat, Shock, Cold, Caustic"><font color=#CC7A1D>BURN</font></abbr>
|{{#ifeq:{{{1|}}}|Cold|<font color=#CC7A1D>Cold</font>
| Heat = <font color=#CC7A1D>Heat</font>
|{{#ifeq:{{{1|}}}|Caustic|<font color=#CC7A1D>Caustic</font>
| Shock = <font color=#CC7A1D>Shock</font>
|{{#ifeq:{{{1|}}}|AIR|<abbr title="Airloss damage: Asphyxiation, Bloodloss"><font color=#1F75D1>AIR</font></abbr>
| Cold = <font color=#CC7A1D>Cold</font>
|{{#ifeq:{{{1|}}}|Asphyxiation|<font color=#1F75D1>Asphyxiation</font>
| Caustic = <font color=#CC7A1D>Caustic</font>
|{{#ifeq:{{{1|}}}|Bloodloss|<font color=#1F75D1>Bloodloss</font>
| AIR = <abbr title="Airloss damage: Asphyxiation, Bloodloss"><font color=#1F75D1>AIR</font></abbr>
|{{#ifeq:{{{1|}}}|TOXIN|<abbr title="Toxin damage: Poison, Radiation"><font color=#138015>TOXIN</font></abbr>
| Asphyxiation = <font color=#1F75D1>Asphyxiation</font>
|{{#ifeq:{{{1|}}}|Poison|<font color=#138015>Poison</font>
| Bloodloss = <font color=#1F75D1>Bloodloss</font>
|{{#ifeq:{{{1|}}}|Radiation|<font color=#138015>Radiation</font>
| TOXIN = <abbr title="Toxin damage: Poison, Radiation"><font color=#138015>TOXIN</font></abbr>
|{{#ifeq:{{{1|}}}|GENE|<abbr title="Genetic damage: Cellular"><font color=#C994C7>GENE</font></abbr>
| Poison = <font color=#138015>Poison</font>
|{{#ifeq:{{{1|}}}|Cellular|<font color=#C994C7>Cellular</font>
| Radiation = <font color=#138015>Radiation</font>
|{{#ifeq:{{{1|}}}|IMMAT|<abbr title="Immaterial damage: Holy"><font color=#FFC000>IMMAT</font></abbr>
| GENE = <abbr title="Genetic damage: Cellular"><font color=#C994C7>GENE</font></abbr>
|{{#ifeq:{{{1|}}}|Holy|<font color=#FFC000>Holy</font>
| Cellular = <font color=#C994C7>Cellular</font>
|{{#ifeq:{{{1|}}}|STAM|<abbr title="Stamina damage"><font color=#ADD8E6>STAM</font></abbr>
| IMMAT = <abbr title="Immaterial damage: Holy"><font color=#FFC000>IMMAT</font></abbr>
|{{#ifeq:{{{1|}}}|STRUC|<abbr title="Structural damage"><font color=#D3D3D3>STRUC</font></abbr>
| Holy = <font color=#FFC000>Holy</font>
|<font color=#E60000>'''INCORRECT TYPE'''</font>}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}</onlyinclude>
| STAM = <abbr title="Stamina damage"><font color=#ADD8E6>STAM</font></abbr>
<!-- Somebody make it better one day :) -->
| STRUC = <abbr title="Structural damage"><font color=#D3D3D3>STRUC</font></abbr>
| <font color=#E60000>'''INCORRECT TYPE'''</font>}}</onlyinclude>


== Usage ==
== Usage ==
Line 35: Line 36:


Damage groups and types:
Damage groups and types:
 
<br>BRUTE: {{DMG|BRUTE}}
*BRUTE: {{DMG|BRUTE}}
<br>Blunt: {{DMG|Blunt}}
**Blunt: {{DMG|Blunt}}
<br>Slash: {{DMG|Slash}}
**Slash: {{DMG|Slash}}
<br>Piercing: {{DMG|Piercing}}
**Piercing: {{DMG|Piercing}}
<br><br>BURN: {{DMG|BURN}}
 
<br>Heat: {{DMG|Heat}}
*BURN: {{DMG|BURN}}
<br>Shock: {{DMG|Shock}}
**Heat: {{DMG|Heat}}
<br>Cold: {{DMG|Cold}}
**Shock: {{DMG|Shock}}
<br>Caustic: {{DMG|Caustic}}
**Cold: {{DMG|Cold}}
<br><br>AIR: {{DMG|AIR}}
**Caustic: {{DMG|Caustic}}
<br>Asphyxiation: {{DMG|Asphyxiation}}
 
<br>Bloodloss: {{DMG|Bloodloss}}
*AIR: {{DMG|AIR}}
<br><br>TOXIN: {{DMG|TOXIN}}
**Asphyxiation: {{DMG|Asphyxiation}}
<br>Poison: {{DMG|Poison}}
**Bloodloss: {{DMG|Bloodloss}}
<br>Radiation: {{DMG|Radiation}}
 
<br><br>GENE: {{DMG|GENE}}
*TOXIN: {{DMG|TOXIN}}
<br>Cellular: {{DMG|Cellular}}
**Poison: {{DMG|Poison}}
<br><br>IMMAT: {{DMG|IMMAT}}
**Radiation: {{DMG|Radiation}}
<br>Holy: {{DMG|Holy}}
 
<br><br>STAM: {{DMG|STAM}} <!-- Not really a group but eh -->
*GENE: {{DMG|GENE}}
<br><br>STRUC: {{DMG|STRUC}} <!-- Not really a group but eh -->
**Cellular: {{DMG|Cellular}}
 
*IMMAT: {{DMG|IMMAT}}
**Holy: {{DMG|Holy}}
 
*STAM: {{DMG|STAM}} <!-- Not really a group but eh -->
 
*STRUC: {{DMG|STRUC}} <!-- Not really a group but eh -->




[[Category:Templates]]
[[Category:Templates]]

Revision as of 19:18, 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