Content deleted Content added
HouseBlaster (talk | contribs) save a WIP |
HouseBlaster (talk | contribs) save a WIP |
||
Line 10:
local function collectTopics(args)
local seen = {}
local
local partialTopics = {}
local function add(value)
if value then
value = mw.text.trim(value)
if value ~= '' and not seen[value] then
if args[value ..
else▼
table.insert(completeTopics, value)
end
seen[value] = true
end
end
Line 34 ⟶ 39:
end
return
end
function p.main(frame)
local args = require('Module:Arguments').getArgs(frame)
local
local restrictions = {} -- A list of which restrictions are enabled for easier iteration
local restrictionFlags = {} -- Track which restrictions are enabled, as a set
Line 106 ⟶ 109:
end
end
for _, topic in ipairs(topics) do
local additional = restrictionsDatabase["additional-available"][topic]
if additional then
|