Модуль:TableOfChemicals: различия между версиями
мНет описания правки |
мНет описания правки |
||
| Строка 14: | Строка 14: | ||
local additionalChemPrototypeIds = mw.text.split(additional, ",") | local additionalChemPrototypeIds = mw.text.split(additional, ",") | ||
for _, chemPrototypeId in pairs(additionalChemPrototypeIds) do | for _, chemPrototypeId in pairs(additionalChemPrototypeIds) do | ||
out = out .. fillChemistryRow(chemPrototypeId) | out = out .. fillChemistryRow(chemPrototypeId, frame) | ||
end | end | ||
end | end | ||
| Строка 21: | Строка 21: | ||
if group == nil or group == "all" or chemPrototype.group == group then | if group == nil or group == "all" or chemPrototype.group == group then | ||
out = out .. fillChemistryRow(chemPrototype.id) | out = out .. fillChemistryRow(chemPrototype.id, frame) | ||
end | end | ||
end | end | ||
| Строка 30: | Строка 30: | ||
p.fillChemistryRow = function(frame) | p.fillChemistryRow = function(frame) | ||
return fillChemistryRow(frame.args.id) | return fillChemistryRow(frame.args.id, frame) | ||
end | end | ||
fillChemistryRow = function(chemPrototypeId) | fillChemistryRow = function(chemPrototypeId, frame) | ||
local out = "" | local out = "" | ||