Модуль:Песочница/Pok: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 360: | Строка 360: | ||
local rowspan = #matchingRecipes | local rowspan = #matchingRecipes | ||
for i, recipe in ipairs(matchingRecipes) do | for i, recipe in ipairs(matchingRecipes) do | ||
out = out .. '|-\n | out = out .. '|-' .. "\n" | ||
if i == 1 then | if i == 1 then | ||
out = out .. string.format('| rowspan="%d" [[File:%s.png|32x32px|link=]] [[{{#invoke:Entity Lookup|getname|%s}}|{{#invoke:Entity Lookup|getname|%s}}]]\n | out = out .. string.format('| rowspan="%d" [[File:%s.png|32x32px|link=]] [[{{#invoke:Entity Lookup|getname|%s}}|{{#invoke:Entity Lookup|getname|%s}}]]' .. "\n", rowspan, lathe.id, lathe.id, lathe.id) | ||
end | end | ||
local recipeName = recipe.researchName or recipe.result | |||
local recipeText = '<b>' .. recipeName .. '</b><br/>' .. formatRecipe(recipe, timeMultiplier, materialUseMultiplier, true) | |||
out = out .. '| ' .. recipeText .. "\n" | |||
end | end | ||
end | end | ||