Module:Contentious topics/talk notice: Difference between revisions

Content deleted Content added
fix
section variable
Line 52:
local categories = '' -- initialize categories
local manualRestrictions = false -- have we set any restrictions via |parameters?
local section = yesno(args.section) or yesno(args.relatedcontent) -- whether we are a section
--[[
Parameter aliasing
--]]
if args.relatedcontent then
args.section = true
end
--[[
Line 167 ⟶ 161:
messageBody = '<b>The [[Wikipedia:Contentious topics|contentious topics]] procedure applies to this '
.. articleOrPage .. '.</b>'
.. (yesno(args.section) and (' Parts of this ' .. articleOrPage .. ' relate ') or (' This ' .. articleOrPage .. ' relates '))
 
if multipleTopics then
Line 201 ⟶ 195:
end
if yesno(args.section) then
messageBody = messageBody .. '<p>If it is unclear which parts of the page are related to this contentious topic, the content in question should be marked within the wiki text by an invisible comment.'
.. 'If no comment is present, please ask an administrator for assistance. If in doubt it is better to assume that the content is covered.</p>'
Line 235 ⟶ 229:
-- 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 = args.section and "yes" or "", small = args.small}} .. messageBox
end