<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ADs%2Faware</id>
	<title>Module:Ds/aware - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ADs%2Faware"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Ds/aware&amp;action=history"/>
	<updated>2026-04-16T19:06:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Ds/aware&amp;diff=136013&amp;oldid=prev</id>
		<title>imported&gt;ProcrastinatingReader: fix bug on talk</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Ds/aware&amp;diff=136013&amp;oldid=prev"/>
		<updated>2020-09-29T18:21:38Z</updated>

		<summary type="html">&lt;p&gt;fix bug on talk&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
&lt;br /&gt;
function p.detect(frame)&lt;br /&gt;
	local title&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	if args.testTitle then&lt;br /&gt;
		title = mw.title.new(args.testTitle)&lt;br /&gt;
	else&lt;br /&gt;
		title = mw.title.getCurrentTitle()&lt;br /&gt;
	end&lt;br /&gt;
	local content = title:getContent() or &amp;#039;&amp;#039;&lt;br /&gt;
	local codes = string.match(content, &amp;quot;{{%s-D[sS]/[aA]ware%s-|([^}]-)}}&amp;quot;)&lt;br /&gt;
	if not codes then return end&lt;br /&gt;
	local text = p._listToText(frame, mw.text.split(codes, &amp;quot;|&amp;quot;))&lt;br /&gt;
	return frame:preprocess(&lt;br /&gt;
		&amp;quot;&amp;lt;div style = &amp;#039;font-weight: bold&amp;#039;&amp;gt;It is not necessary to notify this user of sanctions for the following topic area(s):&amp;quot;&lt;br /&gt;
		..text..&lt;br /&gt;
		&amp;quot;\n The user has indicated that they are already aware of these sanctions using the template &amp;lt;nowiki&amp;gt;{{Ds/aware}}&amp;lt;/nowiki&amp;gt; on their talk page.&amp;lt;/div&amp;gt;&amp;quot;&lt;br /&gt;
	)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.listToText(frame)&lt;br /&gt;
	return p._listToText(frame, getArgs(frame))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._listToText(frame, t)&lt;br /&gt;
	local new = {}&lt;br /&gt;
	local t = require(&amp;#039;Module:TableTools&amp;#039;).compressSparseArray(t)&lt;br /&gt;
	for i,v in ipairs(t) do&lt;br /&gt;
		table.insert(new, frame:expandTemplate{title = &amp;#039;Ds/topics&amp;#039;, args = {[&amp;quot;sanctions scope&amp;quot;] = v}})&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;\n*&amp;#039;..table.concat(new, &amp;#039;\n*&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;ProcrastinatingReader</name></author>
	</entry>
</feed>