Module:Sandbox/Tamzin/Rfd2

local p = {} local getArgs = require('Module:Arguments').getArgs local mRedirect = require('Module:Redirect')

function p.main(frame) local args = getArgs(frame) return p._main(args) end

function line(redirect) local target = mRedirect.getTarget(mw.title.new(redirect, '').getContent) -- Have to transclude to work around tag local escaped = mw.ustring.gsub(redirect, '"', '&quot;')	return '# <span id="' .. escaped .. '"' end