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

мНет описания правки
мНет описания правки
Строка 25: Строка 25:
templateArgs.recipes_count = tablelength(chemPrototype.recipes)
templateArgs.recipes_count = tablelength(chemPrototype.recipes)
local firstReact = true
for _, reactId in pairs(chemPrototype.recipes) do
for _, reactId in pairs(chemPrototype.recipes) do
--reactPrototype = p.react[reactPrototypeKey]
--reactPrototype = p.react[reactPrototypeKey]
Строка 51: Строка 51:
templateArgs.action = "смешать"
templateArgs.action = "смешать"
out = out .. frame:expandTemplate{ title = "Первая_строка_химического_вещества", args = templateArgs}
local template = "Строка_химического_вещества"
if firstReact then
template = "Первая_строка_химического_вещества"
firstReact = false
end
out = out .. frame:expandTemplate{ title = template, args = templateArgs}
end
end