ਮੌਡਿਊਲ:Sandbox/sandbox
ਦਿੱਖ
Documentation for this module may be created at ਮੌਡਿਊਲ:Sandbox/sandbox/doc
local p = {}
local getArgs = require("Module:Arguments").getArgs
function table.slice(tbl)
local sliced = {}
for i = 1, #tbl, 1 do
sliced[#sliced+1] = tbl[i]
end
return sliced
end
function p.main(frame)
args = getArgs(frame)
n = 0
s = args[1]
l = mw.text.split(s, [[<span id="ws-author">]], true)
s = l[#l]
return s
end
return p