Module:Inventory slot: Difference between revisions
No edit summary |
No edit summary |
||
| Line 127: | Line 127: | ||
local link = args.link or '' | local link = args.link or '' | ||
local linkName = name:gsub('%.gif$', ''):gsub('%.png$', '') | |||
if link == '' then | if link == '' then | ||
link = i18n.modLink:gsub( '%$1', mod ):gsub( '%$2', | link = i18n.modLink:gsub( '%$1', mod ):gsub( '%$2', linkName) | ||
elseif link:lower() == 'none' then | elseif link:lower() == 'none' then | ||
link = nil | link = nil | ||