Module:Expand wikitext
Revision as of 22:06, 21 June 2017 by blackwiki>Pppery (Add support for unstrip parameter)
Implements {{Expand wikitext}}.
local p = {}
function p.main(frame)
local code = frame.args[1]
if mw.text.trim(mw.text.killMarkers(code)) == "" or frame.args.unstrip then
code = mw.text.unstripNowiki(code);
end
return frame:preprocess(code)
end
return p