2734
правки
Изменения
return table.concat(expandedFrames, ';')
end
function p.getParts(frame, mod)
local parts = {}
parts.title = mw.ustring.match(frame, '^%[%s*([^%]]+)%s*%]')
parts.mod = mw.text.trim(mw.ustring.match(frame, '^([^:%]a-zA-Zа-яА-Я0-9 _-]+):') or mod or '')
local vanilla = {v = 1, vanilla = 1, mc = 1, minecraft = 1}
parts.mod = nil
end
if nameStart - 1 == #frame then
nameStart = 1
end
parts.name = mw.text.trim(mw.ustring.sub(frame, nameStart, (mw.ustring.find(frame, '[,%[]', nameStart) or 0) - 1))
parts.num = math.floor(mw.ustring.match(frame, ',%s*(%d+)') or 0)