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", ["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", 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", ["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", default = "", }	local size = { ["Blanca"] = "22px", ["Blathers"] = "22px", ["Booker"] = "22px", ["Brewster"] = "22px", ["C.J."] = "22px", ["Celeste"] = "22px", ["Copper"] = "22px", ["Cornimer"] = "22px", ["Cyrus"] = "22px", ["Daisy Mae"] = "22px", ["Digby"] = "22px", ["DJ KK"] = "22px", ["Flick"] = "22px", ["Franklin"] = "22px", ["Gullivarrr"] = "22px", ["Gulliver"] = "22px", ["Harvey"] = "22px", ["Isabelle"] = "22px", ["Jack"] = "22px", ["Jingle"] = "22px", ["Kicks"] = "22px", ["K.K."] = "22px", ["Kapp'n"] = "22px", ["Chip"] = "22px", ["Gracie"] = "22px", ["Grams"] = "22px", ["Harriet"] = "22px", ["Joan"] = "22px", ["Katie"] = "22px", ["Katrina"] = "22px", ["Label"] = "22px", ["Leif"] = "22px", ["Leila"] = "22px", ["Leilani"] = "22px", ["Lottie"] = "22px", ["Luna"] = "22px", ["Lyle"] = "22px", ["Mabel"] = "22px", ["Nat"] = "22px", ["Niko"] = "22px", ["Orville"] = "22px", ["Pascal"] = "22px", ["Pavé"] = "22px", ["Pelly"] = "22px", ["Pete"] = "22px", ["Phineas"] = "22px", ["Phyllis"] = "22px", ["Porter"] = "22px", ["Reese"] = "22px", ["Redd"] = "22px", ["Rover"] = "22px", ["Sable"] = "22px", ["Saharah"] = "22px", ["Tom Nook"] = "22px", ["Tortimer"] = "22px", ["Wardell"] = "22px", ["Wendell"] = "22px", ["Wilbur"] = "22px", ["Nooklings"] = "22px", ["Zipper"] = "22px", ["K.K. Slider"] = "22px", ["Timmy"] = "22px", ["Tommy"] = "22px", ["Nookling"] = "22px", ["Timmy and Tommy"] = "22px", ["Timmy & Tommy"] = "22px", ["Shrunk"] = "22px", ["Dr. Shrunk"] = "22px", ["Resetti"] = "22px", ["Mr. Resetti"] = "22px", ["Don"] = "22px", ["Don Resetti"] = "22px", default = "", }	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 .. '|' .. link[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