Module:DLCLink

-- checks if the name contains a DLC-suffix and changes it to the according DLC-icon. then returns a link to name.

local p = {} function p.link(name) if string.find(name," %(Primitive Plus%)") ~= nil then return ..string.gsub(name,' %(Primitive Plus%)',)..' ' elseif string.find(name," %(Scorched Earth%)") ~= nil then return ..string.gsub(name,' %(Scorched Earth%)',)..' ' elseif string.find(name," %(The Center%)") ~= nil then return ..string.gsub(name,' %(The Center%)',)..' ' elseif string.find(name," %(Ragnarok%)") ~= nil then return ..string.gsub(name,' %(Ragnarok%)',)..' ' elseif string.find(name," %(Aberration%)") ~= nil then return ..string.gsub(name,' %(Aberration%)',)..' ' else return ..name.. end end return p