Module:RemoveSpace: Difference between revisions

From Pirate Software Wiki
(This should work to remove spaces in names)
 
m (Does this work now?)
 
Line 3: Line 3:
function p.removeSpaces(frame)
function p.removeSpaces(frame)
     local name = frame.args[1]
     local name = frame.args[1]
     return mw.ustring.gsub(name, " ", "")
     local result
    result = mw.ustring.gsub(name, " ", "")
    return result
end
end


return p
return p

Latest revision as of 19:26, 16 September 2024


local p = {}

function p.removeSpaces(frame)
    local name = frame.args[1]
    local result
    result = mw.ustring.gsub(name, " ", "")
    return result
end

return p