Module:Armor/level

local p = {} function p.dr( frame ) local armorData = mw.loadData( 'Module:Armor/data' ) local armorLevel = frame.args[1] local armorSplit = armorData[armorLevel] local tab = mw.text.split( armorSplit, " ") return (tab[1]) end function p.er( frame ) local armorData = mw.loadData( 'Module:Armor/data' ) local armorLevel = frame.args[1] local armorSplit = armorData[armorLevel] local tab = mw.text.split( armorSplit, " ") return (tab[2]) end function p.rr( frame ) local armorData = mw.loadData( 'Module:Armor/data' ) local armorLevel = frame.args[1] local armorSplit = armorData[armorLevel] local tab = mw.text.split( armorSplit, " ") return (tab[3]) end return p