Mooduul:Ordine persona
[ mute ]
Taat myenster kiävttá Lua-kieláin ohjelmistum mooduul: |
Šoddâd Myenster:Ordine persona
Algâalgâlâš:
require('strict')
local p = {}
function p.main(frame)
local ret
local args = {}
for k, v in pairs(frame:getParent().args) do
v = mw.text.trim(v)
if v ~= '' then
args[k] = v
end
end
if args[2] or not args[1] then return args[2] end
local mDelink = require('Mooduul:Delink')._main
ret = mDelink({ args[1], ['singolo link'] = true, url = 'no' })
local start = mw.ustring.find(ret, ' ', 1, false)
if start then
ret = mw.ustring.sub(ret, start + 1)
end
ret = mw.ustring.gsub(ret, '^%l', string.upper)
return ret
end
return p