Module:Navbox/sandbox: Difference between revisions

Content deleted Content added
replace includes with inarray
simplify. No need to assign the value to a variable if we're testing it (both trigger parsing the ref tag)
Line 14:
for i = 1, 20 do
_ = args[prefix .. format(cfg.arg.group_and_num, i)]
_if =inArray(cfg.keyword.subgroups, args[prefix .. format(cfg.arg.list_and_num, i)]) then
if inArray(cfg.keyword.subgroups, _) then
for _, v in ipairs(cfg.keyword.subgroups) do
readArgs(args, prefix .. v .. i .. "_")