8,756
edits
mNo edit summary |
mNo edit summary |
||
Line 27: | Line 27: | ||
local result = cargo.query('ItemsTable,GeneralData', | local result = cargo.query('ItemsTable,GeneralData', | ||
'PlainName,Vibro,MaxPV,BasePV,Damage,GeneralData._pageName=Page', | 'PlainName,Vibro,MaxPV,BasePV,Damage,GeneralData._pageName=Page', | ||
{ where='GeneralData._pageNamespace="0" AND GeneralData._pageName="'.. name | { where='GeneralData._pageNamespace="0" AND GeneralData._pageName="'.. name ..'" AND Damage <> ""', | ||
default='0', | default='0', | ||
limit='1', | limit='1', | ||
Line 33: | Line 33: | ||
if not next(result) then | if not next(result) then | ||
return '[[' .. name.. ']][[Category:pages with | return '[[' .. name.. ']][[Category:pages with inventory errors]]' | ||
else | else | ||
name = result[1]['Page'] | name = result[1]['Page'] |