Module:Infobox/armor

From Feed The Beast Wiki
< Module:Infobox
Revision as of 17:28, 2 January 2018 by Sokratis12GR (talk | contribs) (fixed typo, and made the description args have "desc" in the end)
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="Helmet",
		title=[=[<translate><!--T:6--> Helmet</translate>]=],
		{
			{{arg={"helmetimage","helmeticon"}, desc=[=[<translate><!--T:7--> The helmet icon image. Use {{Tl|Gc}} or {{Tl|O}}.</translate>]=]}},
			{{arg="helmetdesc", desc=[=[<translate><!--T:12--> The helmet from this armor set.</translate>]=]}},
			{[=[<translate><!--T:8--> Armor rating</translate>]=], {arg="helmetarmor",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="helmettoughness", desc=[=[<translate><!--T:11--> The toughness rating of the armor</translate>]=]}}
		}
	},
	{
		name="Chestplate",
		title=[=[<translate><!--T:13--> Chestplate</translate>]=],
		{
			{{arg={"chestplateimage","chestplateicon"}, desc=[=[<translate><!--T:14--> The chestplate icon image. Use {{Tl|Gc}} or {{Tl|O}}.</translate>]=]}},
			{{arg="chestplatedesc", desc=[=[<translate><!--T:19--> The chestplate from this armor set.</translate>]=]}},
			{[=[<translate><!--T:15--> Armor rating</translate>]=], {arg="chestplatearmor",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="chestplatetoughness", desc=[=[<translate><!--T:18--> The toughness rating of the armor</translate>]=]}}
		}
	},
	{
		name="Leggings",
		title=[=[<translate><!--T:20--> Leggings</translate>]=],
		{
			{{arg={"leggingsimage","leggingsicon"}, desc=[=[<translate><!--T:21--> The leggings icon image. Use {{Tl|Gc}} or {{Tl|O}}.</translate>]=]}},
			{{arg="leggingsdesc", desc=[=[<translate><!--T:26--> The leggings from this armor set.</translate>]=]}},
			{[=[<translate><!--T:22--> Armor rating</translate>]=], {arg="leggingsarmor",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="leggingstoughness", desc=[=[<translate><!--T:25--> The toughness rating of the armor</translate>]=]}}
		}
	},
	{
		name="Boots",
		title=[=[<translate><!--T:27--> Boots</translate>]=],
		{
			{{arg={"bootsimage","bootsicon"}, desc=[=[<translate><!--T:28--> The boots icon image. Use {{Tl|Gc}} or {{Tl|O}}.</translate>]=]}},
			{{arg="bootsdesc", desc=[=[<translate><!--T:33--> The boots from this armor set.</translate>]=]}},
			{[=[<translate><!--T:29--> Armor rating</translate>]=], {arg="bootsarmor",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="bootstoughness", desc=[=[<translate><!--T:32--> The toughness rating of the armor</translate>]=]}}
		}
	}
}

p.examples = {
	{[=[
{{Infobox armor
|name=Infused Lava Crystal Set
|mod={{L|ArmorPlus}}
|helmeticon={{Gc|mod=ARP|Infused Lava Helmet}}
|helmetarmor=3
|helmettoughness=1
|chestplateicon={{Gc|mod=ARP|Infused Lava Chestplate}}
|chestplatearmor=8
|chestplatetoughness=1
|leggingsicon={{Gc|mod=ARP|Infused Lava Leggings}}
|leggingsarmor=6
|leggingstoughness=1
|bootsicon={{Gc|mod=ARP|Infused Lava Boots}}
|bootsarmor=3
|bootstoughness=1
}}]=]}
}

return p