Module:Module introspection: Difference between revisions

Ganaram inukshuk (talk | contribs)
for consistency, "debug" should be used for toggling categories; either rename this or use special:expandtemplates
ArrowHead294 (talk | contribs)
m Use "wtext" instead of "debug"
Line 2: Line 2:
local getArgs = require("Module:Arguments").getArgs
local getArgs = require("Module:Arguments").getArgs
local iutils  = require("Module:Introspection utils")
local iutils  = require("Module:Introspection utils")
local yesno  = require("Module:Yesno")


local p = {}
local p = {}
Line 220: Line 221:
["is_doc"] = is_doc
["is_doc"] = is_doc
})
})
if yesno(frame.args["wtext"]) == true then
result = "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>"
end
return frame:preprocess(result)
return frame:preprocess(result)