8,756
edits
(Created page with "local p = {} local cargo= mw.ext.cargo local htmlparse = require'Module:HTMLParse' local colorparse = require'Module:ColorParse' local favilink = require'Module:Favilink' fun...") |
mNo edit summary |
||
Line 7: | Line 7: | ||
function p.main(frame) | function p.main(frame) | ||
local frame = mw.getCurrentFrame() | |||
local pv = '' | local pv = '' | ||
local maxpv = '' | local maxpv = '' | ||
Line 26: | 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 ..'" AND Damage <> ""', | { where='GeneralData._pageNamespace="0" AND GeneralData._pageName="'.. name:sub('_',' ') ..'" AND Damage <> ""', | ||
default='0', | default='0', | ||
limit='1', | limit='1', |