Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Spell: Difference between revisions

From Kronopolis and the Flat Plane
No edit summary
No edit summary
Line 4: Line 4:
     local page = 'Module:Spell/domain_' .. frame.args[1] .. '.json'
     local page = 'Module:Spell/domain_' .. frame.args[1] .. '.json'
     local data = mw.loadJsonData(page)
     local data = mw.loadJsonData(page)
   
     return data
     return data
end
end


return p
return p

Revision as of 15:48, 23 February 2023

Usage

  • {{#invoke:spell|list|domain=}}
  • {{#invoke:spell|list|category=}}

local p = {}

function p.getDomainList(frame)
    local page = 'Module:Spell/domain_' .. frame.args[1] .. '.json'
    local data = mw.loadJsonData(page)
    
    return data
end

return p
Contents