FANDOM


-- Capitalize the first letter of every word in a string.
local p = {}
 
local function titleCase( first, rest )
   return first:upper() .. rest:lower()
end
 
function p.titleCase( str )
   str = str:gsub( "(%a)([%w_']*)", titleCase )
   return str
end
 
function p.main( frame )
   local str = frame.args[ 1 ]
 
   return p.titleCase( str )
end
 
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.