<?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%3AATA</id>
	<title>Module:ATA - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AATA"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:ATA&amp;action=history"/>
	<updated>2026-04-15T12:38:19Z</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:ATA&amp;diff=133156&amp;oldid=prev</id>
		<title>imported&gt;Wnt: no nowiki</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:ATA&amp;diff=133156&amp;oldid=prev"/>
		<updated>2013-07-30T19:01:01Z</updated>

		<summary type="html">&lt;p&gt;no nowiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- The purpose of this module (&amp;quot;Articles To Avoid&amp;quot;) is to allow people&lt;br /&gt;
-- who want to avoid editing specific articles to add the following in their signature:&lt;br /&gt;
&lt;br /&gt;
-- {{subst:#invoke:ATA|block|User:Wnt/MyATABlacklist|allow=Some Article}}&lt;br /&gt;
&lt;br /&gt;
-- The Lua script will go to the first anon parameter and import its content.&lt;br /&gt;
-- This is a list of articles you don&amp;#039;t want to edit&lt;br /&gt;
-- (say, because you&amp;#039;re topic banned, or you&amp;#039;re worried Putin is out to get you), &lt;br /&gt;
-- does a frame.preprocess on it to ensure (???) any transclusions are done, &lt;br /&gt;
-- gets the current page you are editing, and sees if currentpage is in the list.&lt;br /&gt;
-- If so, it returns the link to Encyclopedia Dramatica&lt;br /&gt;
-- (eventually, a proposal should be made to add an error message added to the blacklist&lt;br /&gt;
-- that explains the program that is doing it and what you need to do to your signature to undo it).&lt;br /&gt;
-- Note that the signature preferences are not directly accessible to very many people, &lt;br /&gt;
-- maintaining a certain sort of privacy&lt;br /&gt;
-- (if you elect to make a call to an existing blacklist posted by someone else, for example, or&lt;br /&gt;
-- if you opt out of the blacklist hoping you&amp;#039;ll get away with it)&lt;br /&gt;
-- but of course, right now anyone can see what articles you&amp;#039;ve edited.&lt;br /&gt;
-- starting below from a straight copy of my Module:TrainingPages:&lt;br /&gt;
 &lt;br /&gt;
local p = {}&lt;br /&gt;
 &lt;br /&gt;
function anonymize(name)&lt;br /&gt;
    return mw.ustring.gsub(name,&amp;quot;^&amp;quot;..mw.site.siteName,&amp;quot;Project&amp;quot;) or name&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
function p.block(frame)&lt;br /&gt;
    local debuglog=&amp;quot;&amp;quot;&lt;br /&gt;
    local parent=frame.getParent(frame)&lt;br /&gt;
    local currentpage,indexmodule,defaultpage,noerr&lt;br /&gt;
    ---- args in the #invoke itself trump args in the parent frame&lt;br /&gt;
    currentpage = frame.args.page -- this is only useful for testing!&lt;br /&gt;
    debugout = frame.args.debug&lt;br /&gt;
    indexmodule = frame.args[1] or frame.args.index&lt;br /&gt;
    noerr=frame.args.noerr&lt;br /&gt;
    anonymizereturn = frame.args.anonymize&lt;br /&gt;
    whitelist = frame.args.allow&lt;br /&gt;
    ---- args in the parent frame come next&lt;br /&gt;
    if parent then&lt;br /&gt;
        currentpage=currentpage or parent.args.page&lt;br /&gt;
        indexmodule=indexmodule or parent.args[1] or parent.args.index&lt;br /&gt;
          -- index here is NOT generally a module, unlike TrainingPages, &lt;br /&gt;
          -- because it needs to be accessible to newbies and possibly support transclusions&lt;br /&gt;
        noerr=noerr or parent.args.noerr&lt;br /&gt;
        debugout = debugout or parent.args.debug&lt;br /&gt;
        anonymizereturn = anonymizereturn or parent.args.anonymize&lt;br /&gt;
        whitelist = whitelist or parent.args.allow&lt;br /&gt;
        end&lt;br /&gt;
    ---- default values if parameters aren&amp;#039;t provided&lt;br /&gt;
    whitelist = whitelist or &amp;quot;&amp;quot;&lt;br /&gt;
    if not(indexmodule) then&lt;br /&gt;
        if noerr then&lt;br /&gt;
            return &amp;quot;&amp;quot;&lt;br /&gt;
        else&lt;br /&gt;
            return &amp;quot;[[Module:ATA]] error:no index parameter specified&amp;quot;&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    if not(currentpage) then&lt;br /&gt;
        local pp=mw.title.getCurrentTitle()&lt;br /&gt;
        if not pp then&lt;br /&gt;
            if noerr then&lt;br /&gt;
                return &amp;quot;&amp;quot;&lt;br /&gt;
            else return &amp;quot;[[Module:ATA]] error:failed to access getCurrentTitle&amp;quot; -- this shouldn&amp;#039;t happen anyway, I don&amp;#039;t think....&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
        currentpage=pp.fullText&lt;br /&gt;
    end&lt;br /&gt;
    -- process parameters&lt;br /&gt;
    whiteitem = {}&lt;br /&gt;
    for i in string.gmatch(whitelist, &amp;quot;%[%[(.-)%]%]&amp;quot;) do&lt;br /&gt;
        debuglog = debuglog .. &amp;quot;WHITELIST&amp;quot; .. i&lt;br /&gt;
        whiteitem [mw.uri.encode(anonymize(i),&amp;quot;WIKI&amp;quot;)] = true&lt;br /&gt;
    end&lt;br /&gt;
    currentpage = anonymize(currentpage) --- convert &amp;quot;Wikipedia:, &amp;quot;Meta:&amp;quot; etc. into &amp;quot;Project:&lt;br /&gt;
    currentpage = mw.uri.encode(currentpage,&amp;quot;WIKI&amp;quot;) --- hopefully this gets the +&amp;#039;s and diacritics right...&lt;br /&gt;
    debuglog = debuglog .. currentpage&lt;br /&gt;
    local index={}&lt;br /&gt;
    if mw.ustring.sub(indexmodule,1,6)==&amp;quot;Module&amp;quot; then&lt;br /&gt;
        ---- get a table of the pages in order from indexmodule&lt;br /&gt;
        index=mw.loadData(indexmodule)&lt;br /&gt;
    else pp=mw.title.new(indexmodule)&lt;br /&gt;
        if not pp then&lt;br /&gt;
            if noerr then&lt;br /&gt;
                return &amp;quot;&amp;quot;&lt;br /&gt;
            else return &amp;quot;[[Module:ATA]] error (&amp;#039;&amp;#039;index&amp;#039;&amp;#039; parameter): failed to access mw.title.new(&amp;quot;..tostring(indexmodule)..&amp;quot;) to load the index file&amp;quot;&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
        local textindex=pp.getContent(pp)&lt;br /&gt;
        if not textindex then&lt;br /&gt;
            if noerr then&lt;br /&gt;
                return &amp;quot;&amp;quot;&lt;br /&gt;
            else return &amp;quot;[[Module:ATA]] error (&amp;#039;&amp;#039;index&amp;#039;&amp;#039; parameter):failed to access mw.title.new(&amp;quot;..indexmodule..&amp;quot;):getContent() to load the index data&amp;quot;,pp.fullText&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
        prowl=mw.ustring.gmatch(textindex,&amp;quot;%[%[(.-)[%]|]&amp;quot;) -- first half of any wikilink&lt;br /&gt;
        index={}&lt;br /&gt;
        repeat&lt;br /&gt;
            link=prowl()&lt;br /&gt;
            if not(link) then break end&lt;br /&gt;
            link = mw.uri.encode(anonymize(link),&amp;quot;WIKI&amp;quot;) &lt;br /&gt;
            debuglog = debuglog .. &amp;quot;,&amp;quot; .. link .. &amp;quot;?&amp;quot; .. tostring(link == currentpage) .. (tostring(whiteitem[link]) or &amp;quot;nope&amp;quot;)&lt;br /&gt;
            if not(whiteitem[link]) and (link == currentpage) and not(debugout) then&lt;br /&gt;
                return &amp;quot;http://&amp;quot;..&amp;quot;encyclopediadramatica.com/&amp;quot; -- blacklist token to STOP THE EDIT&lt;br /&gt;
            end&lt;br /&gt;
        until false&lt;br /&gt;
    end&lt;br /&gt;
    debuglog = &amp;quot;(begin debug)&amp;quot; .. debuglog .. &amp;quot;(end debug)&amp;quot;&lt;br /&gt;
    if debugout then&lt;br /&gt;
        return debuglog&lt;br /&gt;
    else&lt;br /&gt;
        return &amp;quot;&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    -- successful return.  Detoxification of mainspace sigs should go here, IF it can be done.&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Wnt</name></author>
	</entry>
</feed>