模組:Bulletin
外观
local p = {}
function p.item( frame )
prefix = frame.args["prefix"]
if prefix == nil then
prefix = ""
end
suffix = frame.args["suffix"]
if suffix == nil then
suffix = ""
end
separator = frame.args["separator"]
if separator == nil then
separator = "、"
end
conjunction = frame.args["conjunction"]
if conjunction == nil then
conjunction = "及"
end
local items = {}
local i = 1
while frame.args[i] ~= nil do
table.insert( items, frame.args[i] )
i = i + 1
end
return prefix .. mw.text.listToText( items, separator, conjunction )
end
return p