Template:Weapons table: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (Added weapon equivalent of Template:Spell_table) |
HiddenDragon (talk | contribs) (Query weapon_passives instead of passives) |
||
Line 1: | Line 1: | ||
<includeonly>{{WeaponsTableHeader}} | <includeonly>{{WeaponsTableHeader}} | ||
{{#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, | | 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}}} |
Revision as of 22:38, 19 August 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 |
---|---|---|---|---|---|---|
+2 |
1d8 + 2 |
Piercing |
1.1 kg |
155 | ||
1d8 |
Piercing |
1.1 kg |
310 |
|
||
+1 |
1d8 + 1 |
Piercing |
1.1 kg |
310 |
|
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
where | where | A "where" clause for the SQL query. | Unknown | suggested |