模块:AutoUGroup:修订间差异

添加174字节 、​ 2023年8月2日 (星期三)
无编辑摘要
无编辑摘要
无编辑摘要
local p = {}
 
local function genGroupWT(group,useIcon,useCat)
local res=""
if(useIcon) then
end
res=res.."[["..group.link.."|"..group.name.."]]"
if(useCat) then
res=res.."[[Category:"..group.cat.."]]"
end
return res
end
function p.group(frame)
local icon
local cat
local args = require('Module:Arguments').getArgs(frame)
if(args["icon"]==nil) then
icon = yesno(args["icon"],true)
end
if(args[1"cat"]==nil) then
cat = true
else
cat = yesno(args["cat"],true)
end
if(args[1]==nil and cat) then
return "[[分类:模板参数填写错误的条目]]"
end
for txtk,txtv in ipairs(gv.str) do
if(txtv==args[1]) then
return genGroupWT(gv,icon,cat)
end
end
end
if(cat) then
return args[1].."[[分类:模板参数填写错误的条目]]"
else
return ""
end
end
 
维护员、​界面管理员、​巡查员、​监督员、​小部件编辑者
3,462

个编辑