Module:Sandbox

local p = {} function p.outputAvailability (frame) local function isEmpty(s) return s == nil or s == '' end local data = { ["Blanca"] = { "Blanca NH Character Icon.png", "22px", "Blanca", "Blanca" }, ["Blathers"] = { "Blathers NH Character Icon.png", "22px", "Blathers", "Blathers" }, ["Booker"] = { "Booker NH Character Icon.png", "22px", "Booker", "Booker" }, ["Brewster"] = { "Brewster NH Character Icon.png", "22px", "Brewster", "Brewster" }, ["C.J."] = { "C.J. NH Character Icon.png", "22px", "C.J.", "C.J." },		["Celeste"] = { "Celeste NH Character Icon.png", "22px", "Celeste", "Celeste" }, ["Copper"] = { "Copper NH Character Icon.png", "22px", "Copper", "Copper" }, ["Cornimer"] = { "Cornimer NH Character Icon.png", "22px", "Cornimer", "Cornimer" }, ["Cyrus"] = { "Cyrus NH Character Icon.png", "22px", "Cyrus", "Cyrus" }, ["Daisy Mae"] = { "Daisy Mae NH Character Icon.png", "22px", "Daisy Mae", "Daisy Mae" }, ["Digby"] = { "Digby NH Character Icon.png", "22px", "Digby", "Digby" }, ["DJ KK"] = { "DJ KK NH Character Icon.png", "22px", "DJ KK", "DJ KK" }, ["Flick"] = { "Flick NH Character Icon.png", "22px", "Flick", "Flick" }, ["Franklin"] = { "Franklin NH Character Icon.png", "22px", "Franklin", "Franklin" }, ["Gullivarrr"] = { "Gullivarrr NH Character Icon.png", "22px", "Gullivarrr", "Gullivarrr" }, ["Gulliver"] = { "Gulliver NH Character Icon.png", "22px", "Gulliver", "Gulliver" }, ["Harvey"] = { "Harvey NH Character Icon.png", "22px", "Harvey", "Harvey" }, ["Isabelle"] = { "Isabelle NH Character Icon.png", "22px", "Isabelle", "Isabelle" }, ["Jack"] = { "Jack NH Character Icon.png", "22px", "Jack", "Jack" }, ["Jingle"] = { "Jingle NH Character Icon.png", "22px", "Jingle", "Jingle" }, ["Kicks"] = { "Kicks NH Character Icon.png", "22px", "Kicks", "Kicks" }, ["K.K."] = { "K.K. NH Character Icon.png", "22px", "K.K.", "K.K." },		["Kapp'n"] = { "Kapp'n NH Character Icon.png", "22px", "Kapp'n", "Kapp'n" }, ["Chip"] = { "Chip NH Character Icon.png", "22px", "Chip", "Chip" }, ["Gracie"] = { "Gracie NH Character Icon.png", "22px", "Gracie", "Gracie" }, ["Grams"] = { "Grams NH Character Icon.png", "22px", "Grams", "Grams" }, ["Harriet"] = { "Harriet NH Character Icon.png", "22px", "Harriet", "Harriet" }, ["Joan"] = { "Joan NH Character Icon.png", "22px", "Joan", "Joan" }, ["Katie"] = { "Katie NH Character Icon.png", "22px", "Katie", "Katie" }, ["Katrina"] = { "Katrina NH Character Icon.png", "22px", "Katrina", "Katrina" }, ["Label"] = { "Label NH Character Icon.png", "22px", "Label", "Label" }, ["Leif"] = { "Leif NH Character Icon.png", "22px", "Leif", "Leif" }, ["Leila"] = { "Leila NH Character Icon.png", "22px", "Leila", "Leila" }, ["Leilani"] = { "Leilani NH Character Icon.png", "22px", "Leilani", "Leilani" }, ["Lottie"] = { "Lottie NH Character Icon.png", "22px", "Lottie", "Lottie" }, ["Luna"] = { "Luna NH Character Icon.png", "22px", "Luna", "Luna" }, ["Lyle"] = { "Lyle NH Character Icon.png", "22px", "Lyle", "Lyle" }, ["Mabel"] = { "Mabel NH Character Icon.png", "22px", "Mabel", "Mabel" }, ["Nat"] = { "Nat NH Character Icon.png", "22px", "Nat", "Nat" }, ["Niko"] = { "Niko NH Character Icon.png", "22px", "Niko", "Niko" }, ["Orville"] = { "Orville NH Character Icon.png", "22px", "Orville", "Orville" }, ["Pascal"] = { "Pascal NH Character Icon.png", "22px", "Pascal", "Pascal" }, ["Pavé"] = { "Pavé NH Character Icon.png", "22px", "Pavé", "Pavé" }, ["Pelly"] = { "Pelly NH Character Icon.png", "22px", "Pelly", "Pelly" }, ["Pete"] = { "Pete NH Character Icon.png", "22px", "Pete", "Pete" }, ["Phineas"] = { "Phineas NH Character Icon.png", "22px", "Phineas", "Phineas" }, ["Phyllis"] = { "Phyllis NH Character Icon.png", "22px", "Phyllis", "Phyllis" }, ["Porter"] = { "Porter NH Character Icon.png", "22px", "Porter", "Porter" }, ["Reese"] = { "Reese NH Character Icon.png", "22px", "Reese", "Reese" }, ["Redd"] = { "Redd NH Character Icon.png", "22px", "Redd", "Redd" }, ["Rover"] = { "Rover NH Character Icon.png", "22px", "Rover", "Rover" }, ["Sable"] = { "Sable NH Character Icon.png", "22px", "Sable", "Sable" }, ["Saharah"] = { "Saharah NH Character Icon.png", "22px", "Saharah", "Saharah" }, ["Tom Nook"] = { "Tom Nook NH Character Icon.png", "22px", "Tom Nook", "Tom Nook" }, ["Tortimer"] = { "Tortimer NH Character Icon.png", "22px", "Tortimer", "Tortimer" }, ["Wardell"] = { "Wardell NH Character Icon.png", "22px", "Wardell", "Wardell" }, ["Wendell"] = { "Wendell NH Character Icon.png", "22px", "Wendell", "Wendell" }, ["Wilbur"] = { "Wilbur NH Character Icon.png", "22px", "Wilbur", "Wilbur" }, ["Nooklings"] = { "Nooklings NH Character Icon.png", "22px", "Nooklings", "Nooklings" }, ["Wisp"] = { "Wisp NH Character Icon.png", "22px", "Wisp", "Wisp" }, ["Zipper"] = { "Zipper NH Character Icon.png", "22px", "Zipper", "Zipper" } }	local dataRV = { ["Isabelle"] = { "Isabelle NL Character Icon.png", "18px", "Isabelle#RVs in Welcome amiibo", "Isabelle's RV" }, ["Rover"] = { "Rover NL Character Icon.png", "18px", "Rover#RV in Welcome amiibo", "Rover's RV" }, ["Tom Nook"] = { "Tom Nook NL Character Icon.png", "18px", "Tom Nook#RV in Welcome amiibo", "Tom Nook's RV" }, ["Blathers"] = { "Blathers NL Character Icon.png", "18px", "Blathers#RV in Welcome amiibo", "Blathers's RV" }, ["Jack"] = { "Jack NL Character Icon.png", "18px", "Jack#RV in Welcome amiibo", "Jack's RV" }, ["K.K."] = { "K.K. NL Character Icon.png", "18px", "K.K.#RV in Welcome amiibo", "K.K.'s RV" }, ["Mabel"] = { "Mabel NL Character Icon.png", "18px", "Mabel#RV in Welcome amiibo", "Mabel's RV" }, ["Reese"] = { "Reese NL Character Icon.png", "18px", "Reese#RV in Welcome amiibo", "Reese's RV" }, ["Cyrus"] = { "Cyrus NL Character Icon.png", "18px", "Cyrus#RV in Welcome amiibo", "Cyrus's RV" }, ["Celeste"] = { "Celeste NL Character Icon.png", "18px", "Celeste#RV in Welcome amiibo", "Celeste's RV" }, ["Timmy"] = { "Timmy NL Character Icon.png", "18px", "Timmy and Tommy#RV in Welcome amiibo", "Timmy's RV" }, ["Tommy"] = { "Tommy NL Character Icon.png", "18px", "Tommy and Tommy#RV in Welcome amiibo", "Tommy's RV" }, ["Resetti"] = { "Resetti NL Character Icon.png", "18px", "Resetti#RV in Welcome amiibo", "Resetti's RV" }, ["Kapp'n"] = { "Kapp'n NL Character Icon.png", "18px", "Kapp'n#RV in Welcome amiibo", "Kapp'n's RV" }, ["Gulliver"] = { "Gulliver NL Character Icon.png", "18px", "Gulliver#RV in Welcome amiibo", "Gulliver's RV" }, ["Wendell"] = { "Wendell NL Character Icon.png", "18px", "Wendell#RV in Welcome amiibo", "Wendell's RV" }, ["Zipper"] = { "Zipper NL Character Icon.png", "18px", "Zipper#RV in Welcome amiibo", "Zipper's RV" }, ["Pascal"] = { "Pascal NL Character Icon.png", "18px", "Pascal#RV in Welcome amiibo", "Pascal's RV" }, ["Saharah"] = { "Saharah NL Character Icon.png", "18px", "Saharah#RV in Welcome amiibo", "Saharah's RV" }, ["Franklin"] = { "Franklin NL Character Icon.png", "18px", "Franklin#RV in Welcome amiibo", "Franklin's RV" }, ["Jingle"] = { "Jingle NL Character Icon.png", "18px", "Jingle#RV in Welcome amiibo", "Jingle's RV" }, ["Chip"] = { "Chip NL Character Icon.png", "18px", "Chip#RV in Welcome amiibo", "Chip's RV" }, ["Digby"] = { "Digby NL Character Icon.png", "18px", "Digby#RV in Welcome amiibo", "Digby's RV" }, ["Kicks"] = { "Kicks NL Character Icon.png", "18px", "Kicks#RV in Welcome amiibo", "Kicks's RV" }, ["Nat"] = { "Nat NL Character Icon.png", "18px", "Nat#RV in Welcome amiibo", "Nat's RV" }, ["Pavé"] = { "Pavé NL Character Icon.png", "18px", "Pavé#RV in Welcome amiibo", "Pavé's RV" }, ["Joan"] = { "Joan NL Character Icon.png", "18px", "Joan#RV in Welcome amiibo", "Joan's RV" }, ["Copper"] = { "Copper NL Character Icon.png", "18px", "Copper#RV in Welcome amiibo", "Copper's RV" }, ["Booker"] = { "Booker NL Character Icon.png", "18px", "Booker#RV in Welcome amiibo", "Booker's RV" }, ["Blanca"] = { "Blanca NL Character Icon.png", "18px", "Blanca#RV in Welcome amiibo", "Blanca's RV" }, ["Lottie"] = { "Lottie NL Character Icon.png", "18px", "Lottie#RV in Welcome amiibo", "Lottie's RV" }, ["Timmy and Tommy"] = { "Timmy and Tommy NL Character Icon.png", "18px", "Timmy and Tommy#RV in Welcome amiibo", "Timmy and Tommy's RV" }, ["Wisp"] = { "Wisp NL Character Icon.png", "18px", "Wisp", "Wisp's RV" }, ["June"] = { "June NL Villager Icon.png", "18px", "June (villager)#RV", "June's RV" }, default = { "", "18px", "", "" } }	local print = ' ' if (frame.args['1'] == "RV") then if not isEmpty(dataRV[frame.args['2']][1]) then print = print .. ''	   	end else print = print ..  .. frame.args['text'] ..  else print = print .. '|' .. frame.args['2'] .. ']]'	   	end end else if not isEmpty(data[frame.args['1']][1]) then print = print .. ' '		end if not isEmpty(data[frame.args['1']][3]) then print = print .. '' .. data[frame.args['1'[3] if not isEmpty(frame.args['text']) then print = print .. '|' .. frame.args['text'] .. ']]'	   	else print = print .. '|' .. data[frame.args['1']][4] .. ']]'	   	end else print = print .. frame.args['1'] end 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

function p.outputCurrency (frame) local formatnum local num = frame.args['2'] local function isEmpty(s) return s == nil or s == '' end local data = { ["Bells"] = { "99k Bells NH Inv Icon cropped.png", "15px", "Bell", "Bell", "Bell" }, ["Play Coins"] = { "Play Coins Icon.png", "15px", "Play Coins", "Play Coin", "Play Coin" }, ["Medals"] = { "Medal NL Icon.png", "18px", "Medals", "Medal", "Medal" }, ["MEOW Coupons"] = { "MEOW Coupon Icon.png", "18px", "MEOW Coupons", "MEOW Coupon", "Coupon" }, ["Leaf Tickets"] = { "Leaf Ticket PC Icon.png", "15px", "Leaf Ticket", "Leaf Ticket", "Ticket" }, ["Nook Miles"] = { "Nook Miles NH Icon Cropped.png", "18px", "Nook Miles", "Nook Mile", "Mile" }, ["Heart Crystals"] = { "Heart Crystal NH Inv Icon.png", "15px", "Item:Heart Crystal (New Horizons)", "Heart Crystal", "Heart Crystal" }, ["Saharah Tickets"] = { "Saharah Ticket NH Inv Icon.png", "15px", "Item:Saharah Ticket (New Horizons)", "Saharah Ticket", "Saharah Ticket" }, ["Nook Points"] = { "Nook Points NH Icon Cropped.png", "18px", "NookLink#Nook Points", "Nook Point", "Point" }, ["Points"] = { "", "", "Tom Nook Point System", "Point", "Point" }, ["Happy Points"] = { "Happy Point aF Icon.png", "15px", "Happy Point", "Happy Point", "Happy Point" }, ["Happy Tickets"] = { "", "", "Happy Ticket", "Happy Ticket", "Happy Ticket" }, ["Poki"] = { "Poki NH Inv Icon cropped.png", "15px", "Poki", "Poki", "Poki" } }	local print = '' if not isEmpty(data[frame.args['1']][1]) then print = print .. ''		if not isEmpty(num) then formatnum = require("Module:Formatnum") print = print .. ' '			return formatnum.main(frame) end end print = print .. ' '	if not isEmpty(frame.args['nolink']) then if not isEmpty(frame.args['short']) then print = print .. data[frame.args['1']][5] if (num == 1) then print = print .. ''			else print = print .. 's'			end else print = print .. data[frame.args['1']][4] if (num == 1) then print = print .. ''			else print = print .. 's'			end end else if not isEmpty(frame.args['short']) then print = print .. '' .. data[frame.args['1'[3] .. '|' .. data[frame.args['1']][5] if (num == 1) then print = print .. ''			else print = print .. 's' print = print .. ']]'			end else print = print .. '' .. data[frame.args['1'[3] .. '|' .. data[frame.args['1']][4] if (num == 1) then print = print .. ''			else print = print .. 's' print = print .. ']]'			end end end if not isEmpty(frame.args['note']) then print = print .. frame:preprocess('') end return print end

return p