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

мНет описания правки
мНет описания правки
Строка 57: Строка 57:
         end
         end
     end
     end
    -- Сбор информации в зависимости от наличия репозитория
    local additionalInfo = args["repository"]
    if additionalInfo == nil then
        additionalInfo = labelOutput .. " " .. itemStack .. " " .. prefix .. " " .. itemContained .. " " .. itemSlot .. " " .. itemChem
    else
        additionalInfo =  labelOutput .. " " .. prefix
    end
    local result = image .. " " .. additionalInfo


     -- Формирование вывода через LinkCard, если указан непустой обёртка
     -- Формирование вывода через LinkCard, если указан непустой обёртка
Строка 73: Строка 63:
         local wrapperInfo
         local wrapperInfo
         if args["repository"] then
         if args["repository"] then
             wrapperInfo = additionalInfo
             wrapperInfo = label .. " " .. itemStack .. " " .. prefix .. " " .. itemContained .. " " .. itemSlot .. " " .. itemChem
         else
         else
             wrapperInfo = label .. prefix
             wrapperInfo = label .. prefix