Модуль:ArmorStats: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 2: | Строка 2: | ||
function p.templateCells(frame) | function p.templateCells(frame) | ||
local color = frame:preprocess(frame.args.color or "") -- Цвет фона | |||
local | local anchorName = frame:preprocess(frame.args.anchorName or "") -- Название якоря | ||
local image = frame:preprocess(frame.args.image or "") -- Путь к изображению предмета | |||
local itemId = frame:preprocess(frame.args.itemId or "") -- ID предмета | |||
local anchorName = args.anchorName or "" -- Название якоря | |||
local image = args.image or "" -- Путь к изображению предмета | |||
local itemId = args.itemId or "" -- ID предмета | |||
local protection1 = args.protection1 or "-" -- Ударный | local protection1 = frame:preprocess(frame.args.protection1 or "-") -- Ударный | ||
local protection2 = args.protection2 or "-" -- Режущий | local protection2 = frame:preprocess(frame.args.protection2 or "-") -- Режущий | ||
local protection3 = args.protection3 or "-" -- Колющий | local protection3 = frame:preprocess(frame.args.protection3 or "-") -- Колющий | ||
local protection4 = args.protection4 or "-" -- Высокотемпературный | local protection4 = frame:preprocess(frame.args.protection4 or "-") -- Высокотемпературный | ||
local protection5 = args.protection5 or "-" -- Кислотный | local protection5 = frame:preprocess(frame.args.protection5 or "-") -- Кислотный | ||
local protection6 = args.protection6 or "-" -- Радиационный | local protection6 = frame:preprocess(frame.args.protection6 or "-") -- Радиационный | ||
local protection7 = args.protection7 or "-" -- Взрывной | local protection7 = frame:preprocess(frame.args.protection7 or "-") -- Взрывной | ||
local description = args.description or "" -- Описание | local description = frame:preprocess(frame.args.description or "") -- Описание | ||
local location = args.location or "" -- | local location = frame:preprocess(frame.args.location or "") -- Местонахождение | ||
local out = "" | local out = "" | ||