Модуль:BotanyStats: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 60: | Строка 60: | ||
local words = splitWords(mutationId) | local words = splitWords(mutationId) | ||
for _, word in ipairs(words) do | for _, word in ipairs(words) do | ||
mutationCells = mutationCells .. '<div class="' .. mutationClass .. '">{{#invoke:Entity Lookup| | mutationCells = mutationCells .. '<div class="' .. mutationClass .. '">{{#invoke:Entity Lookup|createimageAltTooltip|Файл:' .. word .. '.png|' .. word .. '|Мета=32x32px,link=}} [[#{{#invoke:Entity Lookup|getname|' .. word .. '}}|{{#invoke:Entity Lookup|getname|' .. word .. '}}]]</div>' | ||
end | end | ||
end | end | ||
| Строка 68: | Строка 68: | ||
-- Формирование строк для ячеек таблицы | -- Формирование строк для ячеек таблицы | ||
out = out .. frame:preprocess('!{{Anchor|' .. anchorName .. '}}{{#invoke:Entity Lookup| | out = out .. frame:preprocess('!{{Anchor|' .. anchorName .. '}}{{#invoke:Entity Lookup|createimageAltTooltip|Файл:' .. fruitId .. '.png|' .. fruitId .. '|Мета=64x64px,link=}}<br>{{#invoke:Entity Lookup|getname|' .. fruitId .. '}} \n') | ||
out = out .. frame:preprocess('!{{#invoke:Entity Lookup| | out = out .. frame:preprocess('!{{#invoke:Entity Lookup|createimageAltTooltip|Файл:' .. seedId .. '.png|' .. seedId .. '|Мета=64x64px,link=}} \n') | ||
out = out .. '|style="text-wrap:nowrap;"| \n' | out = out .. '|style="text-wrap:nowrap;"| \n' | ||
out = out .. frame:preprocess('* {{ | out = out .. frame:preprocess('* {{AltTooltip|Потенция|Потенция растения, которая влияет на количество химических веществ в растении|color=#e1f6ff}}: ' .. '<b>' .. potency .. '</b>' .. '\n') | ||
out = out .. frame:preprocess('* {{ | out = out .. frame:preprocess('* {{AltTooltip|Урожайность|Количество продуктов, которые растение дает за один урожай|color=#e1f6ff}}: ' .. '<b>' .. yield .. '</b>' .. '\n') | ||
out = out .. frame:preprocess('* {{ | out = out .. frame:preprocess('* {{AltTooltip|Время жизни|Продолжительность жизни растения|color=#e1f6ff}}: ' .. '<b>' .. lifespan .. '</b>' .. '\n') | ||
out = out .. frame:preprocess('* {{ | out = out .. frame:preprocess('* {{AltTooltip|Созревания|Время созревания растения|color=#e1f6ff}}: ' .. '<b>' .. maturation .. '</b>' .. '\n') | ||
out = out .. frame:preprocess('* {{ | out = out .. frame:preprocess('* {{AltTooltip|Продуктивность|Время, необходимое для производства следующего урожая после созревания|color=#e1f6ff}}: ' .. '<b>' .. production .. '</b>' .. '\n') | ||
out = out .. frame:preprocess('* {{ | out = out .. frame:preprocess('* {{AltTooltip|Стадии роста|Этапы роста растения, которые оно проходит от начальной стадии до полной зрелости|color=#e1f6ff}}: ' .. '<b>' .. growthStages .. '</b>' .. '\n') | ||
out = out .. '|style="text-wrap:nowrap;"| \n' | out = out .. '|style="text-wrap:nowrap;"| \n' | ||
out = out .. frame:preprocess('* {{ | out = out .. frame:preprocess('* {{AltTooltip|Вода|Потребления воды в секунду|color=#e1f6ff}}: ' .. '<b>' .. waterConsumption .. '</b>' .. '\n') | ||
out = out .. frame:preprocess('* {{ | out = out .. frame:preprocess('* {{AltTooltip|Удобрения|Потребления удобрений в секунду|color=#e1f6ff}}: ' .. '<b>' .. nutrientConsumption .. '</b>' .. '\n') | ||
out = out .. frame:preprocess('* {{ | out = out .. frame:preprocess('* {{AltTooltip|Температура|Оптимальная температура|color=#e1f6ff}}: ' .. '<b>' .. string.format("%.2f", idealHeatCelsius) .. '°C</b>' .. '\n') | ||
out = out .. frame:preprocess('* {{ | out = out .. frame:preprocess('* {{AltTooltip|Освещения|Оптимальный уровень освещения|color=#e1f6ff}}: ' .. '<b>' .. idealLight .. '</b>' .. '\n') | ||
out = out .. '| ' .. description .. '\n' | out = out .. '| ' .. description .. '\n' | ||
out = out .. frame:preprocess('|' .. mutationCells .. '\n') | out = out .. frame:preprocess('|' .. mutationCells .. '\n') | ||