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

мНет описания правки
мНет описания правки
Строка 24: Строка 24:
function p.table(frame)
function p.table(frame)
     local output = {}
     local output = {}
    table.insert(output, '{| class="wikitable"')
     for _, item in ipairs(priceData) do
     for _, item in ipairs(priceData) do
         local name = frame:preprocess('{{#invoke:Entity Lookup|getname|' .. item.id .. '}}')
         local name = frame:preprocess('{{#invoke:Entity Lookup|getname|' .. item.id .. '}}')
Строка 31: Строка 30:
         table.insert(output, '| {{Cut-Layout|' .. name .. '|' .. price .. '}}')
         table.insert(output, '| {{Cut-Layout|' .. name .. '|' .. price .. '}}')
     end
     end
    table.insert(output, '|}')
     return frame:preprocess(table.concat(output, "\n"))
     return frame:preprocess(table.concat(output, "\n"))
end
end


return p
return p