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

Нет описания правки
Нет описания правки
Строка 1: Строка 1:
p = {}
p = {}
p.chem = mw.text.jsonDecode(mw.title.new("User:KrasnoshchekovPavel/chem_prototypes.json"):getContent()) -- Заменить на яна после обновы
p.chem = mw.text.jsonDecode(mw.title.new("User:KrasnoshchekovPavel/chem_prototypes.json"):getContent()) -- Заменить на яна после обновы
p.react = mw.text.jsonDecode(mw.title.new("User:KrasnoshchekovPavel/react_prototypes.json"):getContent())
p.react = mw.text.jsonDecode(mw.title.new("User:KrasnoshchekovPavel/react_prototypes.json"):getContent()) -- Заменить на яна после обновы


p.fillTable = function(frame)
p.fillTable = function(frame)
Строка 168: Строка 168:
for _, effect in pairs(metabolismGroup) do
for _, effect in pairs(metabolismGroup) do
if effect.description ~= "" then
if effect.description ~= "" then
table.insert(descriptions, "\n* "..effect.description)
table.insert(descriptions, "*"..effect.description)
end
end
end
end
end
end
return table.concat(descriptions)
return table.concat(descriptions, "<br>")
    
    
end
end