Difference between revisions of "Module:Sandbox"

From Raft Wiki
Jump to: navigation, search
(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)

Latest revision as of 16:06, 5 March 2021

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