Module:OuterList
跳转到导航
跳转到搜索
local module = {}
function module.Simple(frame)
local parent = frame:getParent()
if (not frame.args[1]) and parent and mw.title.new(parent:getTitle()).namespace == 10 and parent.args[1] then
frame = parent
elseif frame.args[1] then
else
return ""
end
local Separator = frame.args["Separator"] or "\n"
local Prefix = frame.args["Prefix"] or "* "
local Suffix = frame.args["Suffix"] or ""
local i = 1
local items = { }
while (frame.args[i]) do
table.insert(items, frame.args[i])
i = i + 1
end
local result = table.concat(items, Suffix .. Separator .. Prefix)
if result then
result = Prefix .. result .. Suffix
end
return frame:preprocess(result)
end
return module