Jump to content

Module:UsersInGroup: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Fixed
Changed
Line 3: Line 3:
function p.main( frame )
function p.main( frame )
usersInGroup = mw.site.stats.usersInGroup(frame.args.group)
usersInGroup = mw.site.stats.usersInGroup(frame.args.group)
Group = frame.args.group or error("Group not specified")
Group = frame.args.group
return "Group:" .. Group .. "(" .. usersInGroup .. ")"
return "Group: " .. Group .. "= [" .. usersInGroup .. "]"
end
end
return p
return p

Revision as of 00:53, 5 April 2025

local p = {}

function p.main( frame )
           usersInGroup = mw.site.stats.usersInGroup(frame.args.group)
           Group = frame.args.group
          return "Group: " .. Group .. "= ["  .. usersInGroup .. "]"
end
return p