Модуль: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'] or 'NON'
  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,"; ")
  out = "(" .. out
  out = out .. ")"
  return out..listitem
end

return p