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
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"><font color=#CC1037>BRUTE</font></abbr>
  | BRUTE = <abbr title="Brute damage: Blunt, Slash, Piercing"><span style="color:#CC1037">BRUTE</span></abbr>
  | Blunt = <font color=#CC1037>Blunt</font>
  | Blunt = <span style="color:#CC1037">Blunt</span>
  | Slash = <font color=#CC1037>Slash</font>
  | Slash = <span style="color:#CC1037">Slash</span>
  | Piercing = <font color=#CC1037>Piercing</font>
  | Piercing = <span style="color:#CC1037">Piercing</span>
  | BURN = <abbr title="Burn damage: Heat, Shock, Cold, Caustic"><font color=#CC7A1D>BURN</font></abbr>
  | BURN = <abbr title="Burn damage: Heat, Shock, Cold, Caustic"><span style="color:#CC7A1D">BURN</span></abbr>
  | Heat = <font color=#CC7A1D>Heat</font>
  | Heat = <span style="color:#CC7A1D">Heat</span>
  | Shock = <font color=#CC7A1D>Shock</font>
  | Shock = <span style="color:#CC7A1D">Shock</span>
  | Cold = <font color=#CC7A1D>Cold</font>
  | Cold = <span style="color:#CC7A1D">Cold</span>
  | Caustic = <font color=#CC7A1D>Caustic</font>
  | Caustic = <span style="color:#CC7A1D">Caustic</span>
  | AIR = <abbr title="Airloss damage: Asphyxiation, Bloodloss"><font color=#1F75D1>AIR</font></abbr>
  | AIR = <abbr title="Airloss damage: Asphyxiation, Bloodloss"><span style="color:#1F75D1">AIR</span></abbr>
  | Asphyxiation = <font color=#1F75D1>Asphyxiation</font>
  | Asphyxiation = <span style="color:#1F75D1">Asphyxiation</span>
  | Bloodloss = <font color=#1F75D1>Bloodloss</font>
  | Bloodloss = <span style="color:#1F75D1">Bloodloss</span>
  | TOXIN = <abbr title="Toxin damage: Poison, Radiation"><font color=#138015>TOXIN</font></abbr>
  | TOXIN = <abbr title="Toxin damage: Poison, Radiation"><span style="color:#138015">TOXIN</span></abbr>
  | Poison = <font color=#138015>Poison</font>
  | Poison = <span style="color:#138015">Poison</span>
  | Radiation = <font color=#138015>Radiation</font>
  | Radiation = <span style="color:#138015">Radiation</span>
  | GENE = <abbr title="Genetic damage: Cellular"><font color=#C994C7>GENE</font></abbr>
  | GENE = <abbr title="Genetic damage: Cellular"><span style="color:#C994C7">GENE</span></abbr>
  | Cellular = <font color=#C994C7>Cellular</font>
  | Cellular = <span style="color:#C994C7">Cellular</span>
  | IMMAT = <abbr title="Immaterial damage: Holy"><font color=#FFC000>IMMAT</font></abbr>
  | IMMAT = <abbr title="Immaterial damage: Holy"><span style="color:#FFC000">IMMAT</span></abbr>
  | Holy = <font color=#FFC000>Holy</font>
  | Holy = <span style="color:#FFC000">Holy</span>
  | STAM = <abbr title="Stamina damage"><font color=#ADD8E6>STAM</font></abbr>
  | STAM = <abbr title="Stamina damage"><span style="color:#ADD8E6">STAM</span></abbr>
  | STRUC = <abbr title="Structural damage"><font color=#D3D3D3>STRUC</font></abbr>
  | STRUC = <abbr title="Structural damage"><span style="color:#D3D3D3">STRUC</span></abbr>
  | <font color=#E60000>'''INCORRECT TYPE'''</font>}}</onlyinclude>
  | <span style="color:#E60000>'''INCORRECT TYPE'''</span>}}</onlyinclude>
 
<!--
{{#if:{{{2|}}}|{{#ifexpr:{{{2}}}<0|<font color=#FF0000>'''{{{2}}}''' </font>|{{#ifexpr:{{{2}}}>0|<font color=#00FF00>'''{{{2}}}''' </font>|}}}}|}}
 
{{DMG|BRUTE|20}}
 
{{DMG|BRUTE|-20}}
-->


== Usage ==
== Usage ==

Revision as of 20: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