Module:Contentious topics/talk notice/sandbox: Difference between revisions

Content deleted Content added
try this?
test
Line 8:
local standardSet = mw.loadJsonData("Template:Contentious topics/Standard set.json")
local categoryDatabase = mw.loadJsonData("Template:Contentious topics/Category database.json")
local topicAliases = mw.loadJsonData("Template:Contentious topics/Aliases.json")
 
local function collectTopics(args, sectionParameter)
Line 19 ⟶ 20:
if value then
value = mw.text.trim(value)
value = topicAliases[value] or value
if value ~= '' and not seen[value] then
local applicableSection = args[value .. '-section'] or sectionParameter
Line 130 ⟶ 132:
for _, restriction in ipairs(always) do
-- Allow disabling these restrictions (via |1RR=no or similar)
if not yesno(args[restriction], true) then
restrictionFlags[restriction] = true
else