Module:Contentious topics/aware
Appearance
![]() | This Lua module is used in MediaWiki:Abusefilter-warning-CT. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them. |
See doc at Template:Contentious topics/aware/doc
local p = {}
function p.main(frame)
local content = mw.title.getCurrentTitle():getContent()
codes = string.match(content, "{{Ds/aware|topic =%s+([^|}]+)")
if not codes then return end
return frame:preprocess("<span style = 'font-size:200%; font-weight: bold'>User has indicated that they are aware of the topics {{mono|"
..codes.."}}. They should not be alerted of these discretionary sanction areas again.</span>")
end
return p