Raft Wiki
(Created page with "local p = {} function p.main( f ) local args = require( 'Module:ProcessArgs' ).merge( true ) local spoiler = {} if args[3] then local spoilerShow = args[1] loc...")
(No difference)

Revision as of 16:06, 5 March 2021

Raft Wiki:Sandbox Template:Sandbox Module:Sandbox

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