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