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