Module:Connect member list
Appearance
Usage
[edit]This module is embedded on Connect member list subpages such as Connect/Learning and Evaluation/Members. It acts a sort of "switch," where by using the mode parameter you can decide whether to embed the full member list or a compact form that picks three random members to display.
Example:
- {{:Connect/Learning and Evaluation/Members|mode=full}} shows the full list
- {{:Connect/Learning and Evaluation/Members|mode=compact}} shows a random selection of three entries.
local p = {}
LIST = require('Module:List')
RANDOM = require('Module:Random')
function p.full(frame)
args = {}
for _, entry in ipairs(frame.args) do
table.insert(args, entry)
end
return LIST.unbulleted(args)
end
function p.compact(frame)
args = { limit = 3 }
for _, entry in ipairs(frame.args) do
table.insert(args, entry)
end
return RANDOM.list( args )
end
return p