Модуль:Infobox 🔗
Материал из VEDA Wiki
Для документации этого модуля может быть создана страница Модуль:Infobox/doc
local p = {} -- p stands for package
function p.synonyms( frame )
local t = {}
local name = frame.args[1]
local listitem = frame.args['listitem'] == 'true' and '\n' or '; 8' -- addit.param for itemlists
if #name == 0 then
return ''
end
for i in string.gmatch(name, "[^;]+") do
table.insert(t, "[[" .. i .. "]]")
end
--table.insert(t, ")")
local out = table.concat(t, listitem)
if frame.args['listitem'] == 'true' then
out = "(" .. out
out = out .. ")"
end
return out..listitem
end
return p