Template:Damage multipliers: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
(removing immunities (Moved to the infobox))
Line 1: Line 1:
<includeonly>{{#if:{{{hideimage|}}}||[[File:{{PAGENAME}}_Damage_Modifiers.png|{{{imagewidth|800}}}px|right]]}}{{#cargo_query:
<includeonly>{{#if:{{{hideimage|}}}||[[File:{{PAGENAME}}_Damage_Modifiers.png|{{{imagewidth|800}}}px|right]]}}
tables = Creatures
| fields = name, stunimmunity, bleedingimmunity, burnimmunity, poisonimmunity
| where = Creatures.name = {{#if:{{{1|}}}|'{{{1}}}'|'{{PAGENAME}}'}}
| format = template
| template = Damage multipliers/immunity
| named args = yes
| default = blorg immu
}}
{| class="responsive-table" style="min-width:31%;max-width:69%;"
{| class="responsive-table" style="min-width:31%;max-width:69%;"
<th>Limb</th>{{#cargo_query:
<th>Limb</th>{{#cargo_query:

Revision as of 15:54, 2 February 2023

This template is used on creature pages in the Defense section, to display a table of their damage modifiers per limb. Data is read from the Creatures cargo table, and as such, it must be defined in the creature infobox. See Template:Creatures infobox for details.

Additionally, it displays the relevant damage modifiers png file if it exists. If it doesn't, add hideimage=yes as a parameter (e.g. {{Damage modifiers|hideimages=yes}}).