Модуль:Песочница/Pok: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 78: | Строка 78: | ||
-- Блок необходимых исследований | -- Блок необходимых исследований | ||
if tech.technologyPrerequisites and #tech.technologyPrerequisites > 0 then | |||
out = out .. '<div class="research__technologies-prerequisites">Необходимые исследования:' | |||
out = out .. '<ul>' | |||
for _, prerequisite in ipairs(tech.technologyPrerequisites) do | |||
if prerequisite and prerequisite ~= "" then | |||
out = out .. frame:preprocess('<li>{{#invoke:Entity Lookup|createimagetooltip|Файл:' | |||
.. prerequisite .. '.png|' .. prerequisite | |||
.. '|Мета=32x32px,link=}} {{#invoke:Entity Lookup|getname|' | |||
.. prerequisite .. '}}</li>') | |||
end | |||
end | |||
out = out .. '</ul>' | |||
out = out .. '</div>' | |||
end | |||
-- Блок открываемых рецептов | |||
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">Разблокирует:' | ||