Module:Sandbox

local p = {}

function p.outputAvailability (frame) local function isEmpty(s) return s == nil or s == '' end local icon = { ["Blanca"] = "Blanca NH Character Icon.png", ["Blathers"] = "Blathers NH Character Icon.png", ["Booker"] = "Booker NH Character Icon.png", ["Brewster"] = "Brewster NH Character Icon.png", ["C.J."] = "C.J. NH Character Icon.png", ["Celeste"] = "Celeste NH Character Icon.png", ["Copper"] = "Copper NH Character Icon.png", ["Cornimer"] = "Cornimer NH Character Icon.png", ["Cyrus"] = "Cyrus NH Character Icon.png", ["Daisy Mae"] = "Daisy Mae NH Character Icon.png", ["Digby"] = "Digby NH Character Icon.png", ["DJ KK"] = "DJ KK NH Character Icon.png", ["Flick"] = "Flick NH Character Icon.png", ["Franklin"] = "Franklin NH Character Icon.png", ["Gullivarrr"] = "Gullivarrr NH Character Icon.png", ["Gulliver"] = "Gulliver NH Character Icon.png", ["Harvey"] = "Harvey NH Character Icon.png", ["Isabelle"] = "Isabelle NH Character Icon.png", ["Jack"] = "Jack NH Character Icon.png", ["Jingle"] = "Jingle NH Character Icon.png", ["Kicks"] = "Kicks NH Character Icon.png", ["K.K."] = "K.K. NH Character Icon.png", ["Kapp'n"] = "Kapp'n NH Character Icon.png", ["Chip"] = "Chip NH Character Icon.png", ["Gracie"] = "Gracie NH Character Icon.png", ["Grams"] = "Grams NH Character Icon.png", ["Harriet"] = "Harriet NH Character Icon.png", ["Joan"] = "Joan NH Character Icon.png", ["Katie"] = "Katie NH Character Icon.png", ["Katrina"] = "Katrina NH Character Icon.png", ["Label"] = "Label NH Character Icon.png", ["Leif"] = "Leif NH Character Icon.png", ["Leila"] = "Leila NH Character Icon.png", ["Leilani"] = "Leilani NH Character Icon.png", ["Lottie"] = "Lottie NH Character Icon.png", ["Luna"] = "Luna NH Character Icon.png", ["Lyle"] = "Lyle NH Character Icon.png", ["Mabel"] = "Mabel NH Character Icon.png", ["Nat"] = "Nat NH Character Icon.png", ["Niko"] = "Niko NH Character Icon.png", ["Orville"] = "Orville NH Character Icon.png", ["Pascal"] = "Pascal NH Character Icon.png", ["Pavé"] = "Pavé NH Character Icon.png", ["Pelly"] = "Pelly NH Character Icon.png", ["Pete"] = "Pete NH Character Icon.png", ["Phineas"] = "Phineas NH Character Icon.png", ["Phyllis"] = "Phyllis NH Character Icon.png", ["Porter"] = "Porter NH Character Icon.png", ["Reese"] = "Reese NH Character Icon.png", ["Redd"] = "Redd NH Character Icon.png", ["Rover"] = "Rover NH Character Icon.png", ["Sable"] = "Sable NH Character Icon.png", ["Saharah"] = "Saharah NH Character Icon.png", ["Tom Nook"] = "Tom Nook NH Character Icon.png", ["Tortimer"] = "Tortimer NH Character Icon.png", ["Wardell"] = "Wardell NH Character Icon.png", ["Wendell"] = "Wendell NH Character Icon.png", ["Wilbur"] = "Wilbur NH Character Icon.png", ["Nooklings"] = "Nooklings NH Character Icon.png", ["Wisp"] = "Wisp NH Character Icon.png", ["Zipper"] = "Zipper NH Character Icon.png", ["K.K. Slider"] = "K.K. NH Character Icon.png", ["Timmy"] = "Nooklings NH Character Icon.png", ["Tommy"] = "Nooklings NH Character Icon.png", ["Nookling"] = "Nooklings NH Character Icon.png", ["Timmy and Tommy"] = "Nooklings NH Character Icon.png", ["Timmy & Tommy"] = "Nooklings NH Character Icon.png", ["Shrunk"] = "Shrunk NH Character Icon.png", ["Dr. Shrunk"] = "Shrunk NH Character Icon.png", ["Resetti"] = "Resetti NH Character Icon.png", ["Mr. Resetti"] = "Resetti NH Character Icon.png", ["Don"] = "Don NH Character Icon.png", ["Don Resetti"] = "Don NH Character Icon.png", ["Snowboy"] = "Snowboy HHD Character Icon.png", ["Snowmam"] = "Snowmam HHD Character Icon.png", ["Snowtyke"] = "Snowtyke HHD Character Icon.png", ["Snowman (New Leaf)"] = "Snowman HHD Character Icon.png", ["Snowman"] = "Snowboy HHD Character Icon.png", ["Kaitlin"] = "Kaitlin WW.png", ["Mom"] = "Present NH Inv Icon.png", ["Farley"] = "Farley PG.png", ["Serena"] = "Serena CF.png", default = "", }	local link = { ["Blanca"] = "Blanca", ["Blathers"] = "Blathers", ["Booker"] = "Booker", ["Brewster"] = "Brewster", ["C.J."] = "C.J.", ["Celeste"] = "Celeste", ["Copper"] = "Copper", ["Cornimer"] = "Cornimer", ["Cyrus"] = "Cyrus", ["Daisy Mae"] = "Daisy Mae", ["Digby"] = "Digby", ["DJ KK"] = "DJ KK", ["Flick"] = "Flick", ["Franklin"] = "Franklin", ["Gullivarrr"] = "Gullivarrr", ["Gulliver"] = "Gulliver", ["Harvey"] = "Harvey", ["Isabelle"] = "Isabelle", ["Jack"] = "Jack", ["Jingle"] = "Jingle", ["Kicks"] = "Kicks", ["K.K."] = "K.K.", ["Kapp'n"] = "Kapp'n", ["Chip"] = "Chip", ["Gracie"] = "Gracie", ["Grams"] = "Grams", ["Harriet"] = "Harriet", ["Joan"] = "Joan", ["Katie"] = "Katie", ["Katrina"] = "Katrina", ["Label"] = "Label", ["Leif"] = "Leif", ["Leila"] = "Leila", ["Leilani"] = "Leilani", ["Lottie"] = "Lottie", ["Luna"] = "Luna", ["Lyle"] = "Lyle", ["Mabel"] = "Mabel", ["Nat"] = "Nat", ["Niko"] = "Niko", ["Orville"] = "Orville", ["Pascal"] = "Pascal", ["Pavé"] = "Pavé", ["Pelly"] = "Pelly", ["Pete"] = "Pete", ["Phineas"] = "Phineas", ["Phyllis"] = "Phyllis", ["Porter"] = "Porter", ["Reese"] = "Reese", ["Redd"] = "Redd", ["Rover"] = "Rover", ["Sable"] = "Sable", ["Saharah"] = "Saharah", ["Tom Nook"] = "Tom Nook", ["Tortimer"] = "Tortimer", ["Wardell"] = "Wardell", ["Wendell"] = "Wendell", ["Wilbur"] = "Wilbur", ["Nooklings"] = "Nooklings", ["Zipper"] = "Zipper", ["Wisp"] = "Wisp", ["K.K. Slider"] = "K.K. Slider", ["Timmy"] = "Timmy", ["Tommy"] = "Tommy", ["Nookling"] = "Nookling", ["Timmy and Tommy"] = "Timmy and Tommy", ["Timmy & Tommy"] = "Timmy & Tommy", ["Shrunk"] = "Shrunk", ["Dr. Shrunk"] = "Dr. Shrunk", ["Resetti"] = "Resetti", ["Mr. Resetti"] = "Mr. Resetti", ["Don"] = "Don", ["Don Resetti"] = "Don Resetti", ["Snowboy"] = "Snowboy", ["Snowmam"] = "Snowmam", ["Snowtyke"] = "Snowtyke", ["Snowman (New Leaf)"] = "Snowman (New Leaf)", ["Snowman"] = "Snowboy", ["Kaitlin"] = "Kaitlin", ["Mom"] = "Mom", ["Farley"] = "Farley", ["Serena"] = "Serena", default = "", }	local size = { ["Recycle box"] = "20px", default = "22px", }	local text = { ["Snowman (New Leaf"] = "Snowman",		["Snowman"] = "Snowman",		default = frame.args['1'],	}	local print = ' '	if (icon[frame.args['1']]) then   	print = print .. ' '	end	if link[frame.args['1']] then    	print = print .. '' .. link[frame.args['1'    	if not isEmpty(frame.args['text']) then    		print = print .. '|' .. frame.args['text'] .. ']]'    	else    		print = print .. '|' .. text[frame.args['1']] .. ']]'    	end    else    	print = print .. frame.args['1']	end	if not isEmpty(frame.args['note']) then		print = print .. ' (' .. frame.args['note'] .. ') '	end	print = print .. ' '	if not isEmpty(frame.args['nb']) then		print = print .. ''	else		print = print .. ' '	end	return print end

return p