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