Usage
{{#invoke:spell|list|domain=}}
{{#invoke:spell|list|category=}}
local p = {}
function p.getDomainList(frame)
local directory = 'Json/Spell/Domain/'
local page = directory .. frame.args[1]
local data = mw.loadJsonData(page)
local out = {}
for idx = 1, 5 do
table.insert(out, idx)
end
return table.concat(out, "<br>")
end
return p