You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {} --p stands for package
local mwjson = require('Module:MwJson')
function p.process(frame, mode, title)
local msg = "Debug Output: <br>" --debug msg
local res = ""
if title == nil then title = mw.title.getCurrentTitle().fullText end
local namespace = mwjson.splitString(title, ':')[1]
local jsondata_res = mwjson.loadJson({title=title, slot=mwjson.slots.jsondata})
local jsondata = jsondata_res.json
local debug = mwjson.defaultArg(jsondata[mwjson.keys.debug], false)
msg = msg .. jsondata_res.debug_msg
local process_res = nil
if (namespace == "Category") then
if (mode == "header") then process_res = mwjson.processJsondata({frame=frame, jsondata=jsondata, mode=mwjson.mode.header, categories={"Category:Category"}, recursive=true, debug=debug}) end
if (mode == "footer") then process_res = mwjson.processJsondata({frame=frame, jsondata=jsondata, mode=mwjson.mode.footer, categories={"Category:Category"}, recursive=true, debug=debug}) end
--mw.smw.set( {["IsA"]="Category:Category"}) --Todo: use type / HasType ?
000
1:0
Template used on this page:
Return to Module:Entity.