Moduł:Narzędzia
Z Nonsensopedii, polskiej encyklopedii humoru
Wersja z dnia 21:13, 24 lut 2019 autorstwa Ostrzyciel (dyskusja • edycje)
local p = {}
function p.firstsmall(frame)
local text = frame.args[1]
if text == nil or text:len() == 0 then
return ''
end
text = string.sub(text, 1, 1):lower() .. string.sub(text, 2, -1)
return text
end
function p.firstlarge(frame)
local text = frame.args[1]
if text == nil or text:len() == 0 then
return ''
end
text = string.sub(text, 1, 1):upper() .. string.sub(text, 2, -1)
return text
end
return p