Jump to content

Module:UsersInGroup: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Fixed
Fixed
Line 2: Line 2:


function p.main( frame )
function p.main( frame )
usersInGroup = mw.site.stats.usersInGroup(' .. Group .. ')
usersInGroup = mw.site.stats.usersInGroup(frame.args.group)
Group = frame.args.group or error("Group not specified")
Group = frame.args.group or error("Group not specified")
return "Group :" .. Group .. "(" .. usersInGroup .. ")"
return "Group:" .. Group .. "(" .. usersInGroup .. ")"
end
end
return p
return p

Revision as of 00:49, 5 April 2025

local p = {}

function p.main( frame )
           usersInGroup = mw.site.stats.usersInGroup(frame.args.group)
           Group = frame.args.group or error("Group not specified")
          return "Group:" .. Group ..  "("  .. usersInGroup .. ")"
end
return p