Module:Infobox/armor

From Feed The Beast Wiki
Jump to: navigation, search

Documentation for this module may be created at Module:Infobox/armor/en/doc

local p = {}

p.docLead = [=[This one is for armors]=]

p.format = {
	{
		title = {arg="name", desc=[=[The title that will be displayed at the top of the info box.]=]},
		{
			{{arg={"image"}, type="image", desc=[=[The big picture.]=]}}
		},
		{
			{[=[Mod]=], {arg="mod", desc=[=[The mod the armor set belongs to. Always refer to the main page of the mod. Please do ''not'' use version numbers like "Flaxbeard's Steam Power 0.28.0"; just use the regular name instead. '''(Will detect page language and link to respective languages)''']=]}}
		},
		{
			{[=[Total armor rating]=], {arg="totalarmor",type="templateCall",template="Armor",desc=[=[The total armor rating of the armor. Include only the number, as it will interface automatically with {{Tl|Armor}}.]=]}},
			{[=[Total armor toughness]=], {arg="totaltoughness", desc=[=[The total toughness rating of the armor]=]}},
			{[=[Total Durability]=],{arg="totaldurability",desc=[=[The durability of the armor set.]=]}},
			{[=[Repairable with]=], {arg={"setrepair"}, desc=[=[The repair item or block for the armor set icon image. Use {{Tl|Gc}} or {{Tl|O}}.]=]}}
		}
	},
	{
		name="Head",
		title=[=[Head]=],
		{
			{{arg={"headimage","headicon"}, desc=[=[The head piece icon image. Use {{Tl|Gc}} or {{Tl|O}}.]=]}},
			{{arg="headdesc", desc=[=[The head piece from this armor set.]=]}},
			{[=[Armor rating]=], {arg="headarmor",type="templateCall",template="Armor",desc=[=[The armor rating of the armor. Include only the number, as it will interface automatically with {{Tl|Armor}}.]=]}},
			{[=[Armor toughness]=], {arg="headtoughness", desc=[=[The toughness rating of the armor]=]}},
			{[=[Durability]=],{arg="headdurability",desc=[=[The durability of the armor piece.]=]}},
			{[=[Enchantability]=], {arg="headenchantability", desc=[=[The enchantability, or how powerful enchantments will be, for this armor.]=]}},
			{[=[Repairable with]=], {arg={"headrepair"}, desc=[=[The repair item or block for the armor piece icon image. Use {{Tl|Gc}} or {{Tl|O}}.]=]}}
		}
	},
	{
		name="Chest",
		title=[=[Chest]=],
		{
			{{arg={"chestimage","chesticon"}, desc=[=[The chest piece icon image. Use {{Tl|Gc}} or {{Tl|O}}.]=]}},
			{{arg="chestdesc", desc=[=[The chest piecv from this armor set.]=]}},
			{[=[Armor rating]=], {arg="chestarmor",type="templateCall",template="Armor",desc=[=[The armor rating of the armor. Include only the number, as it will interface automatically with {{Tl|Armor}}.]=]}},
			{[=[Armor toughness]=], {arg="chesttoughness", desc=[=[The toughness rating of the armor]=]}},
			{[=[Durability]=],{arg="chestdurability",desc=[=[The durability of the armor piece.]=]}},
			{[=[Enchantability]=], {arg="chestenchantability", desc=[=[The enchantability, or how powerful enchantments will be, for this armor.]=]}},
			{[=[Repairable with]=], {arg={"chestrepair"}, desc=[=[The repair item or block for the armor piece icon image. Use {{Tl|Gc}} or {{Tl|O}}.]=]}}
		}
	},
	{
		name="Legs",
		title=[=[Legs]=],
		{
			{{arg={"legsimage","legsicon"}, desc=[=[The legs piece icon image. Use {{Tl|Gc}} or {{Tl|O}}.]=]}},
			{{arg="legsdesc", desc=[=[The legs piece from this armor set.]=]}},
			{[=[Armor rating]=], {arg="legsarmor",type="templateCall",template="Armor",desc=[=[The armor rating of the armor. Include only the number, as it will interface automatically with {{Tl|Armor}}.]=]}},
			{[=[Armor toughness]=], {arg="legstoughness", desc=[=[The toughness rating of the armor]=]}},
			{[=[Durability]=],{arg="legsdurability",desc=[=[The durability of the armor piece.]=]}},
			{[=[Enchantability]=], {arg="legsenchantability", desc=[=[The enchantability, or how powerful enchantments will be, for this armor.]=]}},
			{[=[Repairable with]=], {arg={"legsrepair"}, desc=[=[The repair item or block for the armor piece icon image. Use {{Tl|Gc}} or {{Tl|O}}.]=]}}
		}
	},
	{
		name="Feet",
		title=[=[Feet]=],
		{
			{{arg={"feetimage","feeticon"}, desc=[=[The feet piece icon image. Use {{Tl|Gc}} or {{Tl|O}}.]=]}},
			{{arg="feetdesc", desc=[=[The feet piece from this armor set.]=]}},
			{[=[Armor rating]=], {arg="feetarmor",type="templateCall",template="Armor",desc=[=[The armor rating of the armor. Include only the number, as it will interface automatically with {{Tl|Armor}}.]=]}},
			{[=[Armor toughness]=], {arg="feettoughness", desc=[=[The toughness rating of the armor]=]}},
			{[=[Durability]=],{arg="feetdurability",desc=[=[The durability of the armor piece.]=]}},
			{[=[Enchantability]=], {arg="feetenchantability", desc=[=[The enchantability, or how powerful enchantments will be, for this armor.]=]}},
			{[=[Repairable with]=], {arg={"feetrepair"}, desc=[=[The repair item or block for the armor piece icon image. Use {{Tl|Gc}} or {{Tl|O}}.]=]}}
		}
	}
}

p.examples = {
	{[=[
{{Infobox armor
|name=Infused Lava Crystal Set
|mod={{L|ArmorPlus}}
|totalarmor=20
|totaltoughness=4
|totaldurability=2475
|setrepair={{Gc|mod=ARP|title=Infused Lava Crystal|Lava Crystal}}
|headicon={{Gc|mod=ARP|link=none|Infused Lava Helmet}}
|headarmor=3
|headtoughness=1
|headdurability=495
|headenchantability=8
|chesticon={{Gc|mod=ARP|link=none|Infused Lava Chestplate}}
|chestarmor=8
|chesttoughness=1
|chestdurability=720
|chestenchantability=8
|legsicon={{Gc|mod=ARP|link=none|Infused Lava Leggings}}
|legsarmor=6
|legstoughness=1
|legsdurability=675
|legsenchantability=8
|feeticon={{Gc|mod=ARP|link=none|Infused Lava Boots}}
|feetarmor=3
|feettoughness=1
|feetdurability=585
|feetenchantability=8
}}]=]}
}

return p