More actions
No edit summary |
No edit summary |
||
(30 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
function p.info(frame) | function p.info(frame) | ||
writers=frame.args. | writers=frame.args.input | ||
local w = {} | local w = {} | ||
local num = 0 | |||
for i in string.gmatch(writers, "%S+") do | for i in string.gmatch(writers, "%S+") do | ||
table.insert(w, "[[user:" .. i .. "|" .. i .. "]]") | |||
for i,v in ipairs(w) do | |||
return(v) | |||
end | |||
return(w[0]) | |||
end | end | ||
end | end | ||
return p | return p | ||
-- Arrays: http://www.lua.org/pil/11.1.html | |||
-- Split/Join: http://lua-users.org/wiki/SplitJoin | |||
-- For loops: http://www.lua.org/pil/4.3.4.html |
Latest revision as of 08:32, 29 December 2015
Documentation for this module may be created at Module:Accreditation/doc
local p = {}
writers = ""
artists = ""
processors = ""
function p.info(frame)
writers=frame.args.input
local w = {}
local num = 0
for i in string.gmatch(writers, "%S+") do
table.insert(w, "[[user:" .. i .. "|" .. i .. "]]")
for i,v in ipairs(w) do
return(v)
end
return(w[0])
end
end
return p
-- Arrays: http://www.lua.org/pil/11.1.html
-- Split/Join: http://lua-users.org/wiki/SplitJoin
-- For loops: http://www.lua.org/pil/4.3.4.html