Template:Weapons table: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Query weapon_passives instead of passives)
mNo edit summary
 
Line 1: Line 1:
<includeonly>{{WeaponsTableHeader}}
<includeonly>{{#cargo_query: tables = weapons
{{#cargo_query: tables = weapons
| fields = _pageName=page, icon, name, uid, image, rarity, enchantment, damage, damage_type, extra_damage, extra_damage_type, extra_damage_2, extra_damage_2_type, weight_kg, weight_lb, price, weapon_passives, passives_main_hand, passives_off_hand, special, special_weapon_actions
| fields = _pageName=page, icon, name, uid, image, rarity, enchantment, damage, damage_type, extra_damage, extra_damage_type, extra_damage_2, extra_damage_2_type, weight_kg, weight_lb, price, weapon_passives, passives_main_hand, passives_off_hand, special, special_weapon_actions
| order by = rarity_order, name
| order by = rarity_order, name
| where = {{{where}}}
| where = {{{where}}}
| default = {{WeaponsTableEmpty}}
| default = {{WeaponsTableEmpty}}
| intro = {{WeaponsTableHeader}}
| outro = {{WeaponsTableFooter}}
| format = template
| format = template
| template = WeaponsTableRow
| template = WeaponsTableRow
| named args = yes
| named args = yes
| limit = 150
| limit = 150
}}
}}</includeonly><noinclude>
{{WeaponsTableFooter}}
</includeonly><noinclude>
This template generates a table filled with weapons that satisfy the provided condition. It requires some knowledge of SQL to operate.
This template generates a table filled with weapons that satisfy the provided condition. It requires some knowledge of SQL to operate.



Latest revision as of 21:15, 3 November 2024

This template generates a table filled with weapons that satisfy the provided condition. It requires some knowledge of SQL to operate.

Example:
{{Weapons table
|where=rarity = 'rare' AND type = 'Longbows'
}}
Weapon Enchant. Damage Damage Type Weight Price Special


Longbow +2

+2

1d8 + 2

Piercing

1.1 kg
2.2 lb

155


The Joltshooter

1d8

Piercing

1.1 kg
2.2 lb

310
Electric Blood
When the wielder deals damage using this weapon, they gain 2 Lightning Charges Lightning Charges.


Titanstring Bow

+1

1d8 + 1

Piercing

1.1 kg
2.2 lb

310
Titan Weapon
This weapon deals additional damage equal to your Strength Modifier.
Pushing Attack (Titanstring Bow) Pushing Attack (Titanstring Bow) ()

Pushes your target back 4.5 m / 15 ft.

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
wherewhere

A "where" clause for the SQL query.

Unknownsuggested