Difference between revisions of "Template:WeaponsTable Training"

From Epic Paths
Jump to navigation Jump to search
Tag: Reverted
Line 13: Line 13:
{{#cargo_query:tables=Feats_Weapon_Training=Feat,Equipment_Items=Items,Equipment_Weapons=TblWeapons
{{#cargo_query:tables=Feats_Weapon_Training=Feat,Equipment_Items=Items,Equipment_Weapons=TblWeapons
   |join on=Feat.Weapons HOLDS TblWeapons._pageName, Feat.Weapons HOLDS Items._pageName
   |join on=Feat.Weapons HOLDS TblWeapons._pageName, Feat.Weapons HOLDS Items._pageName
   |where=Feat.Name = "{{{1}}}"
   |where=Feat.Name "{{{1}}}"
   |order by=Items.Name
   |order by=Items.Name
   |fields=CONCAT( '[[', TblWeapons._pageName, '|', Items.Name, ']]' ) = Name,Cost,Damage,Critical,RangeInc = Range,Weight,DamageType=Type,Special
   |fields=CONCAT( '[[', TblWeapons._pageName, '|', Items.Name, ']]' ) = Name,Cost,Damage,Critical,RangeInc = Range,Weight,DamageType=Type,Special
   |format=table
   |format=table
   }}</includeonly>
   }}</includeonly>

Revision as of 13:07, 26 August 2021


Parameter

1. weapon training feat that grants proficiency in the weapons


Example: {{WeaponsTable Training|Archery Training}}

Archery Training Weapons

Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"Archery Training" ORDER BY `Items`.`Name` LIMIT 100' at line 1 (localhost)

Function: CargoSQLQuery::run Query: SELECT CONCAT( '', `Items`.`Name`, '' ) AS `Name`,`Cost` AS `Cost`,`Damage` AS `Damage`,`Critical` AS `Critical`,`RangeInc` AS `Range`,`Weight` AS `Weight`,`DamageType` AS `Type`,`Special` AS `Special` FROM `cargo__Feats_Weapon_Training` `Feat` LEFT OUTER JOIN `cargo__Feats_Weapon_Training__Weapons` `Feat__Weapons` ON ((`Feat`.`_ID`=`Feat__Weapons`.`_rowID`)) RIGHT OUTER JOIN `cargo__Equipment_Items` `Items` ON ((`Feat__Weapons`.`_value`=`Items`.`_pageName`)) RIGHT OUTER JOIN `cargo__Equipment_Weapons` `TblWeapons` ON ((`Feat__Weapons`.`_value`=`TblWeapons`.`_pageName`)) WHERE `Feat`.`Name` "Archery Training" ORDER BY `Items`.`Name` LIMIT 100