Module:Expand wikitext: Difference between revisions
m Pppery moved page Module:Preprocess to Module:Expand wikitext without leaving a redirect: Per RM discussion |
EnWikiAdmin (talk | contribs) m 1 revision imported |
(No difference)
|
Latest revision as of 14:27, 10 January 2025
Documentation for this module may be created at Module:Expand wikitext/doc
local p = {}
local yesno = require("Module:Yesno")
function p.main(frame)
local pframe = frame:getParent()
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 pframe:preprocess(code)
end
return p