Module:Rlist: Difference between revisions
Created page with "local p = {} function p.userlist(frame) local function et(n,a) return frame:expandTemplate{title=n,args=a} end local xs = {} for t in ipairs(frame:getParent().args) do table.insert(xs, et('userlist', {t})) end return et('hlist', xs) end" |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
local function et(n,a) return frame:expandTemplate{title=n,args=a} end | local function et(n,a) return frame:expandTemplate{title=n,args=a} end | ||
local xs = {} | local xs = {} | ||
local aa = frame:getParent().args | |||
for i,t in ipairs(aa) do | |||
xs[i] = et('userlink', {t}) | |||
end | end | ||
return et('hlist', xs) | return '(' .. #xs .. ') ' .. et('hlist', xs) | ||
end | end | ||
return p | |||
Latest revision as of 19:18, 20 October 2025
Documentation for this module may be created at Module:Rlist/doc
local p = {}
function p.userlist(frame)
local function et(n,a) return frame:expandTemplate{title=n,args=a} end
local xs = {}
local aa = frame:getParent().args
for i,t in ipairs(aa) do
xs[i] = et('userlink', {t})
end
return '(' .. #xs .. ') ' .. et('hlist', xs)
end
return p