Content deleted Content added
fix issue with named parameters |
Remove upper and lower functions and make sentence and title strip-marker safe. |
||
Line 2:
p.trim = function(frame)
end
p.
-- {{lc:}} is strip-marker safe, string.lower is not.
▲ frame.args[1] = string.lower(frame.args[1])
return p.ucfirst(frame)
end
Line 63 ⟶ 53:
local words = mw.text.split( s, " ")
for i, s in ipairs(words) do
s = frame:callParserFunction('lc', s)
if
s = mw.getContentLanguage():ucfirst(s)
end
|