Module:Fighter: Difference between revisions

From Wavu Wiki, the 🌊 wavy Tekken wiki
(Created page with "local p = {}; p.class = function(frame) local name = frame.args[1] return p._class(name) end p._class = function(name) return name:lower():gsub("%s+","-") end return p")
 
No edit summary
Line 7: Line 7:


p._class = function(name)
p._class = function(name)
return name:lower():gsub("%s+","-")
local r = name:lower():gsub("%s+","-")
return r
end
end


return p
return p

Revision as of 13:56, 24 January 2021

Documentation for this module may be created at Module:Fighter/doc

local p = {};

p.class = function(frame)
	local name = frame.args[1]
	return p._class(name)
end

p._class = function(name)
	local r = name:lower():gsub("%s+","-")
	return r
end

return p