Content deleted Content added
HouseBlaster (talk | contribs) section variable |
HouseBlaster (talk | contribs) category for BER (are we still using this?) |
||
Line 40:
local args = require('Module:Arguments').getArgs(frame)
local topics = collectTopics(args)
local restrictions = {} -- A list of which restrictions are enabled for easier iteration
local restrictionFlags = {} -- Track which restrictions are enabled, as a set
Line 163 ⟶ 162:
.. (section and (' Parts of this ' .. articleOrPage .. ' relate ') or (' This ' .. articleOrPage .. ' relates '))
if
messageBody = messageBody .. 'to the following contentious topics:\n'
for _, topic in ipairs(topics) do
Line 229 ⟶ 228:
-- If ECR is enabled, prepend the ECR warning
if restrictionFlags["ECR"] then
messageBox = frame:expandTemplate{
title = "Template:Contentious topics/talk notice/ECR warning", args = { section = section and "yes" or "", small = args.small}} .. messageBox -- Hard code for [[WP:BER]]
if TableTools.inArray(topics, "a-i") then
addCategory("Wikipedia pages subject to the extended confirmed restriction related to the Arab-Israeli conflict")
end
end
|