Difference between revisions of "Template:DMG"

From Nuclear 14
Jump to navigation Jump to search
(Created page with "<onlyinclude>{{#if:{{{2}}}|{{#ifeq:{{{2|}}}|+|<span style="color:#00FF00">{{{3|}}} </span>|{{#ifeq:{{{2|}}}|-|<span style="color:#FF0000">{{{3|}}} </span>|}}}}|}}{{#switch: {{...")
 
Line 22: Line 22:
| Structural = <span style="color:#D3D3D3">Structural</span>
| Structural = <span style="color:#D3D3D3">Structural</span>
| {{{1}}} = <span style="color:#E60000>'''INCORRECT TYPE'''</span>|}}</onlyinclude>
| {{{1}}} = <span style="color:#E60000>'''INCORRECT TYPE'''</span>|}}</onlyinclude>

== 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:

<pre>
{{DMG|TOXIN}}
</pre>

Which will render differently depending on the damage you write;

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>Airloss: {{DMG|Airloss}}
<br>Asphyxiation: {{DMG|Asphyxiation}}
<br>Bloodloss: {{DMG|Bloodloss}}
<br><br>Toxin: {{DMG|Toxin}}
<br>Poison: {{DMG|Poison}}
<br>Radiation: {{DMG|Radiation}}
<br><br>Genetic: {{DMG|Genetic}}
<br>Cellular: {{DMG|Cellular}}
<br><br>Immaterial: {{DMG|Immaterial}}
<br>Holy: {{DMG|Holy}}
<br><br>Stamina: {{DMG|Stamina}} <!-- Not really a group but eh -->
<br><br>Structural: {{DMG|Structural}} <!-- Not really a group but eh -->

Revision as of 17:13, 30 August 2024

{{#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|}}