Модуль: Infobox: различия между версиями 🔗


Материал из VEDA Wiki
Перейти к: навигация, поиск
Нет описания правки
Нет описания правки
Строка 2: Строка 2:


function p.synonyms( frame )
function p.synonyms( frame )
local out = '<br>X'
--local out = '<br>X'
local t={}
local t={}
local name = frame.args[1]
local name = frame.args[1]
for i in string.gmatch(name, "[^;]+") do
for i in string.gmatch(name, "[^;]+") do
   out = out .. i .."!!!"
   --out = out .. i .."!!!"
   table.insert(t, i)
   table.insert(t, i)
   end
   end
table.insert(t, ")")
table.insert(t, ")")
local out2 = table.concat(t,";")
local out = table.concat(t,";")
out2 = "<br>(" .. out2
out = "<br>(" .. out
return "Synonyms test" .. name .. "ENDE" .. out2
return "Synonyms test" .. name .. "ENDE" .. out
end
end


return p
return p

Версия от 22:28, 27 сентября 2024

Для документации этого модуля может быть создана страница Модуль:Infobox/doc

local p = {} -- p stands for package

function p.synonyms( frame )
--local out = '<br>X'
local t={}
local name = frame.args[1]
for i in string.gmatch(name, "[^;]+") do
  --out = out .. i .."!!!"
  table.insert(t, i)
  end
table.insert(t, ")")
local out = table.concat(t,";")
out = "<br>(" .. out
return "Synonyms test" .. name .. "ENDE" .. out
end

return p