Module:Sandbox

local p = {} function p.spoiler( f ) local args = f	if f == mw.getCurrentFrame then args = f:getParent.args end spoilerTagNum = 0 spoilerGlobalClass = '' local spoilerText = (args[1] or ''):gsub('\n', ' ') local spoilerHTML = ' [spoiler] ' .. spoilerText .. '  ' .. spoilerText .. ' '	spoilerTagNum = spoilerTagNum + 1	spoilerGlobalClass = spoilerGlobalClass .. 'mw-customtoggle-spoilerTag-' .. spoilerTagNum 	return  spoilerHTML end return p