Module:Sandbox

From Raft Wiki
Jump to: navigation, search

Documentation for this module may be created at Module:Sandbox/doc

local p = {}
	function p.main( f )
		local args = require( 'Module:ProcessArgs' ).merge( true )
		local spoiler = {}
		
		if args[3] then
			local spoilerShow = args[1]
			local spoilerHide = args[2]
			local spoilerTag = args[4] or 'spoiler'
			
			table.insert(spoiler, '<div class="mw-customtoggle-' + spoilertag + '" spoiler>')
			
			local isSpoilerShown = 0
			
			function Show ()
			end
			function Hide()
			end
		end
		
		
		table.inser(spoiler, '</div>')
		return spoiler
	end
return p