No edit summary |
(Add parameter to colorcode damage and use span instead of obsolete font) |
||
Line 1: | Line 1: | ||
<onlyinclude>{{#switch: {{{1|}}} | <onlyinclude>{{#if:{{{2}}}|{{#ifeq:{{{2|}}}|+|<span style="color:#FF0000">'''{{{3|}}} '''</span>|{{#ifeq:{{{2|}}}|-|<span style="color:#00FF00">'''{{{3|}}} '''</span>|}}}}|}}{{#switch: {{{1|}}} | ||
| BRUTE = <abbr title="Brute damage: Blunt, Slash, Piercing">< | | BRUTE = <abbr title="Brute damage: Blunt, Slash, Piercing"><span style="color:#CC1037">BRUTE</span></abbr> | ||
| Blunt = < | | Blunt = <span style="color:#CC1037">Blunt</span> | ||
| Slash = < | | Slash = <span style="color:#CC1037">Slash</span> | ||
| Piercing = < | | Piercing = <span style="color:#CC1037">Piercing</span> | ||
| BURN = <abbr title="Burn damage: Heat, Shock, Cold, Caustic">< | | BURN = <abbr title="Burn damage: Heat, Shock, Cold, Caustic"><span style="color:#CC7A1D">BURN</span></abbr> | ||
| Heat = < | | Heat = <span style="color:#CC7A1D">Heat</span> | ||
| Shock = < | | Shock = <span style="color:#CC7A1D">Shock</span> | ||
| Cold = < | | Cold = <span style="color:#CC7A1D">Cold</span> | ||
| Caustic = < | | Caustic = <span style="color:#CC7A1D">Caustic</span> | ||
| AIR = <abbr title="Airloss damage: Asphyxiation, Bloodloss">< | | AIR = <abbr title="Airloss damage: Asphyxiation, Bloodloss"><span style="color:#1F75D1">AIR</span></abbr> | ||
| Asphyxiation = < | | Asphyxiation = <span style="color:#1F75D1">Asphyxiation</span> | ||
| Bloodloss = < | | Bloodloss = <span style="color:#1F75D1">Bloodloss</span> | ||
| TOXIN = <abbr title="Toxin damage: Poison, Radiation">< | | TOXIN = <abbr title="Toxin damage: Poison, Radiation"><span style="color:#138015">TOXIN</span></abbr> | ||
| Poison = < | | Poison = <span style="color:#138015">Poison</span> | ||
| Radiation = < | | Radiation = <span style="color:#138015">Radiation</span> | ||
| GENE = <abbr title="Genetic damage: Cellular">< | | GENE = <abbr title="Genetic damage: Cellular"><span style="color:#C994C7">GENE</span></abbr> | ||
| Cellular = < | | Cellular = <span style="color:#C994C7">Cellular</span> | ||
| IMMAT = <abbr title="Immaterial damage: Holy">< | | IMMAT = <abbr title="Immaterial damage: Holy"><span style="color:#FFC000">IMMAT</span></abbr> | ||
| Holy = < | | Holy = <span style="color:#FFC000">Holy</span> | ||
| STAM = <abbr title="Stamina damage">< | | STAM = <abbr title="Stamina damage"><span style="color:#ADD8E6">STAM</span></abbr> | ||
| STRUC = <abbr title="Structural damage">< | | STRUC = <abbr title="Structural damage"><span style="color:#D3D3D3">STRUC</span></abbr> | ||
| < | | <span style="color:#E60000>'''INCORRECT TYPE'''</span>}}</onlyinclude> | ||
== Usage == | == Usage == |
Revision as of 19:06, 6 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