Модуль:ArmorStats: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 18: | Строка 18: | ||
local location = frame:preprocess(frame.args.location or "") -- Местонахождение | local location = frame:preprocess(frame.args.location or "") -- Местонахождение | ||
-- Формирование строк для ячеек таблицы | |||
local out = "" | local out = "" | ||
out = out .. '!style="background-color: ' .. color .. ';"|{{Anchor|' .. anchorName .. '}}' | |||
out = out .. '{{#invoke:Entity Lookup|createimagetooltip|File:' .. image .. '|' .. itemId .. '|Мета=64x64px}}' | |||
out = out .. '!style="background-color: ' .. color .. ';"|{{Anchor|' .. anchorName .. '}}{{#invoke:Entity Lookup|createimagetooltip|File:' .. image .. '|' .. itemId .. '|Мета=64x64px}}<br>{{#invoke:Entity Lookup|getname|' .. itemId .. '}} \n' | out = out .. '<br>{{#invoke:Entity Lookup|getname|' .. itemId .. '}}\n' | ||
out = out .. '|style="font-weight:500;color: crimson"|' .. protection1 .. ' \n' | out = out .. '|style="font-weight:500;color: crimson"|' .. protection1 .. '\n' | ||
out = out .. '|style="font-weight:500;color: indianred"|' .. protection2 .. ' \n' | out = out .. '|style="font-weight:500;color: indianred"|' .. protection2 .. '\n' | ||
out = out .. '|style="font-weight:500;color: darksalmon"|' .. protection3 .. ' \n' | out = out .. '|style="font-weight:500;color: darksalmon"|' .. protection3 .. '\n' | ||
out = out .. '|style="font-weight:500;color: orange"|' .. protection4 .. ' \n' | out = out .. '|style="font-weight:500;color: orange"|' .. protection4 .. '\n' | ||
out = out .. '|style="font-weight:500;color: plum"|' .. protection5 .. ' \n' | out = out .. '|style="font-weight:500;color: plum"|' .. protection5 .. '\n' | ||
out = out .. '|style="font-weight:500;color: limegreen"|' .. protection6 .. ' \n' | out = out .. '|style="font-weight:500;color: limegreen"|' .. protection6 .. '\n' | ||
out = out .. '|style="font-weight:500;color: tan"|' .. protection7 .. ' \n' | out = out .. '|style="font-weight:500;color: tan"|' .. protection7 .. '\n' | ||
out = out .. '|\n' .. description .. '\n\n|\n' .. location .. '\n|-\n' | out = out .. '|\n' .. description .. '\n\n|\n' .. location .. '\n|-\n' | ||