Template:Damage multipliers: Difference between revisions
From Official Barotrauma Wiki
(Created page with "<includeonly> {| class="responsive-table" ! !{{#cargo_query: tables = Creatures | fields = name, stunimmunity, bleedingimmunity, burnimmunity, limb1, limb2, limb3, limb4, li...") |
mNo edit summary |
||
(40 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#if:{{{hideimage|}}}||[[File:{{PAGENAME}}_Damage_Modifiers.png|{{{imagewidth|800}}}px|right]]}} | ||
{| class="responsive-table" | {| class="responsive-table" style="min-width:31%;max-width:69%;" | ||
<th>Limb</th>{{#cargo_query: | |||
tables = Creatures | tables = Creatures | ||
| fields = name, | | fields = name, | ||
| where = Creatures.name = '{{{1}}}' | 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 = | | template = Damage multipliers/header | ||
| named args = yes | | named args = yes | ||
| default = blorg header | |||
}} | }} | ||
{{#cargo_query: | |||
tables = Creatures | tables = Creatures | ||
| fields = name | | fields = name, limb1, limb2, limb3, limb4, limb5, | ||
| where = Creatures.name = '{{{1}}}' | 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 = | | template = Damage multipliers/row | ||
| named args = yes | | named args = yes | ||
| default = blorg row | |||
}} | }} | ||
|} | |} | ||
</includeonly> | </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|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}}
).