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 18:51, 21 June 2017 (Allow entire code to be wrapper in a nowiki tag, for case when constructing the desired code requires too much escaping). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local p = {}

function p.main(frame)
	local code = frame.args[1]
	if mw.text.trim(mw.text.killMarkers(code)) == "" then
		code = mw.text.unstripNowiki(code);
	end
	return frame:preprocess(code)
end

return p