Модуль:Песочница/Pok: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) Нет описания правки |
||
| Строка 63: | Строка 63: | ||
for _, prerequisite in ipairs(tech.technologyPrerequisites) do | for _, prerequisite in ipairs(tech.technologyPrerequisites) do | ||
if prerequisite and prerequisite ~= "" then | if prerequisite and prerequisite ~= "" then | ||
prerequisitesStr = prerequisitesStr .. | prerequisitesStr = prerequisitesStr .. '<li>{{#invoke:Entity Lookup|createimagetooltip|Файл:' | ||
.. prerequisite .. '.png|' .. prerequisite | .. prerequisite .. '.png|' .. prerequisite | ||
.. '|Мета=32x32px,link=}}' | .. '|Мета=32x32px,link=}}' | ||
.. prerequisite .. '</li>' | .. prerequisite .. '</li>' | ||
end | end | ||
end | end | ||
| Строка 78: | Строка 78: | ||
for _, recipe in ipairs(tech.recipeUnlocks) do | for _, recipe in ipairs(tech.recipeUnlocks) do | ||
if recipe and recipe ~= "" then | if recipe and recipe ~= "" then | ||
unlocksStr = unlocksStr .. | unlocksStr = unlocksStr .. '<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 | ||
| Строка 99: | Строка 99: | ||
disciplineName = disciplineName, | disciplineName = disciplineName, | ||
cost = tech.cost, | cost = tech.cost, | ||
prerequisites = prerequisitesStr, | prerequisites = mw.getCurrentFrame():preprocess(prerequisitesStr), | ||
unlocks = unlocksStr | unlocks = mw.getCurrentFrame():preprocess(unlocksStr) | ||
} | } | ||
}) | }) | ||