<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AGood_Articles</id>
	<title>Module:Good Articles - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AGood_Articles"/>
	<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Module:Good_Articles&amp;action=history"/>
	<updated>2026-05-15T09:44:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.tachyony.co.uk/w/index.php?title=Module:Good_Articles&amp;diff=4482&amp;oldid=prev</id>
		<title>Tachyony: Created page with &quot;local p = {}  p.main = function (frame) 	local NNN = 2 -- provide counts only over this threshold 	local args = require(&quot;Module:Arguments&quot;).getArgs(frame) 	-- expect args.shortcut e.g. GA/H, args.type e.g. History, args.text a long list 	local subpage = frame:preprocess(&quot;{{SUBPAGENAME}}&quot;) -- I never did look up if there&#039;s a better way to do this... 	local header = &quot;&quot; 	local shortcuts = &quot;&quot; 	local type = args.type or &quot;error: specify type = Good Articles type&quot; 	local image...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Module:Good_Articles&amp;diff=4482&amp;oldid=prev"/>
		<updated>2021-12-19T05:29:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  p.main = function (frame) 	local NNN = 2 -- provide counts only over this threshold 	local args = require(&amp;quot;Module:Arguments&amp;quot;).getArgs(frame) 	-- expect args.shortcut e.g. GA/H, args.type e.g. History, args.text a long list 	local subpage = frame:preprocess(&amp;quot;{{SUBPAGENAME}}&amp;quot;) -- I never did look up if there&amp;#039;s a better way to do this... 	local header = &amp;quot;&amp;quot; 	local shortcuts = &amp;quot;&amp;quot; 	local type = args.type or &amp;quot;error: specify type = Good Articles type&amp;quot; 	local image...&amp;quot;&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;
&lt;br /&gt;
p.main = function (frame)&lt;br /&gt;
	local NNN = 2 -- provide counts only over this threshold&lt;br /&gt;
	local args = require(&amp;quot;Module:Arguments&amp;quot;).getArgs(frame)&lt;br /&gt;
	-- expect args.shortcut e.g. GA/H, args.type e.g. History, args.text a long list&lt;br /&gt;
	local subpage = frame:preprocess(&amp;quot;{{SUBPAGENAME}}&amp;quot;) -- I never did look up if there&amp;#039;s a better way to do this...&lt;br /&gt;
	local header = &amp;quot;&amp;quot;&lt;br /&gt;
	local shortcuts = &amp;quot;&amp;quot;&lt;br /&gt;
	local type = args.type or &amp;quot;error: specify type = Good Articles type&amp;quot;&lt;br /&gt;
	local image = &amp;#039;&amp;#039;&lt;br /&gt;
	if args.image then image = &amp;#039;[[&amp;#039; .. args.image .. &amp;#039;|22px|left]]&amp;#039; end&lt;br /&gt;
	local sectioncount = 0&lt;br /&gt;
	if (subpage == type or args.override) then -- I haven&amp;#039;t figured out how to deal with missing shortcut so why pretend&lt;br /&gt;
		shortcuts = frame:expandTemplate{ title = &amp;#039;shortcut&amp;#039;, args = { args.shortcut } }&lt;br /&gt;
		header = frame:expandTemplate{ title = &amp;#039;Wikipedia:Good articles/header&amp;#039;, args = { shortcuts = shortcuts } }&lt;br /&gt;
    end&lt;br /&gt;
    local introtext = args.text or &amp;#039;&amp;#039;&lt;br /&gt;
    replace = function(t)&lt;br /&gt;
        local xxxx, links = mw.ustring.gsub(t, &amp;quot;(%[%[[^%[%]]-%]%])&amp;quot;, &amp;quot;%1&amp;quot;, nil) -- count how many links&lt;br /&gt;
        if links &amp;gt;= NNN then&lt;br /&gt;
            t = t .. &amp;quot;&amp;lt;small&amp;gt; (&amp;quot; .. tostring(links) .. &amp;quot;&amp;amp;nbsp;articles)&amp;lt;/small&amp;gt;&amp;quot;&lt;br /&gt;
        end&lt;br /&gt;
        return t .. &amp;quot;\n&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    local sectionfooter = [===[&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- end of list --&amp;gt;]===]&lt;br /&gt;
    -- comments in the text below are historical from the page&amp;#039;s own markup&lt;br /&gt;
    local output = header .. [===[&amp;lt;!-- only include header on this page --&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear:both;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- DO NOT REMOVE THIS DIV, USED TO FORCE IE TO DISPLAY BACKGROUND FOR ARTS DIV --&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear:both;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;span id=&amp;quot;]===] .. type .. [===[&amp;quot; &amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding:5px 5px 8px 5px; background-color:#66CC66; text-align:left; font-size:larger;&amp;quot;&amp;gt;]===] .. image .. [===[&amp;#039;&amp;#039;&amp;#039;]===] .. type .. [===[&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:left;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
]===] .. introtext&lt;br /&gt;
    local section = 0&lt;br /&gt;
    local finaltext = &amp;#039;&amp;#039;&lt;br /&gt;
    repeat&lt;br /&gt;
    	local wrap = true&lt;br /&gt;
    	section = section + 1&lt;br /&gt;
        local text = (args[&amp;#039;section&amp;#039; .. tostring(section)] or args[section] or &amp;#039;&amp;#039;)&lt;br /&gt;
        local title = args[&amp;#039;title&amp;#039; .. tostring(section)]&lt;br /&gt;
    	if (not title) then&lt;br /&gt;
    		if (text == &amp;#039;&amp;#039;) then&lt;br /&gt;
    			break&lt;br /&gt;
            else&lt;br /&gt;
    		    local wrap = false&lt;br /&gt;
    		    output = output .. text  -- sections without headers go in unwrapped&lt;br /&gt;
    	    end&lt;br /&gt;
    	else&lt;br /&gt;
    		local image = args[&amp;#039;image&amp;#039; .. tostring(section)]&lt;br /&gt;
            text = mw.ustring.gsub(text .. &amp;quot;\n=&amp;quot;, &amp;quot;(==.-)\n%s*%f[=]&amp;quot;, replace)&lt;br /&gt;
            text = mw.ustring.sub(text,1,-2) -- ditching &amp;quot;=&amp;quot; mark from line above&lt;br /&gt;
    	    if (image) then &lt;br /&gt;
    		    image = &amp;#039;[[&amp;#039; .. image .. &amp;#039;|22px|left]]&amp;#039;&lt;br /&gt;
    	    else&lt;br /&gt;
    		    image = &amp;#039;&amp;#039; -- make section without an image&lt;br /&gt;
    	    end&lt;br /&gt;
    	    &lt;br /&gt;
    		output = output .. [===[&amp;lt;div class=&amp;quot;mw-collapsible&amp;quot; style=&amp;quot;clear:both;padding: 4px;border: 1px solid #a2a9b1;font-size: 95%;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding:2px 2px 2px 30px; background-color:#FFFAF0; font-size:larger;font-weight: bold;&amp;quot;&amp;gt;]===] .. image .. title .. [===[&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot; style=&amp;quot;font-size: 100%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==&amp;amp;shy;&amp;amp;nbsp;==&lt;br /&gt;
]===] .. text .. sectionfooter&lt;br /&gt;
        end&lt;br /&gt;
    until false&lt;br /&gt;
    return output&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.subsection(frame)&lt;br /&gt;
	if not mw.ustring.find( (frame.args[1] or frame:getParent().args[1] or &amp;#039;&amp;#039;) ,&amp;#039;[[&amp;#039;,1,true) then&lt;br /&gt;
		return &amp;#039;&amp;lt;small&amp;gt;(0&amp;amp;nbsp;articles)&amp;lt;/small&amp;gt;&amp;#039;&lt;br /&gt;
	else&lt;br /&gt;
		local linkList, count = mw.ustring.gsub(mw.text.trim(frame.args[1] or frame:getParent().args[1]), &amp;#039;\n&amp;#039;, &amp;#039;&amp;amp;nbsp;–\n&amp;#039;)&lt;br /&gt;
		return linkList .. &amp;#039;&amp;lt;small&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;(&amp;#039; .. (count + 1) .. &amp;#039;&amp;amp;nbsp;article&amp;#039; .. ( (count ~= 0) and &amp;#039;s&amp;#039; or &amp;#039;&amp;#039;) .. &amp;#039;)&amp;lt;/small&amp;gt;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Tachyony</name></author>
	</entry>
</feed>