Template:DMG

From Nuclear 14
Revision as of 17:13, 30 August 2024 by Schepka (talk | contribs)
Jump to navigation Jump to search

{{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: {{{1}}}

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| {{{1}}} = INCORRECT TYPE|}}

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: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Brute

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Brute = INCORRECT TYPE|}}


Blunt: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Blunt

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Blunt = INCORRECT TYPE|}}


Slash: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Slash

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Slash = INCORRECT TYPE|}}


Piercing: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Piercing

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Piercing = INCORRECT TYPE|}}



Burn: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Burn

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Burn = INCORRECT TYPE|}}


Heat: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Heat

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Heat = INCORRECT TYPE|}}


Shock: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Shock

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Shock = INCORRECT TYPE|}}


Cold: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Cold

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Cold = INCORRECT TYPE|}}


Caustic: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Caustic

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Caustic = INCORRECT TYPE|}}



Airloss: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Airloss

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Airloss = INCORRECT TYPE|}}


Asphyxiation: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Asphyxiation

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Asphyxiation = INCORRECT TYPE|}}


Bloodloss: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Bloodloss

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Bloodloss = INCORRECT TYPE|}}



Toxin: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Toxin

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Toxin = INCORRECT TYPE|}}


Poison: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Poison

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Poison = INCORRECT TYPE|}}


Radiation: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Radiation

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Radiation = INCORRECT TYPE|}}



Genetic: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Genetic

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Genetic = INCORRECT TYPE|}}


Cellular: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Cellular

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Cellular = INCORRECT TYPE|}}



Immaterial: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Immaterial

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Immaterial = INCORRECT TYPE|}}


Holy: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Holy

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Holy = INCORRECT TYPE|}}



Stamina: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Stamina

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Stamina = INCORRECT TYPE|}} 



Structural: {{#if:{{{2}}}|{{#ifeq:|+| |{{#ifeq:|-| |}}}}|}}{{#switch: Structural

| Brute = BRUTE
| Blunt = Blunt
| Slash = Slash
| Piercing = Piercing
| Burn = BURN
| Heat = Heat
| Shock = Shock
| Cold = Cold
| Caustic = Caustic
| Airloss = AIR
| Asphyxiation = Asphyxiation
| Bloodloss = Bloodloss
| Toxin = TOXIN
| Poison = Poison
| Radiation = Radiation
| Genetic = GENE
| Cellular = Cellular
| Immaterial = IMMAT
| Holy = Holy
| Stamina = Stamina
| Structural = Structural
| Structural = INCORRECT TYPE|}}