Module:Video game reviews/sandbox: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
further simplify, and use data
Jackmcbarn (talk | contribs)
use new data format
Line 35:
local function getActiveSystems(args)
local activeSystems = {}
for _,vk in ipairspairs(data.systems) do
local argValue = args[v[2]k]
if argValue and argValue:lower() == 'true' then
table.insert(activeSystems, vk)
end
end
Line 513:
if splitPos then
local halfarg = argKey:sub(1, splitPos - 1)
forif _,v in ipairs(data.reviewers)[halfarg] and not seenReviewers[halfarg] dothen
if vseenReviewers[2halfarg] == halfarg thentrue
iftable.insert(halfkeysrev, not seenReviewers[halfarg] then)
seenReviewers[halfarg] = true
table.insert(halfkeysrev, halfarg)
end
end
end
end
Line 525 ⟶ 521:
else
for _,argKey in ipairs(sortedArgKeys) do
if not argKey:find('_') and data.reviewers[argKey] then
table.insert(halfkeysrev, halfargargKey)
for _,v in ipairs(data.reviewers) do
if v[2] == argKey then
table.insert(halfkeysrev, argKey)
end
end
end
end