Template:Damage/doc: Difference between revisions

From Space Station 14 Wiki
Aliser (talk | contribs)
No edit summary
Aliser (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Usage ==
== Usage ==
{{tji|Damage|<type>|<amount>}}
{{tji|Damage|<type or group>|<amount>}}


Specify a damage {{kbd|type}} from the table below, and optionally the {{kbd|amount}} of that damage type. Any casing is allowed.
{{Callout|Tip|If possible, use the alias templates found in the table below instead of this one, as they are a bit easier to use.}}


This will produce a label, potentially colored, of that damage type, with an amount (if specified. If a damage type has multiple "aliases", only the "main" one will be picked.
Specify a damage {{kbd|type}} or {{kbd|group}} from the table below, and optionally {{kbd|amount}}. Any casing is allowed.


Depending on whether it's a damage type or group, the following will be generated:
* If it's a damage '''type''', a potentially colored label with an amount (if specified) will be produced. If specified type is an alias, the real definition will be used for displaying a label (hence the same labels for some damage types in the damage types table).
* If it's a damage '''group''', a label will be produced for that group, similar to the damage type. The damage types composing that group will be listed in parenthesis, with amount if it's specified for all of them (including the group label).
If above is confusing, just look at the examples below.
== How to make changes ==
See {{m|Damage}} for details.
See {{m|Damage}} for details.


=== Just a damage type ===
== Examples ==
 
=== Damage type ===
{{tji|Damage|Blunt}}
{{tji|Damage|Blunt}}


Line 15: Line 24:
{{Damage|Blunt}}
{{Damage|Blunt}}


=== With an amount ===
=== Damage type with an amount ===
{{tji|Damage|Burn|5}}
{{tji|Damage|Poison|5}}
 
{{gda}}
 
{{Damage|Poison|5}}
 
=== Damage group ===
{{tji|Damage|Burn}}
 
{{gda}}
 
{{Damage|Burn}}
 
=== Damage group with an amount ===
{{tji|Damage|Toxin|10}}


{{gda}}
{{gda}}


{{Damage|Burn|5}}
{{Damage|Toxin|10}}


== List of damage groups ==
== List of damage groups ==
{| class="wikitable"
{| class="wikitable"
|-
|-
! Damage group !! How it looks
! Damage group !! How it looks !! Alias template
|-
|-
|
|
Line 31: Line 54:
||  
||  
* {{Damage|Brute}}
* {{Damage|Brute}}
 
||
* {{t|Brute}}
|-
|-
|  
|  
Line 37: Line 61:
||  
||  
* {{Damage|Burn}}
* {{Damage|Burn}}
||
* {{t|Burn}}


|-
|-
Line 43: Line 69:
||  
||  
* {{Damage|Airloss}}
* {{Damage|Airloss}}
||
* {{t|Airloss}}


|-
|-
Line 49: Line 77:
||  
||  
* {{Damage|Toxin}}
* {{Damage|Toxin}}
||
* {{t|Toxin}}


|-
|-
Line 55: Line 85:
||  
||  
* {{Damage|Genetic}}
* {{Damage|Genetic}}
||
* {{t|Genetic}}


|-
|-
Line 61: Line 93:
||  
||  
* {{Damage|Metaphysical}}
* {{Damage|Metaphysical}}
||
* {{t|Metaphysical}}
|}
|}


Line 67: Line 101:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Damage type !! How it looks
! Damage type !! How it looks !! Alias template
|-
|-
|
|
Line 73: Line 107:
||  
||  
* {{Damage|Asphyxiation}}
* {{Damage|Asphyxiation}}
||
* {{t|Asphyxiation}}


|-
|-
Line 83: Line 119:
* {{Damage|Bleeding}}
* {{Damage|Bleeding}}
* {{Damage|Bleed}}
* {{Damage|Bleed}}
||
* {{t|Bloodloss}}
* {{t|Bleeding}}
* {{t|Bleed}}


|-
|-
Line 89: Line 129:
||  
||  
* {{Damage|Blunt}}
* {{Damage|Blunt}}
||
* {{t|Blunt}}


|-
|-
Line 95: Line 137:
||  
||  
* {{Damage|Cellular}}
* {{Damage|Cellular}}
||
* {{t|Cellular}}


|-
|-
Line 101: Line 145:
||  
||  
* {{Damage|Caustic}}
* {{Damage|Caustic}}
||
* {{t|Caustic}}


|-
|-
Line 107: Line 153:
||  
||  
* {{Damage|Cold}}
* {{Damage|Cold}}
||
* {{t|Cold}}


|-
|-
Line 113: Line 161:
||  
||  
* {{Damage|Heat}}
* {{Damage|Heat}}
||
* {{t|Heat}}


|-
|-
Line 121: Line 171:
* {{Damage|Piercing}}
* {{Damage|Piercing}}
* {{Damage|Puncture}}
* {{Damage|Puncture}}
||
* {{t|Piercing}}
* {{t|Puncture}}


|-
|-
Line 127: Line 180:
||  
||  
* {{Damage|Poison}}
* {{Damage|Poison}}
||
* {{t|Poison}}


|-
|-
Line 135: Line 190:
* {{Damage|Radiation}}
* {{Damage|Radiation}}
* {{Damage|Rad}}
* {{Damage|Rad}}
||
* {{t|Radiation}}
* {{t|Rad}}


|-
|-
Line 141: Line 199:
||  
||  
* {{Damage|Shock}}
* {{Damage|Shock}}
||
* {{t|Shock}}


|-
|-
Line 147: Line 207:
||  
||  
* {{Damage|Slash}}
* {{Damage|Slash}}
||
* {{t|Slash}}


|-
|-
Line 153: Line 215:
||  
||  
* {{Damage|Structural}}
* {{Damage|Structural}}
||
* {{t|Structural}}


|-
|-
Line 159: Line 223:
||  
||  
* {{Damage|Holy}}
* {{Damage|Holy}}
||
* {{t|Holy damage}}


|}
|}


[[Category:Template documentation]]
[[Category:Template documentation]]

Latest revision as of 19:59, 26 March 2025

Usage

{{Damage|<type or group>|<amount>}}

Tip
If possible, use the alias templates found in the table below instead of this one, as they are a bit easier to use.

Specify a damage type or group from the table below, and optionally amount. Any casing is allowed.

Depending on whether it's a damage type or group, the following will be generated:

  • If it's a damage type, a potentially colored label with an amount (if specified) will be produced. If specified type is an alias, the real definition will be used for displaying a label (hence the same labels for some damage types in the damage types table).
  • If it's a damage group, a label will be produced for that group, similar to the damage type. The damage types composing that group will be listed in parenthesis, with amount if it's specified for all of them (including the group label).

If above is confusing, just look at the examples below.

How to make changes

See Module:Damage for details.

Examples

Damage type

{{Damage|Blunt}}

blunt

Damage type with an amount

{{Damage|Poison|5}}

5 poison

Damage group

{{Damage|Burn}}

burn (heat, shock, cold and caustic)

Damage group with an amount

{{Damage|Toxin|10}}

10 toxin (5 poison and 5 radiation)

List of damage groups

Damage group How it looks Alias template
  • Brute
  • brute (blunt, slash and piercing)
  • Burn
  • burn (heat, shock, cold and caustic)
  • Airloss
  • airloss (asphyxiation and bloodloss)
  • Toxin
  • toxin (poison and radiation)
  • Genetic
  • genetic (cellular)
  • Metaphysical
  • metaphysical (holy)


List of damage types

Damage type How it looks Alias template
  • Asphyxiation
  • asphyxiation
  • Bloodloss
  • Bleeding
  • Bleed
  • bloodloss
  • bloodloss
  • bloodloss
  • Blunt
  • blunt
  • Cellular
  • cellular
  • Caustic
  • caustic
  • Cold
  • cold
  • Heat
  • heat
  • Piercing
  • Puncture
  • piercing
  • piercing
  • Poison
  • poison
  • Radiation
  • Rad
  • radiation
  • radiation
  • Shock
  • shock
  • Slash
  • slash
  • Structural
  • structural
  • Holy
  • holy