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

Нет описания правки
Нет описания правки
Строка 86: Строка 86:
                 unlocksStr = unlocksStr .. '</ul>'
                 unlocksStr = unlocksStr .. '</ul>'
             end
             end
        -- Формируем вывод с использованием шаблона
    return mw.getCurrentFrame():preprocess(
    '{{Prototypes/Механика/Исследование' ..
    '|id=' .. tech.id ..
        '|icon=' .. iconPath ..
        '|name=' .. tech.name ..
        '|discipline=' .. tech.discipline ..
        '|tier=' .. tech.tier ..
        '|tierColor=' .. tierColor ..
        '|disciplineName=' .. disciplineName ..
        '|cost=' .. tech.cost ..
        '|prerequisites=' .. prerequisitesStr ..
        '|unlocks=' .. unlocksStr ..
        '}}'
    )
         end
         end
     end
     end
    -- Формируем вывод с использованием шаблона
    return mw.getCurrentFrame():preprocess(
    '{{Prototypes/Механика/Исследование' ..
    '|id=' .. tech.id ..
        '|icon=' .. iconPath ..
        '|name=' .. tech.name ..
        '|discipline=' .. tech.discipline ..
        '|tier=' .. tech.tier ..
        '|tierColor=' .. tierColor ..
        '|disciplineName=' .. disciplineName ..
        '|cost=' .. tech.cost ..
        '|prerequisites=' .. prerequisitesStr ..
        '|unlocks=' .. unlocksStr ..
        '}}'
    )
end
end


return p
return p