Перейти к содержанию

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

нет описания правки
Нет описания правки
Нет описания правки
 
(не показано 5 промежуточных версий 2 участников)
Строка 6: Строка 6:
local tabl = ""
local tabl = ""
if discord ~= nil or role ~= nil then
if discord ~= nil or role ~= nil then
if role ~= nil then
if role ~= nil and role:gsub("^%s*(.-)%s*$", "%1") ~= "" then
tabl = tabl.."|'''Роль'''||"..role.."\n|-\n"
tabl = tabl.."|'''Роль'''||"..role.."\n|-\n"
end
end
if discord ~= nil then
if discord ~= nil and discord:gsub("^%s*(.-)%s*$", "%1") ~= "" then
tabl = tabl.."|'''Discord'''||"..discord.."\n|-\n"
tabl = tabl.."|'''Discord'''||"..discord.."\n|-\n"
end
end
Строка 44: Строка 44:
|'''[https://ru.wikipedia.org/wiki/%D0%98%D0%B4%D0%B5%D0%BE%D0%BB%D0%BE%D0%B3%D0%B8%D1%8F Идеология]'''||]]..ideology..[[
|'''[https://ru.wikipedia.org/wiki/%D0%98%D0%B4%D0%B5%D0%BE%D0%BB%D0%BE%D0%B3%D0%B8%D1%8F Идеология]'''||]]..ideology..[[
|}
</div>
]]
end
function p.war(frame)
local name = frame.args[1]
return [[
<div style="float:right;">
{| style="padding:1rem;background-color:#00ffff29
|colspan="2"|<center style="font-size: 1.5em">''']]..name..[['''</center>
|}
|}
</div>
</div>