Module:Armor

local p = {}

p.Templates = { ["Armor/Store"] = { purpose = "Stores Armor data in Data:Armor. For base items only—for upgrades, use Template:Armor/Store Upgrade.", wip = true, format = "block", storesData = true, paramOrder = {"armor", "armorSet", "slot", "description", "defense", "sellPrice"}, params = { armor = { required = true, type = "wiki-page-name", desc = "A wiki article name on a particular piece of Armor.", trim = true, nilIfEmpty = true, },			armorSet = { required = true, type = "wiki-page-name", desc = "If applicable, a wiki page name on the Armor Set that this Armor belongs to. Otherwise, include this parameter anyway but leave it blank.", trim = true, },			slot = { required = true, type = "string", enum = {"Head", "Torso", "Legs"}, desc = "The slot that this Armor occupies on Link's body.", trim = true, nilIfEmpty = true, },			description = { required = true, type = "content", desc = "A transcript of the item's description on the Inventory screen.", trim = true, nilIfEmpty = true, },			defense = { required = true, type = "number", desc = "The defensive value for the Armor at its base level.", trim = true, nilIfEmpty = true, },			sellPrice = { required = true, type = "number", desc = "An integer – the amount of Rupees that Link can sell the Armor for at its base level.", trim = true, nilIfEmpty = true, },		},		examples = { {				armor = "Ancient Helm", armorSet = "Ancient Set", slot = "Head", description = "This headgear is the result of Robbie's research. It uses Guardian parts to decrease damage from ancient energy attacks.", defense = "4", sellPrice = "125", },			{				armor = "Sand Boots", armorSet = "", slot = "Legs", description = "Gerudo artisans modified these boots for life in the desert. The special soles distribute your body weight evenly so you can maintain your normal movement speed on sand.", defense = "3", sellPrice = "200", },		}	},	["Armor/Store Upgrade"] = { purpose = "Stores Armor upgrade data in Data:Armor. For base items, use Template:Armor/Store.", wip = true, format = "block", storesData = true, paramOrder = {"armor", "level", "materials", "defense", "sellPrice"}, params = { armor = { required = true, type = "wiki-page-name", desc = "A wiki article name on a particular piece of Armor.", trim = true, nilIfEmpty = true, },			level = { required = true, type = "number", desc = "The level of the Armor upgrade, as an integer.", trim = true, nilIfEmpty = true, },			defense = { required = true, type = "number", desc = "The defensive value for the Armor at the specified level.", trim = true, nilIfEmpty = true, },			materials = { required = true, type = "string", desc = "A comma-separated list of the materials required to obtain the upgrade. Format: .", trim = true, nilIfEmpty = true, },			sellPrice = { required = true, type = "number", desc = "An integer – the amount of Rupees that Link can sell the Armor for at the specified level.", trim = true, nilIfEmpty = true, },		},		examples = { {				armor = "Ancient Helm", level = "1", materials = "5 Ancient Screw, 5 Ancient Spring", defense = "7", sellPrice = "160", },		},	}, }

return p