Jump to content

Module:Expand wikitext

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Pppery (talk | contribs) at 22:09, 21 June 2017 (Fix unstrip). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local p = {}
local yesno = require("Module:Yesno")
function p.main(frame)
	local code = frame.args[1]
	if mw.text.trim(mw.text.killMarkers(code)) == "" or yesno(frame.args.unstrip) then
		code = mw.text.unstripNowiki(code);
	end
	return frame:preprocess(code)
end

return p