Нет описания правки |
Нет описания правки |
||
| Строка 4: | Строка 4: | ||
p.store = prototypes.store | p.store = prototypes.store | ||
function p. | function p.buildlists(frame) | ||
local out = "" | local out = "" | ||
local group = frame.args[1] | local group = frame.args[1] | ||
Версия от 14:50, 18 января 2024
Для документации этого модуля может быть создана страница Модуль:Uplink Lookup/doc
local prototypes = mw.loadData("Module:Uplink Lookup/data")
local p = {}
p.store = prototypes.store
function p.buildlists(frame)
local out = ""
local group = frame.args[1]
for k in pairs(p.store) do
if p.store[k].group == group then
out = out .. frame:expandTemplate{ title = "Uplinkstore", args = { prototype = k }}
elseif group == nil then
out = out .. frame:expandTemplate{ title = "Uplinkstore", args = { prototype = k }}
end
end
return out
end
return p