Модуль:ArmorStats: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 19: | Строка 19: | ||
local description = frame.args.description or "" -- Описание | local description = frame.args.description or "" -- Описание | ||
local location = frame.args.location or "" -- Местонахождение | local location = frame.args.location or "" -- Местонахождение | ||
-- Формирование строк для ячеек таблицы | -- Формирование строк для ячеек таблицы | ||
local out = "" | local out = "" | ||
out = out .. '!class="' .. class .. '" style="background-color: ' .. color .. ';"|' .. | out = out .. '!class="' .. class .. '" style="background-color: ' .. color .. ';"|' .. frame:preprocess('{{Anchor|' .. anchorName .. '}}') | ||
out = out .. | out = out .. frame:preprocess('{{#invoke:Entity Lookup|createimagetooltip|File:' .. image .. '|' .. itemId .. '|Мета=64x64px}}') | ||
out = out .. '<br>' .. | out = out .. '<br>' .. frame:preprocess('{{#invoke:Entity Lookup|getname|' .. itemId .. '}}') .. '\n' | ||
out = out .. '|class="' .. class .. '" style="font-weight:bold;color: crimson;background-color: ' .. backgroundColor .. '"|' .. protBlunt .. '\n' | out = out .. '|class="' .. class .. '" style="font-weight:bold;color: crimson;background-color: ' .. backgroundColor .. '"|' .. protBlunt .. '\n' | ||
out = out .. '|class="' .. class .. '" style="font-weight:bold;color: indianred;background-color: ' .. backgroundColor .. '"|' .. protSlash .. '\n' | out = out .. '|class="' .. class .. '" style="font-weight:bold;color: indianred;background-color: ' .. backgroundColor .. '"|' .. protSlash .. '\n' | ||