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 '' | ||
if link == '' then | if link == '' then | ||
link = i18n.modLink:gsub( '%$1', mod ):gsub( '%$2', | link = i18n.modLink:gsub( '%$1', mod ):gsub( '%$2', name) | ||
elseif link:lower() == 'none' then | elseif link:lower() == 'none' then | ||
link = nil | link = nil | ||
| Line 141: | Line 140: | ||
local plainTitle | local plainTitle | ||
if title == '' then | if title == '' then | ||
plainTitle = name | plainTitle = name:gsub('%.gif$', '') | ||
elseif title:lower() ~= 'none' then | elseif title:lower() ~= 'none' then | ||
plainTitle = title:gsub( '\\\\', '\' ):gsub( '\\&', '&' ) | plainTitle = title:gsub( '\\\\', '\' ):gsub( '\\&', '&' ) | ||