Jump to content

Module:Sandbox/Wnt

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Wnt (talk | contribs) at 17:34, 21 March 2014 (wait, no, did it wrong.. looks like they killed unstrip of references ... but the code I used in the last version is disabled by something preceding it?). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- hexdump = require("Module:Hex")._hexdump
local p = {}
local getArgs = require("Module:Arguments").getArgs
function p.main(frame)
	local args = getArgs(frame)
	local reflistmarker = frame:preprocess("<references />")
	local unused = frame:preprocess("<ref> Test</ref>")
	reflist = mw.text.unstrip(frame:preprocess("<references />"))
	reflistmarker2 = frame:preprocess("<references />")
	local unusedN = frame:preprocess("<ref>Test</ref>")
	local reflistN = frame:preprocess("<references />")
return reflist .. "X" .. reflistmarker .. "!" .. reflistmarker2 .. "|" .. reflistN .. "__"
end
return p