Template:Damage multipliers: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
mNo edit summary
 
(16 intermediate revisions by 2 users not shown)
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]]}}
{| class="responsive-table" style="min-width:31%;max-width:69%;"
<th>Limb</th>{{#cargo_query:
tables = Creatures
tables = Creatures
| fields = name, stunimmunity, bleedingimmunity, burnimmunity, poisonimmunity
| fields = name,
limb1burn, limb1bleeding, limb1alldamage, limb1internaldamage, limb1lacerations, limb1bluntforcetrauma, limb1deeptissueinjury, limb1bitewounds, limb1gunshotwound, limb1organdamage, limb1minseverancedamage, limb1severanceprobabilitymodifier, limb1note,
limb2burn, limb2bleeding, limb2alldamage, limb2internaldamage, limb2lacerations, limb2bluntforcetrauma, limb2deeptissueinjury, limb2bitewounds, limb2gunshotwound, limb2organdamage, limb2minseverancedamage, limb2severanceprobabilitymodifier, limb2note,
limb3burn, limb3bleeding, limb3alldamage, limb3internaldamage, limb3lacerations, limb3bluntforcetrauma, limb3deeptissueinjury, limb3bitewounds, limb3gunshotwound, limb3organdamage, limb3minseverancedamage, limb3severanceprobabilitymodifier, limb3note,
limb4burn, limb4bleeding, limb4alldamage, limb4internaldamage, limb4lacerations, limb4bluntforcetrauma, limb4deeptissueinjury, limb4bitewounds, limb4gunshotwound, limb4organdamage, limb4minseverancedamage, limb4severanceprobabilitymodifier, limb4note,
limb5burn, limb5bleeding, limb5alldamage, limb5internaldamage, limb5lacerations, limb5bluntforcetrauma, limb5deeptissueinjury, limb5bitewounds, limb5gunshotwound, limb5organdamage, limb5minseverancedamage, limb5severanceprobabilitymodifier, limb5note
| where = Creatures.name = {{#if:{{{1|}}}|'{{{1}}}'|'{{PAGENAME}}'}} AND Creatures.name NOT LIKE '%{{{exclude}}}%' AND Creatures.name NOT LIKE '%{{{exclude2}}}%'
| where = Creatures.name = {{#if:{{{1|}}}|'{{{1}}}'|'{{PAGENAME}}'}} AND Creatures.name NOT LIKE '%{{{exclude}}}%' AND Creatures.name NOT LIKE '%{{{exclude2}}}%'
| format = template
| template = Damage multipliers/immunity
| named args = yes
}}
{| class="responsive-table" style="min-width:31%;max-width:69%;"
!Limb{{#cargo_query:
tables = Creatures
| fields = name, stunimmunity, bleedingimmunity, burnimmunity, poisonimmunity, limb1, limb2, limb3, limb4, limb5, limb1burn, limb1bleeding, limb1alldamage, limb1internaldamage, limb1lacerations, limb1bluntforcetrauma, limb1deeptissueinjury, limb1bitewounds, limb1gunshotwound, limb1organdamage, limb2burn, limb2bleeding, limb2alldamage, limb2internaldamage, limb2lacerations, limb2bluntforcetrauma, limb2deeptissueinjury, limb2bitewounds, limb2gunshotwound, limb2organdamage, limb3burn, limb3bleeding, limb3alldamage, limb3internaldamage, limb3lacerations, limb3bluntforcetrauma, limb3deeptissueinjury, limb3bitewounds, limb3gunshotwound, limb3organdamage, limb4burn, limb4bleeding, limb4alldamage, limb4internaldamage, limb4lacerations, limb4bluntforcetrauma, limb4deeptissueinjury, limb4bitewounds, limb4gunshotwound, limb4organdamage, limb5burn, limb5bleeding, limb5alldamage, limb5internaldamage, limb5lacerations, limb5bluntforcetrauma, limb5deeptissueinjury, limb5bitewounds, limb5gunshotwound, limb5organdamage
| where = Creatures.name = {{#if:{{{1|}}}|'{{{1}}}'|'{{PAGENAME}}'}}
| format = template
| format = template
| template = Damage multipliers/header
| template = Damage multipliers/header
| named args = yes
| named args = yes
| default = blorg header
}}
}}
{{#cargo_query:
{{#cargo_query:
tables = Creatures
tables = Creatures
| fields = name, stunimmunity, bleedingimmunity, burnimmunity, poisonimmunity, limb1, limb2, limb3, limb4, limb5, limb1burn, limb1bleeding, limb1alldamage, limb1internaldamage, limb1lacerations, limb1bluntforcetrauma, limb1deeptissueinjury, limb1bitewounds, limb1gunshotwound, limb1organdamage, limb2burn, limb2bleeding, limb2alldamage, limb2internaldamage, limb2lacerations, limb2bluntforcetrauma, limb2deeptissueinjury, limb2bitewounds, limb2gunshotwound, limb2organdamage, limb3burn, limb3bleeding, limb3alldamage, limb3internaldamage, limb3lacerations, limb3bluntforcetrauma, limb3deeptissueinjury, limb3bitewounds, limb3gunshotwound, limb3organdamage, limb4burn, limb4bleeding, limb4alldamage, limb4internaldamage, limb4lacerations, limb4bluntforcetrauma, limb4deeptissueinjury, limb4bitewounds, limb4gunshotwound, limb4organdamage, limb5burn, limb5bleeding, limb5alldamage, limb5internaldamage, limb5lacerations, limb5bluntforcetrauma, limb5deeptissueinjury, limb5bitewounds, limb5gunshotwound, limb5organdamage
| fields = name, limb1, limb2, limb3, limb4, limb5,
| where = Creatures.name = {{#if:{{{1|}}}|'{{{1}}}'|'{{PAGENAME}}'}}
limb1burn, limb1bleeding, limb1alldamage, limb1internaldamage, limb1lacerations, limb1bluntforcetrauma, limb1deeptissueinjury, limb1bitewounds, limb1gunshotwound, limb1organdamage, limb1minseverancedamage, limb1severanceprobabilitymodifier, limb1note,
limb2burn, limb2bleeding, limb2alldamage, limb2internaldamage, limb2lacerations, limb2bluntforcetrauma, limb2deeptissueinjury, limb2bitewounds, limb2gunshotwound, limb2organdamage, limb2minseverancedamage, limb2severanceprobabilitymodifier, limb2note,
limb3burn, limb3bleeding, limb3alldamage, limb3internaldamage, limb3lacerations, limb3bluntforcetrauma, limb3deeptissueinjury, limb3bitewounds, limb3gunshotwound, limb3organdamage, limb3minseverancedamage, limb3severanceprobabilitymodifier, limb3note,
limb4burn, limb4bleeding, limb4alldamage, limb4internaldamage, limb4lacerations, limb4bluntforcetrauma, limb4deeptissueinjury, limb4bitewounds, limb4gunshotwound, limb4organdamage, limb4minseverancedamage, limb4severanceprobabilitymodifier, limb4note,
limb5burn, limb5bleeding, limb5alldamage, limb5internaldamage, limb5lacerations, limb5bluntforcetrauma, limb5deeptissueinjury, limb5bitewounds, limb5gunshotwound, limb5organdamage, limb5minseverancedamage, limb5severanceprobabilitymodifier, limb5note
| where = Creatures.name = {{#if:{{{1|}}}|'{{{1}}}'|'{{PAGENAME}}'}} AND Creatures.name NOT LIKE '%{{{exclude}}}%' AND Creatures.name NOT LIKE '%{{{exclude2}}}%'
| format = template
| format = template
| template = Damage multipliers/row
| template = Damage multipliers/row
| named args = yes
| named args = yes
| default = blorg row
}}
}}
|}
|}
</includeonly><noinclude>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.
</includeonly><noinclude>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 <code>hideimage=yes</code> as a parameter (e.g. <code><nowiki>{{Damage modifiers|hideimages=yes}}</nowiki></code>).</noinclude>
Additionally, it displays the relevant damage modifiers png file if it exists. If it doesn't, add <code>hideimage=yes</code> as a parameter (e.g. <code><nowiki>{{Damage modifiers|hideimage=yes}}</nowiki></code>).[[Category:Templates]][[Category:Cargo Querying Templates]]</noinclude>

Latest revision as of 15:20, 28 April 2024

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|hideimage=yes}}).