Module:Sandbox

local p = {}

function p.outputMaterialNH (frame) local function isEmpty(s) return s == nil or s == '' end local data = { -- Natural Resources -- ["Clump of Weeds"] = { "Clump of Weeds NH Inv Icon.png", "15px", "Item:Clump of Weeds (New Horizons)", "Clump of Weeds", "" }, ["Tree Branch"] = { "Tree Branch NH Inv Icon.png", "15px", "Item:Tree Branch (New Horizons)", "Tree Branch", "" }, ["Stone"] = { "Stone NH Inv Icon.png", "15px", "Item:Stone (New Horizons)", "Stone", "" }, ["Clay"] = { "Clay NH Inv Icon.png", "15px", "Item:Clay (New Horizons)", "Clay", "" }, ["Iron Nugget"] = { "Iron Nugget NH Inv Icon.png", "15px", "Item:Iron Nugget (New Horizons)", "Iron Nugget", "" }, ["Gold Nugget"] = { "Gold Nugget NH Inv Icon.png", "15px", "Item:Gold Nugget (New Horizons)", "Gold Nugget", "" }, ["Wood"] = { "Wood NH Inv Icon.png", "15px", "Item:Wood (New Horizons)", "Wood", "" }, ["Softwood"] = { "Softwood NH Inv Icon.png", "15px", "Item:Softwood (New Horizons)", "Softwood", "" }, ["Hardwood"] = { "Hardwood NH Inv Icon.png", "15px", "Item:Hardwood (New Horizons)", "Hardwood", "" }, ["Bamboo Shoot"] = { "Bamboo Shoot NH Inv Icon.png", "15px", "Item:Bamboo Shoot (New Horizons)", "Bamboo Shoot", "" }, ["Bamboo Piece"] = { "Bamboo Piece NH Inv Icon.png", "15px", "Item:Bamboo Piece (New Horizons)", "Bamboo Piece", "" }, ["Young Spring Bamboo"] = { "Young Spring Bamboo NH Inv Icon.png", "15px", "Item:Young Spring Bamboo (New Horizons)", "Young Spring Bamboo", "" }, ["Wasp Nest"] = { "Wasp's Nest NH Inv Icon.png", "15px", "Item:Wasp Nest (New Horizons)", "Wasp Nest", "" }, ["Manila Clam"] = { "Manila Clam NH Inv Icon.png", "15px", "Item:Manila Clam (New Horizons)", "Manila Clam", "" }, ["Pearl"] = { "Pearl NH Inv Icon.png", "15px", "Item:Pearl (New Horizons)", "Pearl", "" }, ["Green Pumpkin"] = { "Green Pumpkin NH Inv Icon.png", "15px", "Item:Green Pumpkin (New Horizons)", "Green Pumpkin", "" }, ["Orange Pumpkin"] = { "Orange Pumpkin NH Inv Icon.png", "15px", "Item:Orange Pumpkin (New Horizons)", "Orange Pumpkin", "" }, ["White Pumpkin"] = { "White Pumpkin NH Inv Icon.png", "15px", "Item:White Pumpkin (New Horizons)", "White Pumpkin", "" }, ["Yellow Pumpkin"] = { "Yellow Pumpkin NH Inv Icon.png", "15px", "Item:Yellow Pumpkin (New Horizons)", "Yellow Pumpkin", "" }, ["Glowing Moss"] = { "Glowing Moss NH Inv Icon.png", "15px", "Item:Glowing Moss (New Horizons)", "Glowing Moss", "" }, ["Vine"] = { "Vine NH Inv Icon.png", "15px", "Item:Vine (New Horizons)", "Vine", "" }, -- Cooking ingredients -- ["Wheat"] = { "Wheat NH Inv Icon.png", "15px", "Item:Wheat (New Horizons)", "Wheat", "" }, ["Sugar"] = { "Sugar NH Inv Icon.png", "15px", "Item:Sugar (New Horizons)", "Sugar", "" }, ["Tomato"] = { "Tomato NH Inv Icon.png", "15px", "Item:Tomato (New Horizons)", "Tomato", "" }, ["Carrot"] = { "Carrot NH Inv Icon.png", "15px", "Item:Carrot (New Horizons)", "Carrot", "" }, ["Sugarcane"] = { "Sugarcane NH Inv Icon.png", "15px", "Item:Sugarcane (New Horizons)", "Sugarcane", "" }, ["Potato"] = { "Potato NH Inv Icon.png", "15px", "Item:Potato (New Horizons)", "Potato", "" }, ["Flour"] = { "Flour NH Inv Icon.png", "15px", "Item:Flour (New Horizons)", "Flour", "" }, ["Whole-Wheat Flour"] = { "Whole-Wheat Flour NH Inv Icon.png", "15px", "Item:Whole-Wheat Flour (New Horizons)", "Whole-Wheat Flour", "" }, ["Sugar"] = { "Sugar NH Inv Icon.png", "15px", "Item:Sugar (New Horizons)", "Sugar", "" }, ["Brown Sugar"] = { "Brown Sugar NH Inv Icon.png", "15px", "Item:Brown Sugar (New Horizons)", "Brown Sugar", "" }, ["10 Turnips"] = { "Turnips NH Inv Icon.png", "15px", "", "", "10 " }, ["30 Turnips"] = { "Turnips NH Inv Icon.png", "15px", "", "", "30 " }, ["Anchovy"] = { "Anchovy (Fish) NH Icon.png", "15px", "Anchovy (fish)", "Anchovy", "Anchovy" }, ["Horse Mackerel"] = { "Horse Mackerel NH Icon.png", "15px", "Horse Mackerel", "Horse Mackerel", "Horse Mackerel" }, ["Barred Knifejaw"] = { "Barred Knifejaw NH Icon.png", "15px", "Barred Knifejaw", "Barred Knifejaw", "Barred Knifejaw" }, ["Blue Marlin"] = { "Blue Marlin NH Icon.png", "15px", "Blue Marlin", "Blue Marlin", "Blue Marlin" }, ["Carp"] = { "Carp NH Icon.png", "15px", "Carp", "Carp", "Carp" }, ["Dab"] = { "Dab NH Icon.png", "15px", "Dab", "Dab", "Dab" }, ["Horse Mackerel"] = { "Horse Mackerel NH Icon.png", "15px", "Horse Mackerel", "Horse Mackerel", "Horse Mackerel" }, ["Olive Flounder"] = { "Olive Flounder NH Icon.png", "15px", "Olive Flounder", "Olive Flounder", "Olive Flounder" }, ["Red Snapper"] = { "Red Snapper NH Icon.png", "15px", "Red Snapper", "Red Snapper", "Red Snapper" }, ["Salmon"] = { "Salmon NH Icon.png", "15px", "Salmon", "Salmon", "Salmon" }, ["Scallop"] = { "Scallop NH Icon.png", "15px", "Scallop (sea creature)", "Scallop", "Scallop" }, ["Sea Bass"] = { "Sea Bass NH Icon.png", "15px", "Sea Bass", "Sea Bass", "Sea Bass" }, ["Seaweed"] = { "Seaweed NH Icon.png", "15px", "Seaweed", "Seaweed", "Seaweed" }, ["Squid"] = { "Squid NH Icon.png", "15px", "Squid", "Squid", "Squid" }, ["Sweet Shrimp"] = { "Sweet Shrimp NH Icon.png", "15px", "Sweet Shrimp", "Sweet Shrimp", "Sweet Shrimp" }, ["Tiger Prawn"] = { "Tiger Prawn NH Icon.png", "15px", "Tiger Prawn", "Tiger Prawn", "Tiger Prawn" }, -- Star fragments -- ["Star Fragment"] = { "Star Fragment NH Inv Icon.png", "15px", "Item:Star Fragment (New Horizons)", "Star Fragment", "" }, ["Large Star Fragment"] = { "Large Star Fragment NH Inv Icon.png", "15px", "Item:Large Star Fragment (New Horizons)", "Large Star Fragment", "" }, ["Aries Fragment"] = { "Aries Fragment NH Inv Icon.png", "15px", "Item:Aries Fragment (New Horizons)", "Aries Fragment", "" }, ["Taurus Fragment"] = { "Taurus Fragment NH Inv Icon.png", "15px", "Item:Taurus Fragment (New Horizons)", "Taurus Fragment", "" }, ["Gemini Fragment"] = { "Gemini Fragment NH Inv Icon.png", "15px", "Item:Gemini Fragment (New Horizons)", "Gemini Fragment", "" }, ["Cancer Fragment"] = { "Cancer Fragment NH Inv Icon.png", "15px", "Item:Cancer Fragment (New Horizons)", "Cancer Fragment", "" }, ["Leo Fragment"] = { "Leo Fragment NH Inv Icon.png", "15px", "Item:Leo Fragment (New Horizons)", "Leo Fragment", "" }, ["Virgo Fragment"] = { "Virgo Fragment NH Inv Icon.png", "15px", "Item:Virgo Fragment (New Horizons)", "Virgo Fragment", "" }, ["Libra Fragment"] = { "Libra Fragment NH Inv Icon.png", "15px", "Item:Libra Fragment (New Horizons)", "Libra Fragment", "" }, ["Scorpius Fragment"] = { "Scorpius Fragment NH Inv Icon.png", "15px", "Item:Scorpius Fragment (New Horizons)", "Scorpius Fragment", "" }, ["Capricorn Fragment"] = { "Capricorn Fragment NH Inv Icon.png", "15px", "Item:Capricorn Fragment (New Horizons)", "Capricorn Fragment", "" }, ["Aquarius Fragment"] = { "Aquarius Fragment NH Inv Icon.png", "15px", "Item:Aquarius Fragment (New Horizons)", "Aquarius Fragment", "" }, ["Pisces Fragment"] = { "Pisces Fragment NH Inv Icon.png", "15px", "Item:Pisces Fragment (New Horizons)", "Pisces Fragment", "" }, -- Trash -- ["Boot"] = { "Boot NH Inv Icon.png", "15px", "Item:Boot (New Horizons)", "Boot", "" }, ["Empty Can"] = { "Empty Can NH Inv Icon.png", "15px", "Item:Empty Can (New Horizons)", "Empty Can", "" }, ["Old Tire"] = { "Old Tire NH Inv Icon.png", "15px", "Item:Old Tire (New Horizons)", "Old Tire", "" }, -- Seasonal -- ["Blue Feather"] = { "Blue Feather NH Inv Icon.png", "15px", "Item:Blue Feather (New Horizons)", "Blue Feather", "" }, ["Green Feather"] = { "Green Feather NH Inv Icon.png", "15px", "Item:Green Feather (New Horizons)", "Green Feather", "" }, ["Purple Feather"] = { "Purple Feather NH Inv Icon.png", "15px", "Item:Purple Feather (New Horizons)", "Purple Feather", "" }, ["Rainbow Feather"] = { "Rainbow Feather NH Inv Icon.png", "15px", "Item:Rainbow Feather (New Horizons)", "Rainbow Feather", "" }, ["Red Feather"] = { "Red Feather NH Inv Icon.png", "15px", "Item:Red Feather (New Horizons)", "Red Feather", "" }, ["Earth Egg"] = { "Earth Egg NH Inv Icon.png", "15px", "Item:Earth Egg (New Horizons)", "Earth Egg", "" }, ["Leaf Egg"] = { "Leaf Egg NH Inv Icon.png", "15px", "Item:Leaf Egg (New Horizons)", "Leaf Egg", "" }, ["Sky Egg"] = { "Sky Egg NH Inv Icon.png", "15px", "Item:Sky Egg (New Horizons)", "Sky Egg", "" }, ["Stone Egg"] = { "Stone Egg NH Inv Icon.png", "15px", "Item:Stone Egg (New Horizons)", "Stone Egg", "" }, ["Water Egg"] = { "Water Egg NH Inv Icon.png", "15px", "Item:Water Egg (New Horizons)", "Water Egg", "" }, ["Wood Egg"] = { "Wood Egg NH Inv Icon.png", "15px", "Item:Wood Egg (New Horizons)", "Wood Egg", "" }, ["Summer Shell"] = { "Summer Shell NH Inv Icon.png", "15px", "Item:Summer Shell (New Horizons)", "Summer Shell", "" }, ["Acorn"] = { "Acorn NH Inv Icon.png", "15px", "Item:Acorn (New Horizons)", "Acorn", "" }, ["Pine Cone"] = { "Pine Cone NH Inv Icon.png", "15px", "Item:Pine Cone (New Horizons)", "Pine Cone", "" }, ["Candy"] = { "Candy NH Inv Icon.png", "15px", "Item:Candy (New Horizons)", "Candy", "" }, ["Maple Leaf"] = { "Maple Leaf NH Inv Icon.png", "15px", "Item:Maple Leaf (New Horizons)", "Maple Leaf", "" }, ["Elegant Mushroom"] = { "Elegant Mushroom NH Inv Icon.png", "15px", "Item:Elegant Mushroom (New Horizons)", "Elegant Mushroom", "" }, ["Round Mushroom"] = { "Mushroom NH Inv Icon.png", "15px", "Item:Round Mushroom (New Horizons)", "Round Mushroom", "" }, ["Flat Mushroom"] = { "Flat Mushroom NH Inv Icon.png", "15px", "Item:Flat Mushroom (New Horizons)", "Flat Mushroom", "" }, ["Rare Mushroom"] = { "Rare Mushroom NH Inv Icon.png", "15px", "Item:Rare Mushroom (New Horizons)", "Rare Mushroom", "" }, ["Snowflake"] = { "Snowflake NH Inv Icon.png", "15px", "Item:Snowflake (New Horizons)", "Snowflake", "" }, ["Large Snowflake"] = { "Large Snowflake NH Inv Icon.png", "15px", "Item:Large Snowflake (New Horizons)", "Large Snowflake", "" }, ["Red Ornament"] = { "Red Ornament NH Inv Icon.png", "15px", "Item:Red Ornament (New Horizons)", "Red Ornament", "" }, ["Blue Ornament"] = { "Blue Ornament NH Inv Icon.png", "15px", "Item:Blue Ornament (New Horizons)", "Blue Ornament", "" }, ["Gold Ornament"] = { "Gold Ornament NH Inv Icon.png", "15px", "Item:Gold Ornament (New Horizons)", "Gold Ornament", "" }, -- Tools -- ["Flimsy Shovel"] = { "Flimsy Shovel NH Icon.png", "15px", "Item:Flimsy Shovel (New Horizons)", "Flimsy Shovel", "" }, ["Flimsy Axe"] = { "Flimsy Axe NH Icon.png", "15px", "Item:Flimsy Axe (New Horizons)", "Flimsy Axe", "" }, ["Flimsy Watering Can"] = { "Flimsy Watering Can NH Icon.png", "15px", "Item:Flimsy Watering Can (New Horizons)", "Flimsy Watering Can", "" }, ["Flimsy Fishing Rod"] = { "Flimsy Fishing Rod NH Icon.png", "15px", "Item:Flimsy Fishing Rod (New Horizons)", "Flimsy Fishing Rod", "" }, ["Flimsy Net"] = { "Flimsy Net NH Icon.png", "15px", "Item:Flimsy Net (New Horizons)", "Flimsy Net", "" }, ["Stone Axe"] = { "Stone Axe NH Inv Icon.png", "15px", "Item:Stone Axe (New Horizons)", "Stone Axe", "" }, ["Shovel"] = { "Shovel NH Inv Icon.png", "15px", "Item:Shovel (New Horizons)", "Shovel", "" }, ["Axe"] = { "Axe NH Inv Icon.png", "15px", "Item:Axe (New Horizons)", "Axe", "" }, ["Watering Can"] = { "Watering Can NH Inv Icon.png", "15px", "Item:Watering Can (New Horizons)", "Watering Can", "" }, ["Fishing Rod"] = { "Fishing Rod NH Inv Icon.png", "15px", "Item:Fishing Rod (New Horizons)", "Fishing Rod", "" }, ["Net"] = { "Net NH Inv Icon.png", "15px", "Item:Net (New Horizons)", "Net", "" }, ["Ladder"] = { "Ladder NH Inv Icon.png", "15px", "Item:Ladder (New Horizons)", "Ladder", "" }, ["Slingshot"] = { "Slingshot NH Inv Icon.png", "15px", "Item:Slingshot (New Horizons)", "Slingshot", "" }, -- Fruits -- ["Apple"] = { "Apple NH Inv Icon.png", "15px", "Item:Apple (New Horizons)", "Apple", "" }, ["Pear"] = { "Pear NH Inv Icon.png", "15px", "Item:Pear (New Horizons)", "Pear", "" }, ["Cherry"] = { "Cherry NH Inv Icon.png", "15px", "Item:Cherry (New Horizons)", "Cherry", "" }, ["Orange"] = { "Orange NH Inv Icon.png", "15px", "Item:Orange (New Horizons)", "Orange", "" }, ["Peach"] = { "Peach NH Inv Icon.png", "15px", "Item:Peach (New Horizons)", "Peach", "" }, ["Coconut"] = { "Coconut NH Inv Icon.png", "15px", "Item:Coconut (New Horizons)", "Coconut", "" }, -- Flowers -- ["Red Cosmos"] = { "Red Cosmos NH Inv Icon.png", "15px", "Item:Red Cosmos (New Horizons)", "Red Cosmos", "" }, ["White Cosmos"] = { "White Cosmos NH Inv Icon.png", "15px", "Item:White Cosmos (New Horizons)", "White Cosmos", "" }, ["Yellow Cosmos"] = { "Yellow Cosmos NH Inv Icon.png", "15px", "Item:Yellow Cosmos (New Horizons)", "Yellow Cosmos", "" }, ["Orange Cosmos"] = { "Orange Cosmos NH Inv Icon.png", "15px", "Item:Orange Cosmos (New Horizons)", "Orange Cosmos", "" }, ["Pink Cosmos"] = { "Pink Cosmos NH Inv Icon.png", "15px", "Item:Pink Cosmos (New Horizons)", "Pink Cosmos", "" }, ["Black Cosmos"] = { "Black Cosmos NH Inv Icon.png", "15px", "Item:Black Cosmos (New Horizons)", "Black Cosmos", "" }, ["Red Hyacinths"] = { "Red Hyacinths NH Inv Icon.png", "15px", "Item:Red Hyacinths (New Horizons)", "Red Hyacinths", "" }, ["White Hyacinths"] = { "White Hyacinths NH Inv Icon.png", "15px", "Item:White Hyacinths (New Horizons)", "White Hyacinths", "" }, ["Yellow Hyacinths"] = { "Yellow Hyacinths NH Inv Icon.png", "15px", "Item:Yellow Hyacinths (New Horizons)", "Yellow Hyacinths", "" }, ["Orange Hyacinths"] = { "Orange Hyacinths NH Inv Icon.png", "15px", "Item:Orange Hyacinths (New Horizons)", "Orange Hyacinths", "" }, ["Pink Hyacinths"] = { "Pink Hyacinths NH Inv Icon.png", "15px", "Item:Pink Hyacinths (New Horizons)", "Pink Hyacinths", "" }, ["Purple Hyacinths"] = { "Purple Hyacinths NH Inv Icon.png", "15px", "Item:Purple Hyacinths (New Horizons)", "Purple Hyacinths", "" }, ["Blue Hyacinths"] = { "Blue Hyacinths NH Inv Icon.png", "15px", "Item:Blue Hyacinths (New Horizons)", "Blue Hyacinths", "" }, ["Red Lilies"] = { "Red Lilies NH Inv Icon.png", "15px", "Item:Red Lilies (New Horizons)", "Red Lilies", "" }, ["White Lilies"] = { "White Lilies NH Inv Icon.png", "15px", "Item:White Lilies (New Horizons)", "White Lilies", "" }, ["Yellow Lilies"] = { "Yellow Lilies NH Inv Icon.png", "15px", "Item:Yellow Lilies (New Horizons)", "Yellow Lilies", "" }, ["Orange Lilies"] = { "Orange Lilies NH Inv Icon.png", "15px", "Item:Orange Lilies (New Horizons)", "Orange Lilies", "" }, ["Pink Lilies"] = { "Pink Lilies NH Inv Icon.png", "15px", "Item:Pink Lilies (New Horizons)", "Pink Lilies", "" }, ["Black Lilies"] = { "Black Lilies NH Inv Icon.png", "15px", "Item:Black Lilies (New Horizons)", "Black Lilies", "" }, ["White Mums"] = { "White Mums NH Inv Icon.png", "15px", "Item:White Mums (New Horizons)", "White Mums", "" }, ["Yellow Mums"] = { "Yellow Mums NH Inv Icon.png", "15px", "Item:Yellow Mums (New Horizons)", "Yellow Mums", "" }, ["Pink Mums"] = { "Pink Mums NH Inv Icon.png", "15px", "Item:Pink Mums (New Horizons)", "Pink Mums", "" }, ["Purple Mums"] = { "Purple Mums NH Inv Icon.png", "15px", "Item:Purple Mums (New Horizons)", "Purple Mums", "" }, ["Green Mums"] = { "Green Mums NH Inv Icon.png", "15px", "Item:Green Mums (New Horizons)", "Green Mums", "" }, ["Red Pansies"] = { "Red Pansies NH Inv Icon.png", "15px", "Item:Red Pansies (New Horizons)", "Red Pansies", "" }, ["White Pansies"] = { "White Pansies NH Inv Icon.png", "15px", "Item:White Pansies (New Horizons)", "White Pansies", "" }, ["Yellow Pansies"] = { "Yellow Pansies NH Inv Icon.png", "15px", "Item:Yellow Pansies (New Horizons)", "Yellow Pansies", "" }, ["Orange Pansies"] = { "Orange Pansies NH Inv Icon.png", "15px", "Item:Orange Pansies (New Horizons)", "Orange Pansies", "" }, ["Purple Pansies"] = { "Purple Pansies NH Inv Icon.png", "15px", "Item:Purple Pansies (New Horizons)", "Purple Pansies", "" }, ["Blue Pansies"] = { "Blue Pansies NH Inv Icon.png", "15px", "Item:Blue Pansies (New Horizons)", "Blue Pansies", "" }, ["Red Roses"] = { "Red Roses NH Inv Icon.png", "15px", "Item:Red Roses (New Horizons)", "Red Roses", "" }, ["White Roses"] = { "White Roses NH Inv Icon.png", "15px", "Item:White Roses (New Horizons)", "White Roses", "" }, ["Yellow Roses"] = { "Yellow Roses NH Inv Icon.png", "15px", "Item:Yellow Roses (New Horizons)", "Yellow Roses", "" }, ["Orange Roses"] = { "Orange Roses NH Inv Icon.png", "15px", "Item:Orange Roses (New Horizons)", "Orange Roses", "" }, ["Pink Roses"] = { "Pink Roses NH Inv Icon.png", "15px", "Item:Pink Roses (New Horizons)", "Pink Roses", "" }, ["Purple Roses"] = { "Purple Roses NH Inv Icon.png", "15px", "Item:Purple Roses (New Horizons)", "Purple Roses", "" }, ["Blue Roses"] = { "Blue Roses NH Inv Icon.png", "15px", "Item:Blue Roses (New Horizons)", "Blue Roses", "" }, ["Black Roses"] = { "Black Roses NH Inv Icon.png", "15px", "Item:Black Roses (New Horizons)", "Black Roses", "" }, ["Gold Roses"] = { "Gold Roses NH Inv Icon.png", "15px", "Item:Gold Roses (New Horizons)", "Gold Roses", "" }, ["Red Tulips"] = { "Red Tulips NH Inv Icon.png", "15px", "Item:Red Tulips (New Horizons)", "Red Tulips", "" }, ["White Tulips"] = { "White Tulips NH Inv Icon.png", "15px", "Item:White Tulips (New Horizons)", "White Tulips", "" }, ["Yellow Tulips"] = { "Yellow Tulips NH Inv Icon.png", "15px", "Item:Yellow Tulips (New Horizons)", "Yellow Tulips", "" }, ["Orange Tulips"] = { "Orange Tulips NH Inv Icon.png", "15px", "Item:Orange Tulips (New Horizons)", "Orange Tulips", "" }, ["Pink Tulips"] = { "Pink Tulips NH Inv Icon.png", "15px", "Item:Pink Tulips (New Horizons)", "Pink Tulips", "" }, ["Purple Tulips"] = { "Purple Tulips NH Inv Icon.png", "15px", "Item:Purple Tulips (New Horizons)", "Purple Tulips", "" }, ["Black Tulips"] = { "Black Tulips NH Inv Icon.png", "15px", "Item:Black Tulips (New Horizons)", "Black Tulips", "" }, ["Red Windflowers"] = { "Red Windflowers NH Inv Icon.png", "15px", "Item:Red Windflowers (New Horizons)", "Red Windflowers", "" }, ["White Windflowers"] = { "White Windflowers NH Inv Icon.png", "15px", "Item:White Windflowers (New Horizons)", "White Windflowers", "" }, ["Orange Windflowers"] = { "Orange Windflowers NH Inv Icon.png", "15px", "Item:Orange Windflowers (New Horizons)", "Orange Windflowers", "" }, ["Pink Windflowers"] = { "Pink Windflowers NH Inv Icon.png", "15px", "Item:Pink Windflowers (New Horizons)", "Pink Windflowers", "" }, ["Purple Windflowers"] = { "Purple Windflowers NH Inv Icon.png", "15px", "Item:Purple Windflowers (New Horizons)", "Purple Windflowers", "" }, ["Blue Windflowers"] = { "Blue Windflowers NH Inv Icon.png", "15px", "Item:Blue Windflowers (New Horizons)", "Blue Windflowers", "" }, -- Shells -- ["Conch"] = { "Conch NH Inv Icon.png", "15px", "Item:Conch (New Horizons)", "Conch", "" }, ["Coral"] = { "Coral NH Inv Icon.png", "15px", "Item:Coral (New Horizons)", "Coral", "" }, ["Cowrie"] = { "Cowrie NH Inv Icon.png", "15px", "Item:Cowrie (New Horizons)", "Cowrie", "" }, ["Giant Clam"] = { "Giant Clam NH Inv Icon.png", "15px", "Item:Giant Clam (New Horizons)", "Giant Clam", "" }, ["Sea Snail"] = { "Sea Snail Shell NH Inv Icon.png", "15px", "Item:Sea Snail (New Horizons)", "Sea Snail", "" }, ["Sand Dollar"] = { "Sand Dollar NH Inv Icon.png", "15px", "Item:Sand Dollar (New Horizons)", "Sand Dollar", "" }, ["Venus Comb"] = { "Venus Comb NH Inv Icon.png", "15px", "Item:Venus Comb (New Horizons)", "Venus Comb", "" }, -- Miscellaneous -- ["Tomato Puree"] = { "Dishes NH Inv Icon.png", "15px", "Item:Tomato Puree (New Horizons)", "Tomato Puree", "" }, ["Fossil"] = { "Fossil NH Inv Icon.png", "15px", "Fossil", "Fossil", "Fossil" }, ["Rusted Part"] = { "Rusted Part NH Inv Icon.png", "15px", "Item:Rusted Part (New Horizons)", "Rusted Part", "" }, ["Bells"] = { "99k Bells NH Inv Icon.png", "15px", "Bell", "Bell", "Bell" }, ["50k Bells"] = { "99k Bells NH Inv Icon.png", "15px", "", "", "50,000 Bells" }, ["50000 Bells"] = { "99k Bells NH Inv Icon.png", "15px", "", "", "50,000 Bells" }, ["50,000 Bells"] = { "99k Bells NH Inv Icon.png", "15px", "", "", "50,000 Bells" }, ["99k Bells"] = { "99k Bells NH Inv Icon.png", "15px", "", "", "99,000 Bells" }, ["99000 Bells"] = { "99k Bells NH Inv Icon.png", "15px", "", "", "99,000 Bells" }, ["99,000 Bells"] = { "99k Bells NH Inv Icon.png", "15px", "", "", "99,000 Bells" }, ["Red Wrapping Paper"] = { "Red Wrapping Paper NH Inv Icon.png", "15px", "Item:Red Wrapping Paper (New Horizons)", "Red Wrapping Paper", "" } }	local print = ' ' if not isEmpty(data[frame.args['1']]) and not isEmpty(data[frame.args['1']][1]) then print = print .. ' '	else print = print .. '[[File:Leaf NH Icon cropped.png'		if not isEmpty(frame.args['size']) then			print = print .. '|' .. frame.args['size']		else			print = print .. '|15px'		end		print = print .. '|link=|alt=]] ' end if not isEmpty(frame.args['2']) then print = print .. frame.args['2'] .. '× '	else print = print .. ''	end if not isEmpty(data[frame.args['1']]) and not isEmpty(data[frame.args['1']][3]) then print = print .. '' .. data[frame.args['1'[3] .. '|' .. data[frame.args['1']][4] .. ']]'   else if not isEmpty(data[frame.args['1']]) and not isEmpty(data[frame.args['1']][5]) then print = print .. data[frame.args['1']][5] else print = print ..  .. frame.args['1'] ..  end end print = print .. ' '	if not isEmpty(frame.args['nb']) then print = print .. ''	else print = print .. ' '	end return print end

function p.outputMaterialPC (frame) local function isEmpty(s) return s == nil or s == '' end local data = { -- Common materials -- ["Cotton"] = { "Cotton PC Icon.png", "20px", "", "", "Cotton" }, ["Friend Powder"] = { "Friend Powder PC Icon.png", "20px", "", "", "Friend Powder" }, ["HH Material"] = { "HH Material PC Icon.png", "20px", "", "", "HH Material" }, ["Paper"] = { "Paper PC Icon.png", "20px", "", "", "Paper" }, ["Preserves"] = { "Preserves PC Icon.png", "20px", "", "", "Preserves" }, ["Reissue Material"] = { "Reissue Material PC Icon.png", "20px", "", "", "Reissue Material" }, ["Sparkle Stones"] = { "Sparkle Stones PC Icon.png", "20px", "", "", "Sparkle Stones" }, ["Steel"] = { "Steel PC Icon.png", "20px", "", "", "Steel" }, ["Wood"] = { "Wood PC Icon.png", "20px", "", "", "Wood" }, -- Essences -- ["Civic Essence"] = { "Civic Essence PC Icon.png", "20px", "", "", "Civic Essence" }, ["Cool Essence"] = { "Cool Essence PC Icon.png", "20px", "", "", "Cool Essence" }, ["Cute Essence"] = { "Cute Essence PC Icon.png", "20px", "", "", "Cute Essence" }, ["Elegant Essence"] = { "Elegant Essence PC Icon.png", "20px", "", "", "Elegant Essence" }, ["Harmonious Essence"] = { "Harmonious Essence PC Icon.png", "20px", "", "", "Harmonious Essence" }, ["Hip Essence"] = { "Hip Essence PC Icon.png", "20px", "", "", "Hip Essence" }, ["Historical Essence"] = { "Historical Essence PC Icon.png", "20px", "", "", "Historical Essence" }, ["Modern Essence"] = { "Modern Essence PC Icon.png", "20px", "", "", "Modern Essence" }, ["Natural Essence"] = { "Natural Essence PC Icon.png", "20px", "", "", "Natural Essence" }, ["Rustic Essence"] = { "Rustic Essence PC Icon.png", "20px", "", "", "Rustic Essence" }, ["Sporty Essence"] = { "Sporty Essence PC Icon.png", "20px", "", "", "Sporty Essence" }, -- Event materials -- ["1-Up Mushroom"] = { "1-Up Mushroom (Material) PC Icon.png", "20px", "", "", "1-Up Mushroom" }, ["Bunny-Day Egg"] = { "Bunny-Day Egg PC Icon.png", "20px", "", "", "Bunny-Day Egg" }, ["Candy Cane"] = { "Candy Cane PC Icon.png", "20px", "", "", "Candy Cane" }, ["Countdown Charm"] = { "Countdown Charm PC Icon.png", "20px", "", "", "Countdown Charm" }, ["Creepy Confection"] = { "Creepy Confection PC Icon.png", "20px", "", "", "Creepy Confection" }, ["Crystal Shards"] = { "Crystal Shards PC Icon.png", "20px", "", "", "Crystal Shards" }, ["Mega Mushroom"] = { "Mega Mushroom PC Icon.png", "20px", "", "", "Mega Mushroom" }, ["Snowflakes"] = { "Snowflakes PC Icon.png", "20px", "", "", "Snowflakes" }, ["Super Mushroom"] = { "Super Mushroom (Material) PC Icon.png", "20px", "", "", "Super Mushroom" }, -- Scavenger Hunt event material -- ["Acorn"] = { "Acorn PC Icon.png", "20px", "", "", "Acorn" }, ["All-Natural Gyroidite"] = { "All-Natural Gyroidite PC Icon.png", "20px", "", "", "All-Natural Gyroidite" }, ["Balloon Gyroidite"] = { "Balloon Gyroidite PC Icon.png", "20px", "", "", "Balloon Gyroidite" }, ["Beach-Day Gyroidite"] = { "Beach-Day Gyroidite PC Icon.png", "20px", "", "", "Beach-Day Gyroidite" }, ["Bebop Gyroidite"] = { "Bebop Gyroidite PC Icon.png", "20px", "", "", "Bebop Gyroidite" }, ["Blitz Clam"] = { "Blitz Clam PC Icon.png", "20px", "", "", "Blitz Clam" }, ["Bubble Gyroidite"] = { "Bubble Gyroidite PC Icon.png", "20px", "", "", "Bubble Gyroidite" }, ["Busker Gyroidite"] = { "Busker Gyroidite PC Icon.png", "20px", "", "", "Busker Gyroidite" }, ["Candle Gyroidite"] = { "Candle Gyroidite PC Icon.png", "20px", "", "", "Candle Gyroidite" }, ["Carved Pumpkin"] = { "Carved Pumpkin PC Icon.png", "20px", "", "", "Carved Pumpkin" }, ["Choco-Mint Gyroidite"] = { "Choco-Mint Gyroidite PC Icon.png", "20px", "", "", "Choco-Mint Gyroidite" }, ["Cinna-Plaid Gyroidite"] = { "Cinna-Plaid Gyroidite PC Icon.png", "20px", "", "", "Cinna-Plaid Gyroidite" }, ["Cool Scoops Gyroidite"] = { "Cool Scoops Gyroidite PC Icon.png", "20px", "", "", "Cool Scoops Gyroidite" }, ["Countdown Gyroidite"] = { "Countdown Gyroidite PC Icon.png", "20px", "", "", "Countdown Gyroidite" }, ["Cream Soda Gyroidite"] = { "Cream Soda Gyroidite PC Icon.png", "20px", "", "", "Cream Soda Gyroidite" }, ["Denim Gyroidite"] = { "Denim Gyroidite PC Icon.png", "20px", "", "", "Denim Gyroidite" }, ["Electropop Gyroidite"] = { "Electropop Gyroidite PC Icon.png", "20px", "", "", "Electropop Gyroidite" }, ["Festive Gyroidite"] = { "Festive Gyroidite PC Icon.png", "20px", "", "", "Festive Gyroidite" }, ["First-Anniv. Gyroidite"] = { "First-Anniv. Gyroidite PC Icon.png", "20px", "", "", "First-Anniv. Gyroidite" }, ["Fright-Night Gyroidite"] = { "Fright-Night Gyroidite PC Icon.png", "20px", "", "", "Fright-Night Gyroidite" }, ["Frosty Gyroidite"] = { "Frosty Gyroidite PC Icon.png", "20px", "", "", "Frosty Gyroidite" }, ["Greenhouse Gyroidite"] = { "Greenhouse Gyroidite PC Icon.png", "20px", "", "", "Greenhouse Gyroidite" }, ["Gyroidite"] = { "Gyroidite PC Icon.png", "20px", "", "", "Gyroidite" }, ["Haunted Gyroidite"] = { "Haunted Gyroidite PC Icon.png", "20px", "", "", "Haunted Gyroidite" }, ["Hello Kitty Gyroidite"] = { "Hello Kitty Gyroidite PC Icon.png", "20px", "", "", "Hello Kitty Gyroidite" }, ["Kingly Gyroidite"] = { "Kingly Gyroidite PC Icon.png", "20px", "", "", "Kingly Gyroidite" }, ["Misty Gyroidite"] = { "Misty Gyroidite PC Icon.png", "20px", "", "", "Misty Gyroidite" }, ["Music-Box Gyroidite"] = { "Choco-Mint Gyroidite PC Icon.png", "20px", "", "", "Music-Box Gyroidite" }, ["Ninja Gyroidite"] = { "Ninja Gyroidite PC Icon.png", "20px", "", "", "Ninja Gyroidite" }, ["Pastel-Pop Gyroidite"] = { "Pastel-Pop Gyroidite PC Icon.png", "20px", "", "", "Pastel-Pop Gyroidite" }, ["Poké Ball"] = { "Poké Ball (Material) PC Icon.png", "20px", "", "", "Poké Ball" }, ["Puppy Gyroidite"] = { "Puppy Gyroidite PC Icon.png", "20px", "", "", "Puppy Gyroidite" }, ["Quilted Gyroidite"] = { "Quilted Gyroidite PC Icon.png", "20px", "", "", "Quilted Gyroidite " }, ["Scarlet Gyroidite"] = { "Scarlet Gyroidite PC Icon.png", "20px", "", "", "Scarlet Gyroidite" }, ["Snow-Globe Gyroidite"] = { "Snow-Globe Gyroidite PC Icon.png", "20px", "", "", "Snow-Globe Gyroidite" }, ["Snow-Park Gyroidite"] = { "Snow-Park Gyroidite PC Icon.png", "20px", "", "", "Snow-Park Gyroidite" }, ["Snow-Roll Gyroidite"] = { "Snow-Roll Gyroidite PC Icon.png", "20px", "", "", "Snow-Roll Gyroidite" }, ["Thrifty Chic Gyroidite"] = { "Thrifty Chic Gyroidite PC Icon.png", "20px", "", "", "Thrifty Chic Gyroidite" }, ["Toy Day Gyroidite"] = { "Toy Day Gyroidite PC Icon.png", "20px", "", "", "Toy Day Gyroidite" }, ["Truffle"] = { "Truffle PC Icon.png", "20px", "", "", "Truffle" }, ["Wedding Gyroidite"] = { "Wedding Gyroidite PC Icon.png", "20px", "", "", "Wedding Gyroidite" }, ["Yoga Gyroidite"] = { "Yoga Gyroidite PC Icon.png", "20px", "", "", "Yoga Gyroidite" }, ["Leaf Ticket"] = { "", "", "", "", "Error: Leaf Tickets cannot be marked as a material. Please use Leaf Tickets instead. " }, ["Leaf Tickets"] = { "", "", "", "", "Error: Leaf Tickets cannot be marked as a material. Please use Leaf Tickets instead. " } }	local print = ' ' if not isEmpty(data[frame.args['1']]) and not isEmpty(data[frame.args['1']][1]) then print = print .. ' '	end if not isEmpty(frame.args['2']) then print = print .. frame.args['2'] .. '× '	else print = print .. ''	end if not isEmpty(data[frame.args['1']]) and not isEmpty(data[frame.args['1']][3]) then print = print .. '' .. data[frame.args['1'[3] .. '|' .. data[frame.args['1']][4] .. ']]'   else if not isEmpty(data[frame.args['1']]) and not isEmpty(data[frame.args['1']][5]) then print = print .. data[frame.args['1']][5] else print = print ..  .. frame.args['1'] ..  end end print = print .. ' '	if not isEmpty(frame.args['nb']) then print = print .. ''	else print = print .. ' '	end return print end return p