Documentation for this module may be created at Module:Infobox/spell/doc
local p = {}
p.docLead = [=[<translate><!--T:1--> It is used to document {{L|Electroblob's Wizardry}} {{L|Spells (Electroblob's Wizardry)|Spells}}</translate>]=]
local tiers = {
novice = [=[<translate><!--T:2--> Novice</translate>]=],
basic = [=[<translate><!--T:3--> Novice</translate>]=],
apprentice = [=[<translate><!--T:4--> Apprentice</translate>]=],
advanced = [=[<translate><!--T:5--> Advanced</translate>]=],
master = [=[<translate><!--T:6--> Master</translate>]=]
}
local elements = {
magic = [=[<translate><!--T:8--> Magic</translate>]=],
fire = [=[<translate><!--T:9--> Fire</translate>]=],
ice = [=[<translate><!--T:10--> Ice</translate>]=],
lightning = [=[<translate><!--T:11--> Lightning</translate>]=],
necromancy = [=[<translate><!--T:12--> Necromancy</translate>]=],
earth = [=[<translate><!--T:13--> Earth</translate>]=],
sorcery = [=[<translate><!--T:14--> Sorcery</translate>]=],
healing = [=[<translate><!--T:15--> Healing</translate>]=]
}
local types = {
attack = [=[<translate><!--T:17--> Attack</translate>]=],
defence = [=[<translate><!--T:18--> Defence</translate>]=],
utility = [=[<translate><!--T:19--> Utility</translate>]=],
minion = [=[<translate><!--T:20--> Minion</translate>]=]
}
p.format = {
{
title = {arg="name", desc=[=[<translate><!--T:22--> Name of the spell.</translate>]=]},
{
{{arg={"iconimage","imageicon"}, desc=[=[<translate><!--T:23--> The icon image. Use {{Tl|Gc}} or {{Tl|O}}.</translate>]=]}}
},
{
{[=[<translate><!--T:44--> Mod</translate>]=], {arg="mod", desc=[=[<translate><!--T:45--> The mod the spell belongs to.</translate>]=]}},
{[=[<translate><!--T:24--> Type</translate>]=], {arg="type", type="switch", allowedValues = types, desc=[=[<translate><!--T:25--> Type of the spell.</translate>]=]}},
{[=[<translate><!--T:26--> Tier</translate>]=], {arg="tier", type="switch", allowedValues = tiers, desc=[=[<translate><!--T:27--> Tier of the spell.</translate>]=]}},
{[=[<translate><!--T:28--> Element</translate>]=], {arg="element", type="switch", allowedValues = elements, desc=[=[<translate><!--T:29--> Element of the spell.</translate>]=]}}
},
{
{[=[<translate><!--T:30--> Mana Cost</translate>]=], {arg="mana", desc=[=[<translate><!--T:31--> Mana Cost to cast the spell, add a "/second" if the spell is continuous.</translate>]=]}},
{[=[<translate><!--T:32--> Cooldown</translate>]=], {arg="cd", desc=[=[<translate><!--T:33--> The spell's cooldown time in ticks. The {{Tl|ticks}} template can be used for readability.</translate>]=]}},
{[=[<translate><!--T:34--> Usable by Wizards</translate>]=],{arg="wizard", desc = [=[<translate><!--T:35--> Whether Wizard mobs can use this spell. Preferably Yes or No.</translate>]=]}}
}
},
{
name="Technical",
title = [=[<translate><!--T:36--> Technical details</translate>]=],
{
{[=[<translate><!--T:37--> Registry name</translate>]=], {arg="registryname", desc = [=[<translate><!--T:38--> The spell's registry name.</translate>]=]}},
{[=[<translate><!--T:39--> First appearance</translate>]=], {arg="firstappearance", desc = [=[<translate><!--T:40--> The version string that the spell first appeared in.</translate>]=]}},
{[=[<translate><!--T:41--> Last appearance</translate>]=], {arg="lastappearance", desc = [=[<translate><!--T:42--> The version string that the spell last appeared in.</translate>]=]}}
}
}
}
p.examples = {
{ [=[<translate>
<!--T:43-->
{{Infobox spell
|name=Test
|imageicon={{Gc|mod=EBW|link=none|no-bg=true|Magic Missile}}
|mod=Electroblob's Wizardry
|type=utility
|tier=master
|element=sorcery
|mana=42
|cd={{ticks|100}}
|wizard=Yes
|registryname=test_spell
|firstappearance=1.0
|lastappearance=6.6
}}</translate>]=]}
}
return p