Модуль:FirearmsStats: различия между версиями
Нет описания правки |
Нет описания правки |
||
| (не показаны 3 промежуточные версии этого же участника) | |||
| Строка 33: | Строка 33: | ||
-- Название | -- Название | ||
out = out .. '!' .. frame:preprocess('{{Anchor|' .. anchorName .. '}}{{ | out = out .. '!' .. frame:preprocess('{{Anchor|' .. anchorName .. '}}{{предмет|' .. itemId ..'|imageTooltip=1|vertical=1|size=64px}}\n') | ||
-- Урон (выводятся только непустые значения) | -- Урон (выводятся только непустые значения) | ||
out = out .. '|data-sort-value=' .. dataSort .. '|\n' | out = out .. '|data-sort-value=' .. dataSort .. '|\n' | ||
| Строка 43: | Строка 42: | ||
end | end | ||
if stamina > 0 then | if stamina > 0 then | ||
out = out .. frame:preprocess('{{цвет|text|endurance|c=<b>' .. stamina .. '</b>}} | out = out .. frame:preprocess(':{{цвет|text|endurance|c=<b>' .. stamina .. '</b>}} Выносливость<br>\n') | ||
end | end | ||
if blunt > 0 then | if blunt > 0 then | ||
out = out .. frame:preprocess('{{цвет|text|blunt|c=<b>' .. blunt .. '</b>}} | out = out .. frame:preprocess(':{{цвет|text|blunt|c=<b>' .. blunt .. '</b>}} Ушибы<br>\n') | ||
end | end | ||
if slash > 0 then | if slash > 0 then | ||
out = out .. frame:preprocess('{{цвет|text|slash|c=<b>' .. slash .. '</b>}} | out = out .. frame:preprocess(':{{цвет|text|slash|c=<b>' .. slash .. '</b>}} Режущие<br>\n') | ||
end | end | ||
if piercing > 0 then | if piercing > 0 then | ||
out = out .. frame:preprocess('{{цвет|text|piercing|c=<b>' .. piercing .. '</b>}} | out = out .. frame:preprocess(':{{цвет|text|piercing|c=<b>' .. piercing .. '</b>}} Уколы<br>\n') | ||
end | end | ||
if heat > 0 then | if heat > 0 then | ||
out = out .. frame:preprocess('{{цвет|text|heat|c=<b>' .. heat .. '</b>}} | out = out .. frame:preprocess(':{{цвет|text|heat|c=<b>' .. heat .. '</b>}} Термические<br>\n') | ||
end | end | ||
if radiation > 0 then | if radiation > 0 then | ||
out = out .. frame:preprocess('{{цвет|text|radiation|c=<b>' .. radiation .. '</b>}} | out = out .. frame:preprocess(':{{цвет|text|radiation|c=<b>' .. radiation .. '</b>}} Радиация<br>\n') | ||
end | end | ||
if caustic > 0 then | if caustic > 0 then | ||
out = out .. frame:preprocess('{{цвет|text|caustic|c=<b>' .. caustic .. '</b>}} | out = out .. frame:preprocess(':{{цвет|text|caustic|c=<b>' .. caustic .. '</b>}} Кислотные<br>\n') | ||
end | end | ||
if structural > 0 then | if structural > 0 then | ||
out = out .. frame:preprocess('{{цвет|text|structural|c=<b>' .. structural .. '</b>}} | out = out .. frame:preprocess(':{{цвет|text|structural|c=<b>' .. structural .. '</b>}} Структурные<br>\n') | ||
end | end | ||