Module:Contentious topics/talk notice: Difference between revisions

Content deleted Content added
error for no-topic
fix order
Line 133:
local articleOrPage = currentTitleObject:inNamespaces(1) and "article" or "page"
-- helper to add a category
local function addCategory(cat)
if cat then
categories = categories .. '[[Category:' .. cat .. '|' .. currentTitleObject.text .. ']]'
end
end
 
-- Makes a bullet point for a given contentious topic
local function makeTopicBulletPoint(code)
Line 149 ⟶ 156:
return def and ('* <b>' .. def .. '</b>\n') or ''
end
local function addCategory(cat)
if cat then
categories = categories .. '[[Category:' .. cat .. '|' .. currentTitleObject.text .. ']]'
end
end
--[[