Module:Luatest

--[=[ Testing switches in Lua for item templates ]=]

local p = {}

local switchfo = require('Module:InfoboxMultiSwitch')

local infobox_params = { 'name', 'image', 'aka', 'release', 'cost', 'NX', 'case', 'restrictions', 'popularity', 'features', 'ammo', 'damage', 'portability', 'rate of fire', 'accuracy', 'firing', 'reload speed', 'mods', 'irl', 'irl-msg', 'abilities' }

function p.main(frame) local args = frame:getParent.args

return switchfo.make_boxes( args, infobox_params, 'Infobox Item' ) end

return p