Module:Contentious topics/talk notice: Difference between revisions

Content deleted Content added
doc
alias for relatedcontent and add support for placed-date
Line 51:
local messageBox
local categories = '' -- initialize categories
--[[
Parameter aliasing
--]]
if args.relatedcontent then
args.section = true
end
--[[
This area sets active restrictions
Line 189 ⟶ 197:
 
if underRestrictions then
messageBody = '<p style="margin-top:0"><strong style="text-transform: uppercase;">Warning: active arbitration remedies</strong></p>'
.. messageBody
.. '<p style="text-decoration:underline; text-align:center; font-size:120%;">The following restrictions apply to everyone editing this ' .. articleOrPage .. ':</p>\n'
Line 208 ⟶ 216:
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>'
end
 
if underRestrictions and yesno(args.placed-date) then
messageBody = messageBody .. '<p>Restrictions placed: ' .. require('Module:Date')._Date(args.placed-date):text() .. '</p>'
addCategory('Wikipedia pages with contentious topic restrictions without a placed date')
end
 
messageBox = require('Module:Message box').main("tmbox", {