Модуль:FirearmsStats: различия между версиями
Pok (обсуждение | вклад) Новая страница: «local p = {} -- Функция для создания таблицы с заданными параметрами function p.templateCells(frame) local anchorName = frame.args.anchorName or "" -- Название якоря local itemId = frame.args.itemId or "" -- ID предмета local stamina = tonumber(frame.args.stamina) or 0 local blunt = tonumber(frame.args.blunt) or 0 local piercing = tonumber(frame.args.piercing) or 0...» |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 28: | Строка 28: | ||
-- Название | -- Название | ||
out = out .. '!' .. frame:preprocess('{{Anchor|' .. anchorName .. '}}{{#invoke:Entity Lookup|createimagetooltip|File:' .. | out = out .. '!' .. frame:preprocess('{{Anchor|' .. anchorName .. '}}{{#invoke:Entity Lookup|createimagetooltip|File:' .. itemId .. '|' .. itemId .. '|Мета=64x64px}}') | ||
out = out .. '<br>' .. frame:preprocess('{{#invoke:Entity Lookup|getname|' .. itemId .. '}}') .. '\n' | out = out .. '<br>' .. frame:preprocess('{{#invoke:Entity Lookup|getname|' .. itemId .. '}}') .. '\n' | ||