2734
правки
Изменения
Нет описания правки
link = mod .. '/' .. name
else
link = mw.ustring.name:gsub(name, '^Повреждённ[ыао][йяе] ', '')
end
elseif mw.ustring.link:lower(link) == 'нет' then
link = nil
end
if title == '' then
plainTitle = name
elseif mw.ustring.title:lower(title) ~= 'нет' then
plainTitle = title:gsub( '\\\\', '\' ):gsub( '\\&', '&' )
nameStart = 1
end
parts.name = mw.text.trim(mw.ustring.frame:sub(frame, nameStart, (mw.ustring.frame:find(frame, '[,%[]', nameStart) or 0) - 1))
parts.num = math.floor(mw.ustring.frame:match(frame, ',%s*(%d+)') or 0)
if parts.num == 0 then
parts.num = nil