Module:Infobox/armor

From Feed The Beast Wiki
< Module:Infobox
Revision as of 17:52, 2 January 2018 by Sokratis12GR (talk | contribs) (Marked this version for translation)
Jump to: navigation, search

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

local p = {}

p.docLead = [=[<translate><!--T:1--> This one is for armors</translate>]=]

p.format = {
	{
		title = {arg="name", desc=[=[<translate><!--T:2--> The title that will be displayed at the top of the info box.</translate>]=]},
		{
			{{arg={"image"}, type="image", desc=[=[<translate><!--T:3--> The big picture.</translate>]=]}}
		},
		{
			{[=[<translate><!--T:4--> Mod</translate>]=], {arg="mod", desc=[=[<translate><!--T:5--> 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)'''</translate>]=]}}
		}
	},
	{
		name="Head",
		title=[=[<translate><!--T:6--> Head</translate>]=],
		{
			{{arg={"headimage","headicon"}, desc=[=[<translate><!--T:7--> The head piece icon image. Use {{Tl|Gc}} or {{Tl|O}}.</translate>]=]}},
			{{arg="headdesc", desc=[=[<translate><!--T:12--> The head piece from this armor set.</translate>]=]}},
			{[=[<translate><!--T:8--> Armor rating</translate>]=], {arg="headarmor",type="templateCall",template="Armor",desc=[=[<translate><!--T:9--> The armor rating of the armor. Include only the number, as it will interface automatically with {{Tl|Armor}}.</translate>]=]}},
			{[=[<translate><!--T:10--> Armor toughness</translate>]=], {arg="headtoughness", desc=[=[<translate><!--T:11--> The toughness rating of the armor</translate>]=]}},
			{[=[<translate><!--T:34--> Durability</translate>]=],{arg="headdurability",desc=[=[<translate><!--T:35--> The durability of the armor piece.</translate>]=]}}
		}
	},
	{
		name="Chest",
		title=[=[<translate><!--T:13--> Chest</translate>]=],
		{
			{{arg={"chestimage","chesticon"}, desc=[=[<translate><!--T:14--> The chest piece icon image. Use {{Tl|Gc}} or {{Tl|O}}.</translate>]=]}},
			{{arg="chestdesc", desc=[=[<translate><!--T:19--> The chest piecv from this armor set.</translate>]=]}},
			{[=[<translate><!--T:15--> Armor rating</translate>]=], {arg="chestarmor",type="templateCall",template="Armor",desc=[=[<translate><!--T:16--> The armor rating of the armor. Include only the number, as it will interface automatically with {{Tl|Armor}}.</translate>]=]}},
			{[=[<translate><!--T:17--> Armor toughness</translate>]=], {arg="chesttoughness", desc=[=[<translate><!--T:18--> The toughness rating of the armor</translate>]=]}},
			{[=[<translate><!--T:36--> Durability</translate>]=],{arg="chestdurability",desc=[=[<translate><!--T:37--> The durability of the armor piece.</translate>]=]}}
		}
	},
	{
		name="Legs",
		title=[=[<translate><!--T:20--> Legs</translate>]=],
		{
			{{arg={"legsimage","legsicon"}, desc=[=[<translate><!--T:21--> The legs piece icon image. Use {{Tl|Gc}} or {{Tl|O}}.</translate>]=]}},
			{{arg="legsdesc", desc=[=[<translate><!--T:26--> The legs piece from this armor set.</translate>]=]}},
			{[=[<translate><!--T:22--> Armor rating</translate>]=], {arg="legsarmor",type="templateCall",template="Armor",desc=[=[<translate><!--T:23--> The armor rating of the armor. Include only the number, as it will interface automatically with {{Tl|Armor}}.</translate>]=]}},
			{[=[<translate><!--T:24--> Armor toughness</translate>]=], {arg="legstoughness", desc=[=[<translate><!--T:25--> The toughness rating of the armor</translate>]=]}},
			{[=[<translate><!--T:38--> Durability</translate>]=],{arg="legsdurability",desc=[=[<translate><!--T:39--> The durability of the armor piece.</translate>]=]}}
		}
	},
	{
		name="Feet",
		title=[=[<translate><!--T:27--> Feet</translate>]=],
		{
			{{arg={"feetimage","feeticon"}, desc=[=[<translate><!--T:28--> The feet piece icon image. Use {{Tl|Gc}} or {{Tl|O}}.</translate>]=]}},
			{{arg="feetdesc", desc=[=[<translate><!--T:33--> The feet piece from this armor set.</translate>]=]}},
			{[=[<translate><!--T:29--> Armor rating</translate>]=], {arg="feetarmor",type="templateCall",template="Armor",desc=[=[<translate><!--T:30--> The armor rating of the armor. Include only the number, as it will interface automatically with {{Tl|Armor}}.</translate>]=]}},
			{[=[<translate><!--T:31--> Armor toughness</translate>]=], {arg="feettoughness", desc=[=[<translate><!--T:32--> The toughness rating of the armor</translate>]=]}},
			{[=[<translate><!--T:40--> Durability</translate>]=],{arg="feetdurability",desc=[=[<translate><!--T:41--> The durability of the armor piece.</translate>]=]}}
		}
	}
}

p.examples = {
	{[=[
{{Infobox armor
|name=Infused Lava Crystal Set
|mod={{L|ArmorPlus}}
|headicon={{Gc|mod=ARP|Infused Lava Helmet}}
|headarmor=3
|headtoughness=1
|chesticon={{Gc|mod=ARP|Infused Lava Chestplate}}
|chestarmor=8
|chesttoughness=1
|legsicon={{Gc|mod=ARP|Infused Lava Leggings}}
|legsarmor=6
|legstoughness=1
|feeticon={{Gc|mod=ARP|Infused Lava Boots}}
|feetarmor=3
|feettoughness=1
}}]=]}
}

return p