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

нет описания правки
Нет описания правки
Нет описания правки
Строка 6: Строка 6:
local tabl = ""
local tabl = ""
if discord ~= nil or role ~= nil then
if discord ~= nil or role ~= nil then
if role ~= nil and role ~= "" then
if role ~= nil and role:gsub("%s+", "") ~= "" then
tabl = tabl.."|'''Роль'''||"..role.."\n|-\n"
tabl = tabl.."|'''Роль'''||"..role.."\n|-\n"
end
end
if discord ~= nil and discord ~= "" then
if discord ~= nil and discord:gsub("%s+", "") ~= "" then
tabl = tabl.."|'''Discord'''||"..discord.."\n|-\n"
tabl = tabl.."|'''Discord'''||"..discord.."\n|-\n"
end
end