Модуль:Песочница/Pok: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 85: | Строка 85: | ||
out = out .. '</div>' | out = out .. '</div>' | ||
if tech.recipeUnlocks and #tech.recipeUnlocks > 0 then | if tech.recipeUnlocks and #tech.recipeUnlocks > 0 then | ||
out = out .. '<div class="research__technologies-unlocks">Разблокирует:' | out = out .. '<div class="research__technologies-unlocks">Разблокирует:' | ||
| Строка 91: | Строка 90: | ||
for _, recipe in ipairs(tech.recipeUnlocks) do | for _, recipe in ipairs(tech.recipeUnlocks) do | ||
if recipe and recipe ~= "" then | |||
if recipe and recipe ~= "" then | |||
out = out .. frame:preprocess('<li>{{#invoke:Entity Lookup|createimagetooltip|Файл:' | out = out .. frame:preprocess('<li>{{#invoke:Entity Lookup|createimagetooltip|Файл:' | ||
.. recipe .. '.png|' .. recipe | .. recipe .. '.png|' .. recipe | ||
.. '|Мета=32x32px,link=}} {{#invoke:Entity Lookup|getname|' | .. '|Мета=32x32px,link=}} {{#invoke:Entity Lookup|getname|' | ||
.. recipe .. '}}</li>') | .. recipe .. '}}</li>') | ||
end | end | ||
end | end | ||
| Строка 105: | Строка 101: | ||
out = out .. '</div>' | out = out .. '</div>' | ||
end | end | ||
out = out .. '</div>' | out = out .. '</div>' | ||