View source for Module:Entity

From OpenSemanticWorld

You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in the group: Users.


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 ?
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0
Debug console
* The module exports are available as the variable "p", including unsaved modifications. * Precede a line with "=" to evaluate it as an expression or use print(). Use mw.logObject() for tables. * Use mw.log() and mw.logObject() in module code to send messages to this console.

Template used on this page:

Return to Module:Entity.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.