Нет описания правки |
Нет описания правки |
||
| Строка 9: | Строка 9: | ||
for k in pairs(p.store) do | for k in pairs(p.store) do | ||
if p.store[k].group == group then | if p.store[k].group == group then | ||
out = out .. frame:expandTemplate{ title = " | out = out .. frame:expandTemplate{ title = "Uplink", args = { prototype = k }} | ||
elseif group == nil then | elseif group == nil then | ||
out = out .. frame:expandTemplate{ title = " | out = out .. frame:expandTemplate{ title = "Uplink", args = { prototype = k }} | ||
end | end | ||
end | end | ||
Версия от 14:52, 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 = "Uplink", args = { prototype = k }}
elseif group == nil then
out = out .. frame:expandTemplate{ title = "Uplink", args = { prototype = k }}
end
end
return out
end
return p