Module:Inventory slot: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 170: Line 170:
end
end
else
else
link = name:gsub( '^' .. i18n.prefixes.damaged .. ' ', '' )
if mw.title.new(link, 'main').exists == false then
for _, suffix in pairs( i18n.suffixes ) do
link = i18n.modLink:gsub( '%$1', 'mcwiki' ):gsub( '%$2', name )
link = link:gsub( ' ' .. suffix .. '$', '' )
else
link = name:gsub( '^' .. i18n.prefixes.damaged .. ' ', '' )
for _, suffix in pairs( i18n.suffixes ) do
link = link:gsub( ' ' .. suffix .. '$', '' )
end
end
end
end
end

Navigation menu