2734
правки
Изменения
Нет описания правки
end
local plainTitle
if title == '' then
plainTitle = name
elseif mw.ustring.title:lower(title) ~= 'нетnone' then plainTitle = mw.ustring.gsub(mw.ustring.title:gsub(title, '\\\\', '\'), :gsub( '\\&', '&')
local formatPattern = '&[0-9a-fk-or]'
if mw.ustring.plainTitle:match(plainTitle, formatPattern) then --formattedTitle = title plainTitle = mw.ustring.plainTitle:gsub(plainTitle, formatPattern, '')
end
plainTitle = name
else
plainTitle = mw.ustring.gsub(mw.ustring.plainTitle:gsub(plainTitle, '\', '\\'), :gsub( '&', '&')
end
elseif link then
if img then
else
plainTitle = ''