Module:Contentious topics/talk notice: Difference between revisions

Content deleted Content added
*heart emoji* categories *heart emoji*
doc
Line 7:
local standardSet = mw.loadJsonData("Template:Contentious topics/Standard set.json")
local categoryDatabase = mw.loadJsonData("Template:Contentious topics/Category database.json")
 
local function collectTopics(args)
local seen = {}
Line 220 ⟶ 221:
})
--[[
-- we set the restriction categories back in the if underRestrictions loop
Categories!!!
-- to avoid looping through the restrictions twice
-- weWe set the restriction categories back in the if underRestrictions loop
-- because nocat is only for the ultra-rare case of demonstration
-- to avoid looping through the restrictions twice. So we only need to do some cleanup and handle nocat
-- manually clearing the categories is more efficient
-- becauseBecause nocat is only for the ultra-rare case of demonstration,
-- manually clearing the categories is more efficient
--]]
if yesno(args.nocat) then
categories = ''