Модуль:Песочница/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", rowspan, lathe.id, lathe.id, lathe.id)
                     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
                 out = out .. '| ' .. formatRecipe(recipe, timeMultiplier, materialUseMultiplier, true) .. "\n"
                local recipeText = '<b>' .. recipeName .. '</b><br/>' .. formatRecipe(recipe, timeMultiplier, materialUseMultiplier, true)
                out = out .. '| ' .. recipeText .. "\n"
             end
             end
         end
         end