2734
правки
Изменения
Нет описания правки
parts.mod = mw.text.trim( mw.ustring.match(frame, '([^:%]]+):') or mod or '')
local vanilla = {v = 10, vanilla = 10, mc = 10, minecraft = 10}
if parts.mod == '' or vanilla[mw.ustring.lower(parts.mod)] then
parts.mod = nil
--parts.name = mw.text.trim( frame:sub( nameStart, ( frame:find( '[,%[]', nameStart ) or 0 ) - 1 ) )
parts.name = mw.text.trim( mw.ustring.sub( frame, 0nameStart , ( mw.ustring.find( frame, '[,%[]', 0 nameStart ) or 0 ) - 1 ) )
parts.num = math.floor(mw.ustring.match(frame, ',%s*(%d+)') or 0)