模块:AutoUGroup
可在模块:AutoUGroup/doc创建此模块的帮助文档
local map=require('Module:AutoUGroup/Mapping')
local yesno=require("Module:Yesno")
local p = {}
local function genGroupWT(group)
return "[["..group.link.."|"..group.name.."]]"
end
function p.group(frame)
local args = frame.args
local useIcon = yesno(args[2])
for gk,gv in ipairs(map) do
for txtk,txtv in ipairs(gv.str) do
if(txtv==args[1]) then
return "[["..gv.link.."]]"
end
end
end
end
return p