Module:Inventory slot: Difference between revisions

m 1 revision imported: Bunch of templates and modules for testing crafting UI
m Set all links to disable on inventory slot
 
Line 164: Line 164:
if link == '' then
if link == '' then
if mod then
if mod then
link = i18n.modLink:gsub( '%$1', mod ):gsub( '%$2', name )
link = nil
else
else
-- Strip the “Damaged” prefix out
-- Strip the “Damaged” prefix out
link = name:gsub( '^' .. i18n.prefixes.damaged .. ' ', '' )
link = nil
end
end
elseif link:lower() == 'none' then
elseif link:lower() == 'none' then