Jump to content

Module:Contentious topics/aware

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Galobtter (talk | contribs) at 09:55, 2 July 2019 (Galobtter moved page Module:Sandbox/Galobtter/Ds-aware to Module:Ds/aware/detect without leaving a redirect: clarity). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local p = {}

function p.main(frame)
	local content = mw.title.getCurrentTitle():getContent()
	local 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'>It is not necessary to notify this user of sanctions for the following topic area(s): {{mono|"
		..codes.."}}. The user has indicated that they are already aware of these sanctions using the template <nowiki>{{Ds/aware}}</nowiki> on their talk page.</span>")
end

return p