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:44, 21 March 2014 (so actually, the common thread is that the first <references /> locks down the list - you can't add new refs and you get back the same result every time it's called in the module). 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 preunused = frame:preprocess("<ref>ONe</ref>")
	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>two</ref>")
	local reflistN = frame:preprocess("<references />")
return reflist .. "X" .. reflistmarker .. "!" .. reflistmarker2 .. "|" .. reflistN .. "__"
end
return p