From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>RexxS at 21:31, 10 February 2021 . The present address (URL) is a permanent link to this version.Revision as of 21:31, 10 February 2021 by imported>RexxS (diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation
Jump to search
--[[ Demonstrating the mw.text.split function --]]
local p = {}
function p.split(frame)
local txt = frame.args.txt or ""
local pids = {}
if txt ~= "" then
pids = mw.text.split(txt, "[, ]+")
end
local out = ">" .. table.concat(pids, "<<br>>") .. "<<br>Items: " .. #pids
return out
end
return p