Модуль:Песочница/Pok: различия между версиями

мНет описания правки
мНет описания правки
Строка 87: Строка 87:
             end
             end


             -- Используем шаблон для отображения блока исследования
             -- Формируем вывод с использованием шаблона
             out = out .. frame:preprocess(frame:expandTemplate({
             out = out ..  
                 title = 'Prototypes/Механика/Исследование',
                 '<includeonly>{{Prototypes/Механика/Исследование' ..
                 args = {
                 '|id=' .. tech.id ..
                    id = tech.id,
                '|icon=' .. iconPath ..
                    icon = iconPath,
                '|name=' .. tech.name ..
                    name = tech.name,
                '|discipline=' .. tech.discipline ..
                    discipline = tech.discipline,
                '|tier=' .. tech.tier ..
                    tier = tech.tier,
                '|tierColor=' .. tierColor ..
                    tierColor = tierColor,
                '|disciplineName=' .. disciplineName ..
                    disciplineName = disciplineName,
                '|cost=' .. tech.cost ..
                    cost = tech.cost,
                '|prerequisites=' .. prerequisitesStr ..
                    prerequisites = prerequisitesStr,
                '|unlocks=' .. unlocksStr ..
                    unlocks = unlocksStr
                 '}}</includeonly>'
                 }
            }))
         end
         end


        out = frame:preprocess(out)
       
         return out
         return out
     else
     else