Module:Recipe list

Jump to navigation Jump to search

This module is used to list all recipes in a particular category.

The type function will match recipes which have the type parameter set to the same value as the input.

Example[edit source]

{{#invoke:recipe list|type|Foodstuff}}, lists all recipes with type set to Foodstuff.

Name Ingredients Crafting recipe [hide]Description
Beetroot Soup Beetroot +
Bowl
Invicon Beetroot.png: Inventory sprite for Beetroot in Minecraft as shown in-game linking to Beetroot with description: BeetrootInvicon Beetroot.png: Inventory sprite for Beetroot in Minecraft as shown in-game linking to Beetroot with description: BeetrootInvicon Beetroot.png: Inventory sprite for Beetroot in Minecraft as shown in-game linking to Beetroot with description: BeetrootInvicon Beetroot.png: Inventory sprite for Beetroot in Minecraft as shown in-game linking to Beetroot with description: BeetrootInvicon Beetroot.png: Inventory sprite for Beetroot in Minecraft as shown in-game linking to Beetroot with description: BeetrootInvicon Beetroot.png: Inventory sprite for Beetroot in Minecraft as shown in-game linking to Beetroot with description: BeetrootInvicon Bowl.png: Inventory sprite for Bowl in Minecraft as shown in-game linking to Bowl with description: Bowl
Invicon Beetroot Soup.png: Inventory sprite for Beetroot Soup in Minecraft as shown in-game linking to Beetroot Soup with description: Beetroot Soup
Bread Wheat
Invicon Wheat.png: Inventory sprite for Wheat in Minecraft as shown in-game linking to Wheat with description: WheatInvicon Wheat.png: Inventory sprite for Wheat in Minecraft as shown in-game linking to Wheat with description: WheatInvicon Wheat.png: Inventory sprite for Wheat in Minecraft as shown in-game linking to Wheat with description: Wheat
Invicon Bread.png: Inventory sprite for Bread in Minecraft as shown in-game linking to Bread with description: Bread
Cake Milk Bucket +
Sugar +
Any Egg +
Wheat
Invicon Milk Bucket.png: Inventory sprite for Milk Bucket in Minecraft as shown in-game linking to Milk Bucket with description: Milk BucketInvicon Milk Bucket.png: Inventory sprite for Milk Bucket in Minecraft as shown in-game linking to Milk Bucket with description: Milk BucketInvicon Milk Bucket.png: Inventory sprite for Milk Bucket in Minecraft as shown in-game linking to Milk Bucket with description: Milk BucketInvicon Sugar.png: Inventory sprite for Sugar in Minecraft as shown in-game linking to Sugar with description: SugarInvicon Egg.png: Inventory sprite for Egg in Minecraft as shown in-game linking to Egg with description: EggInvicon Blue Egg.png: Inventory sprite for Blue Egg in Minecraft as shown in-game linking to Blue Egg with description: Blue EggInvicon Brown Egg.png: Inventory sprite for Brown Egg in Minecraft as shown in-game linking to Brown Egg with description: Brown EggInvicon Sugar.png: Inventory sprite for Sugar in Minecraft as shown in-game linking to Sugar with description: SugarInvicon Wheat.png: Inventory sprite for Wheat in Minecraft as shown in-game linking to Wheat with description: WheatInvicon Wheat.png: Inventory sprite for Wheat in Minecraft as shown in-game linking to Wheat with description: WheatInvicon Wheat.png: Inventory sprite for Wheat in Minecraft as shown in-game linking to Wheat with description: Wheat
Invicon Cake.png: Inventory sprite for Cake in Minecraft as shown in-game linking to Cake with description: Cake
Empty buckets remain in the crafting grid after crafting the cake.
Cookie Wheat +
Cocoa Beans
Dried Kelp Dried Kelp Block
Golden Apple Gold Ingot +
Apple
Invicon Gold Ingot.png: Inventory sprite for Gold Ingot in Minecraft as shown in-game linking to Gold Ingot with description: Gold IngotInvicon Gold Ingot.png: Inventory sprite for Gold Ingot in Minecraft as shown in-game linking to Gold Ingot with description: Gold IngotInvicon Gold Ingot.png: Inventory sprite for Gold Ingot in Minecraft as shown in-game linking to Gold Ingot with description: Gold IngotInvicon Gold Ingot.png: Inventory sprite for Gold Ingot in Minecraft as shown in-game linking to Gold Ingot with description: Gold IngotInvicon Apple.png: Inventory sprite for Apple in Minecraft as shown in-game linking to Apple with description: AppleInvicon Gold Ingot.png: Inventory sprite for Gold Ingot in Minecraft as shown in-game linking to Gold Ingot with description: Gold IngotInvicon Gold Ingot.png: Inventory sprite for Gold Ingot in Minecraft as shown in-game linking to Gold Ingot with description: Gold IngotInvicon Gold Ingot.png: Inventory sprite for Gold Ingot in Minecraft as shown in-game linking to Gold Ingot with description: Gold IngotInvicon Gold Ingot.png: Inventory sprite for Gold Ingot in Minecraft as shown in-game linking to Gold Ingot with description: Gold Ingot
Invicon Golden Apple.png: Inventory sprite for Golden Apple in Minecraft as shown in-game linking to Golden Apple with description: Golden Apple
Golden Carrot Gold Nugget +
Carrot
Invicon Gold Nugget.png: Inventory sprite for Gold Nugget in Minecraft as shown in-game linking to Gold Nugget with description: Gold NuggetInvicon Gold Nugget.png: Inventory sprite for Gold Nugget in Minecraft as shown in-game linking to Gold Nugget with description: Gold NuggetInvicon Gold Nugget.png: Inventory sprite for Gold Nugget in Minecraft as shown in-game linking to Gold Nugget with description: Gold NuggetInvicon Gold Nugget.png: Inventory sprite for Gold Nugget in Minecraft as shown in-game linking to Gold Nugget with description: Gold NuggetInvicon Carrot.png: Inventory sprite for Carrot in Minecraft as shown in-game linking to Carrot with description: CarrotInvicon Gold Nugget.png: Inventory sprite for Gold Nugget in Minecraft as shown in-game linking to Gold Nugget with description: Gold NuggetInvicon Gold Nugget.png: Inventory sprite for Gold Nugget in Minecraft as shown in-game linking to Gold Nugget with description: Gold NuggetInvicon Gold Nugget.png: Inventory sprite for Gold Nugget in Minecraft as shown in-game linking to Gold Nugget with description: Gold NuggetInvicon Gold Nugget.png: Inventory sprite for Gold Nugget in Minecraft as shown in-game linking to Gold Nugget with description: Gold Nugget
Invicon Golden Carrot.png: Inventory sprite for Golden Carrot in Minecraft as shown in-game linking to Golden Carrot with description: Golden Carrot
Honey Bottle Glass Bottle +
Honey Block
Mushroom Stew Red Mushroom +
Brown Mushroom +
Bowl
Invicon Red Mushroom.png: Inventory sprite for Red Mushroom in Minecraft as shown in-game linking to Red Mushroom with description: Red MushroomInvicon Brown Mushroom.png: Inventory sprite for Brown Mushroom in Minecraft as shown in-game linking to Brown Mushroom with description: Brown MushroomInvicon Bowl.png: Inventory sprite for Bowl in Minecraft as shown in-game linking to Bowl with description: Bowl
Invicon Mushroom Stew.png: Inventory sprite for Mushroom Stew in Minecraft as shown in-game linking to Mushroom Stew with description: Mushroom Stew
Pumpkin Pie Pumpkin +
Sugar +
Any Egg
Invicon Pumpkin.png: Inventory sprite for Pumpkin in Minecraft as shown in-game linking to Pumpkin with description: PumpkinInvicon Sugar.png: Inventory sprite for Sugar in Minecraft as shown in-game linking to Sugar with description: SugarInvicon Egg.png: Inventory sprite for Egg in Minecraft as shown in-game linking to Egg with description: EggInvicon Blue Egg.png: Inventory sprite for Blue Egg in Minecraft as shown in-game linking to Blue Egg with description: Blue EggInvicon Brown Egg.png: Inventory sprite for Brown Egg in Minecraft as shown in-game linking to Brown Egg with description: Brown Egg
Invicon Pumpkin Pie.png: Inventory sprite for Pumpkin Pie in Minecraft as shown in-game linking to Pumpkin Pie with description: Pumpkin Pie
Rabbit Stew Cooked Rabbit +
Carrot +
Baked Potato +
Any Mushroom +
Bowl
Invicon Cooked Rabbit.png: Inventory sprite for Cooked Rabbit in Minecraft as shown in-game linking to Cooked Rabbit with description: Cooked RabbitInvicon Carrot.png: Inventory sprite for Carrot in Minecraft as shown in-game linking to Carrot with description: CarrotInvicon Baked Potato.png: Inventory sprite for Baked Potato in Minecraft as shown in-game linking to Baked Potato with description: Baked PotatoInvicon Red Mushroom.png: Inventory sprite for Red Mushroom in Minecraft as shown in-game linking to Red Mushroom with description: Red MushroomInvicon Brown Mushroom.png: Inventory sprite for Brown Mushroom in Minecraft as shown in-game linking to Brown Mushroom with description: Brown MushroomInvicon Bowl.png: Inventory sprite for Bowl in Minecraft as shown in-game linking to Bowl with description: Bowl
Invicon Rabbit Stew.png: Inventory sprite for Rabbit Stew in Minecraft as shown in-game linking to Rabbit Stew with description: Rabbit Stew
Suspicious Stew Red Mushroom +
Brown Mushroom +
Bowl +
Any Small Flower
Invicon Red Mushroom.png: Inventory sprite for Red Mushroom in Minecraft as shown in-game linking to Red Mushroom with description: Red MushroomInvicon Brown Mushroom.png: Inventory sprite for Brown Mushroom in Minecraft as shown in-game linking to Brown Mushroom with description: Brown MushroomInvicon Bowl.png: Inventory sprite for Bowl in Minecraft as shown in-game linking to Bowl with description: BowlInvicon Oxeye Daisy.png: Inventory sprite for Oxeye Daisy in Minecraft as shown in-game linking to Oxeye Daisy with description: Oxeye DaisyInvicon Cornflower.png: Inventory sprite for Cornflower in Minecraft as shown in-game linking to Cornflower with description: CornflowerInvicon Lily of the Valley.png: Inventory sprite for Lily of the Valley in Minecraft as shown in-game linking to Lily of the Valley with description: Lily of the ValleyInvicon Wither Rose.png: Inventory sprite for Wither Rose in Minecraft as shown in-game linking to Wither Rose with description: Wither RoseInvicon Red Tulip.png: Inventory sprite for Red Tulip in Minecraft as shown in-game linking to Red Tulip with description: Red TulipInvicon Orange Tulip.png: Inventory sprite for Orange Tulip in Minecraft as shown in-game linking to Orange Tulip with description: Orange TulipInvicon White Tulip.png: Inventory sprite for White Tulip in Minecraft as shown in-game linking to White Tulip with description: White TulipInvicon Pink Tulip.png: Inventory sprite for Pink Tulip in Minecraft as shown in-game linking to Pink Tulip with description: Pink TulipInvicon Azure Bluet.png: Inventory sprite for Azure Bluet in Minecraft as shown in-game linking to Azure Bluet with description: Azure BluetInvicon Allium.png: Inventory sprite for Allium in Minecraft as shown in-game linking to Allium with description: AlliumInvicon Blue Orchid.png: Inventory sprite for Blue Orchid in Minecraft as shown in-game linking to Blue Orchid with description: Blue OrchidInvicon Poppy.png: Inventory sprite for Poppy in Minecraft as shown in-game linking to Poppy with description: PoppyInvicon Dandelion.png: Inventory sprite for Dandelion in Minecraft as shown in-game linking to Dandelion with description: DandelionInvicon Torchflower.png: Inventory sprite for Torchflower in Minecraft as shown in-game linking to Torchflower with description: TorchflowerInvicon Closed Eyeblossom.png: Inventory sprite for Closed Eyeblossom in Minecraft as shown in-game linking to Closed Eyeblossom with description: Closed EyeblossomInvicon Open Eyeblossom.png: Inventory sprite for Open Eyeblossom in Minecraft as shown in-game linking to Open Eyeblossom with description: Open Eyeblossom
Invicon Suspicious Stew.png: Inventory sprite for Suspicious Stew in Minecraft as shown in-game linking to Suspicious Stew with description: Suspicious Stew
[view] [edit] [history] [refresh]The above documentation is transcluded from Module:Recipe list/doc.
local p = {}
function p.type( f )
	local args = f.args
	local crafting = require( [[Module:Crafting]] ).table
	local type = mw.text.trim( args[1] )
	
	local showDesciption
	local templates = {}

	local query = {
		'[[Crafting type::'..type..']]',
		'?Crafting JSON',
		limit = 500
	}
	local smwdata = mw.smw.ask(query)
	
	if smwdata then
		for _,v in ipairs(smwdata) do
			if _G.type(v['Crafting JSON']) ~= "table" then
				local tArgs = mw.text.jsonDecode(v['Crafting JSON'])
				if tArgs.description then
					showDescription = true
				end
				
				tArgs.nocat = '1'
				
				table.insert( templates, tArgs )
			else
				mw.log("ERROR: Recipe query returned table.")
				mw.logObject(v, "DATA")
			end
		end
	end
	
	if #templates == 0 then
		return
	end
	
	templates[1].head = '1'
	templates[1].showname = '1'
	if showDescription and args.showdesciption ~= '0' or args.showdesciption == '1' then
		templates[1].showdescription = '1'
	end
	if not args.continue then
		templates[#templates].foot = '1'
	end
	
	local out = {}
	for i, v in ipairs( templates ) do
		table.insert( out, crafting( v ) )
	end
	
	return table.concat( out, '\n' )
end
return p