Module:Inventory slot: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 170: Line 170:
end
end
else
else
if mw.title.new(link, '(Main)').exists == false then
if mw.title.new(link).exists == false then
link = i18n.modLink:gsub( '%$1', 'mcwiki' ):gsub( '%$2', name )
link = i18n.modLink:gsub( '%$1', 'mcwiki' ):gsub( '%$2', name )
else
else