Этот шаблон использует Модуль:Cg, написанный на языке программирования Lua. Пожалуйста, просмотрите Википедия:Модули и Extension:Scribunto/ru для понимания работы модуля. |
local p = {}
function p.inscriber(f)
local args = require("Модуль:ProcessArgs").norm()
local mod = args["Мод"] or "Applied Energistics 2"
local cellIn1 = args["Пресс"]
local cellIn2 = args["Ингредиент"]
local cellIn3 = args["Схема"]
local cellOut1 = args["Выход"]
local cg = require("Модуль:Cg")
local cgSlot = cg.slot
local output = {}
table.insert(output, cg.begin({
210,
144
}))
table.insert(output, cg.backgroundImage({
"Элементы интерфейса высекателя (Applied Energistics 2).png"
}))
table.insert(output, cgSlot({cellIn1, 10, 10, class2 = "invslot-plain", mod = mod}))
table.insert(output, cgSlot({cellIn2, 46, 56, class2 = "invslot-plain", mod = mod}))
table.insert(output, cgSlot({cellIn3, 10, 102, class2 = "invslot-plain", mod = mod}))
table.insert(output, cgSlot({cellOut1, 146, 58, class2 = "invslot-plain", mod = mod}))
table.insert(output, cg.machine({
"Grid layout прогресс высекателя (Applied Energistics 2) (active).gif",
190,
56,
}))
table.insert(output, cg.footer())
return table.concat(output)
end
return p