Template:Weapons table: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (Query weapon_passives instead of passives) |
HiddenDragon (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <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> | ||
</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 |
---|---|---|---|---|---|---|
+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 |