Module:Wares

local p = {}

local Franchise = require("Module:Franchise")

p.Templates = { Wares = { wip = true, purpose = "A work-in-progress template which may eventually replace Template:ShopItem. Lists prices of items sold in a Shop.", format = "block", useCases = { {				name = "Alternative Prices", desc = "Usage when the shop offers items at different prices. See for example Beedle's Airshop or Witch's Hut." },			{				name = "Tabs", desc = "Usage when the shop offers different wares depending on the circumstances. See Beedle or Botrick.", },		},		paramOrder = {"game", "prices"}, repeatedGroup = { name = "itemPrices", params = {"item", "price", "tab"}, },		params = { game = { desc = "A game code", required = true, type = "string", enum = Franchise.enum, },			prices = { desc = "A comma-separated list of names to use in price column headers", useCase = "Alternative Prices", type = "string", split = true, trim = true, nilIfEmpty = true, },			item = { desc = "An item sold at the shop. Should refer to a page on the wiki. Template:Term is automatically applied to the input.", type = "wiki-page-name", trim = true, nilIfEmpty = true, },			price = { desc = "A number indicating the price in Rupees. If the item has alternative prices, input them as a comma-separated list. For currencies other than Rupees, enter the price as follows:, where  is singular and refers to a page on the wiki. Template:Plural will be automatically applied if the amount is greater than 1, else Template:Term will be applied.", type = "string", trim = true, nilIfEmpty = true, },			tab = { desc = "Which tab the item should appear on. Should be one of the values specified in the  parameter.", useCase = "Tabs", trim = true, nilIfEmpty = true, },		},	} }

return p