<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AArticles_by_quality</id>
	<title>Module:Articles by quality - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AArticles_by_quality"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Module:Articles_by_quality&amp;action=history"/>
	<updated>2026-11-27T02:40:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://battleint.net/index.php?title=Module:Articles_by_quality&amp;diff=199076&amp;oldid=prev</id>
		<title>Tungstenchan: Text replacement - &quot;BattleTechWiki&quot; to &quot;BattleIntelligence&quot;</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Module:Articles_by_quality&amp;diff=199076&amp;oldid=prev"/>
		<updated>2025-05-01T03:31:21Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;BattleTechWiki&amp;quot; to &amp;quot;BattleIntelligence&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:31, 30 April 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l98&quot;&gt;Line 98:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 98:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local caption&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local caption&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	if args.project then -- display caption&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	if args.project then -- display caption&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		local text = &#039;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;BattleTechWiki&lt;/del&gt;:WikiProject &#039; .. args.project .. &#039;|WikiProject &#039; .. args.project .. &#039;]] &#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		local text = &#039;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;BattleIntelligence&lt;/ins&gt;:WikiProject &#039; .. args.project .. &#039;|WikiProject &#039; .. args.project .. &#039;]] &#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			.. (&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			.. (&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				mw.title.new(&amp;#039;Category:&amp;#039; .. topic .. &amp;#039; articles by quality&amp;#039;).exists&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				mw.title.new(&amp;#039;Category:&amp;#039; .. topic .. &amp;#039; articles by quality&amp;#039;).exists&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tungstenchan</name></author>
	</entry>
	<entry>
		<id>https://battleint.net/index.php?title=Module:Articles_by_quality&amp;diff=176490&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: updating</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Module:Articles_by_quality&amp;diff=176490&amp;oldid=prev"/>
		<updated>2025-02-10T23:18:32Z</updated>

		<summary type="html">&lt;p&gt;updating&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require(&amp;#039;strict&amp;#039;)&lt;br /&gt;
local p = {}&lt;br /&gt;
local classes = {&amp;#039;FA&amp;#039;, &amp;#039;A&amp;#039;, &amp;#039;GA&amp;#039;, &amp;#039;B&amp;#039;, &amp;#039;C&amp;#039;, &amp;#039;Start&amp;#039;, &amp;#039;Stub&amp;#039;, &amp;#039;FL&amp;#039;, &amp;#039;AL&amp;#039;, &amp;#039;BL&amp;#039;, &amp;#039;CL&amp;#039;, &amp;#039;List&amp;#039;, &amp;#039;SIA&amp;#039;, &amp;#039;Future&amp;#039;, &amp;#039;Category&amp;#039;, &amp;#039;Disambig&amp;#039;, &amp;#039;Draft&amp;#039;, &amp;#039;FM&amp;#039;, &amp;#039;File&amp;#039;, &amp;#039;Portal&amp;#039;, &amp;#039;Project&amp;#039;, &amp;#039;Redirect&amp;#039;, &amp;#039;Template&amp;#039;, &amp;#039;User&amp;#039;, &amp;#039;NA&amp;#039;}&lt;br /&gt;
&lt;br /&gt;
p.main = function(frame)&lt;br /&gt;
	local args = require(&amp;#039;Module:Arguments&amp;#039;).getArgs(frame)&lt;br /&gt;
	local yesno = require(&amp;#039;Module:Yesno&amp;#039;)&lt;br /&gt;
	local title = args.page and mw.title.new(page) or mw.title.getCurrentTitle()&lt;br /&gt;
	local class, topic, typ = title.text:match(&amp;#039;^(%a+)-Class (.+) (%a+)$&amp;#039;)&lt;br /&gt;
	if not class then -- try to match unassessed category&lt;br /&gt;
		class, topic, typ = title.text:match(&amp;#039;^(Unassessed) (.+) (%a+)$&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	if not topic then&lt;br /&gt;
		topic = args.topic or title.text:match(&amp;#039;^(.+) articles by quality$&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	local out, exist, cats = &amp;#039;&amp;#039;, {}, {}&lt;br /&gt;
	local add_category = function(cat, sort)&lt;br /&gt;
		local link = &amp;#039;[[Category:&amp;#039; .. cat .. (sort and (&amp;#039;|&amp;#039; .. sort) or &amp;#039;&amp;#039;) .. &amp;#039;]]&amp;#039;&lt;br /&gt;
		table.insert(cats, link)&lt;br /&gt;
	end&lt;br /&gt;
	if args.class and class and args.topic and topic and (args.class:lower()~=class:lower() or args.topic~=topic) then&lt;br /&gt;
		add_category(&amp;#039;WikiProject assessment categories needing attention&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	topic = topic or args.topic or &amp;#039;&amp;#039;&lt;br /&gt;
	class = class or args.class or &amp;#039;&amp;#039;&lt;br /&gt;
	typ = typ or &amp;#039;articles&amp;#039;&lt;br /&gt;
	if title.namespace==14 and not title.text:match(&amp;#039;^&amp;#039; .. topic .. &amp;#039; articles by quality$&amp;#039;) then&lt;br /&gt;
		out = frame:expandTemplate{title=&amp;#039;Possibly empty category&amp;#039;}&lt;br /&gt;
	end&lt;br /&gt;
	local add_category = function(cat, sort)&lt;br /&gt;
		local link = &amp;#039;[[Category:&amp;#039; .. cat .. (sort and (&amp;#039;|&amp;#039; .. sort)) .. &amp;#039;]]&amp;#039;&lt;br /&gt;
		table.insert(cats, link)&lt;br /&gt;
	end&lt;br /&gt;
	local cat_in_use = function(cat)&lt;br /&gt;
		local cat_title = mw.title.new(&amp;#039;Category:&amp;#039; .. cat)&lt;br /&gt;
		return cat_title and cat_title.exists or mw.site.stats.pagesInCategory(cat, &amp;#039;pages&amp;#039;)&amp;gt;0&lt;br /&gt;
	end&lt;br /&gt;
	for _, class in ipairs(classes) do&lt;br /&gt;
		if cat_in_use(class .. &amp;#039;-Class&amp;#039; .. &amp;#039; &amp;#039; .. topic .. &amp;#039; pages&amp;#039;) then&lt;br /&gt;
			exist[class] = &amp;#039;pages&amp;#039;&lt;br /&gt;
		elseif cat_in_use(class .. &amp;#039;-Class&amp;#039; .. &amp;#039; &amp;#039; .. topic .. &amp;#039; articles&amp;#039;) then&lt;br /&gt;
			exist[class] = &amp;#039;articles&amp;#039;&lt;br /&gt;
		else&lt;br /&gt;
			exist[class] = false&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local class_template = function(class, page)&lt;br /&gt;
		return frame:expandTemplate{&lt;br /&gt;
			title = &amp;#039;class&amp;#039;,&lt;br /&gt;
			args = {&lt;br /&gt;
				[1] = class,&lt;br /&gt;
				topic = topic,&lt;br /&gt;
				category = topic .. &amp;#039; &amp;#039; .. page,&lt;br /&gt;
				bold = &amp;#039;no&amp;#039;&lt;br /&gt;
			}&lt;br /&gt;
		}&lt;br /&gt;
	end&lt;br /&gt;
	local header_row = mw.html.create(&amp;#039;tr&amp;#039;)&lt;br /&gt;
	for _, class in ipairs(classes) do&lt;br /&gt;
		if exist[class] then&lt;br /&gt;
			header_row:node(class_template(class, exist[class]))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if args.custom1 then&lt;br /&gt;
		header_row:node(class_template(args.custom1, &amp;#039;articles&amp;#039;))&lt;br /&gt;
	end&lt;br /&gt;
	if args.custom2 then&lt;br /&gt;
		header_row:node(class_template(args.custom2, &amp;#039;articles&amp;#039;))&lt;br /&gt;
	end&lt;br /&gt;
	local total_cell = mw.html.create(&amp;#039;td&amp;#039;):attr(&amp;#039;align&amp;#039;, &amp;#039;center&amp;#039;):wikitext(&amp;#039;Total&amp;#039;)&lt;br /&gt;
	header_row:node(class_template(&amp;#039;Unassessed&amp;#039;, &amp;#039;articles&amp;#039;))&lt;br /&gt;
		:node(total_cell)&lt;br /&gt;
	local total = 0&lt;br /&gt;
	local col_num = function(n)&lt;br /&gt;
		return mw.html.create(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
			:wikitext(mw.language.getContentLanguage():formatNum(n))&lt;br /&gt;
	end&lt;br /&gt;
	local pages_in_cat = function(cat)&lt;br /&gt;
		local pages = mw.site.stats.pagesInCategory(cat, &amp;#039;pages&amp;#039;)&lt;br /&gt;
		total = total + pages&lt;br /&gt;
		return col_num(pages)&lt;br /&gt;
	end&lt;br /&gt;
	local second_row = mw.html.create(&amp;#039;tr&amp;#039;)&lt;br /&gt;
	for _, class in ipairs(classes) do&lt;br /&gt;
		if exist[class] then&lt;br /&gt;
			second_row:node(pages_in_cat(class .. &amp;#039;-Class&amp;#039; .. &amp;#039; &amp;#039; .. topic .. &amp;#039; &amp;#039; .. exist[class]))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if args.custom1 then&lt;br /&gt;
		second_row:node(pages_in_cat(args.custom1 .. &amp;#039;-Class&amp;#039; .. &amp;#039; &amp;#039; .. topic .. &amp;#039; articles&amp;#039;))&lt;br /&gt;
	end&lt;br /&gt;
	if args.custom2 then&lt;br /&gt;
		second_row:node(pages_in_cat(args.custom2 .. &amp;#039;-Class&amp;#039; .. &amp;#039; &amp;#039; .. topic .. &amp;#039; articles&amp;#039;))&lt;br /&gt;
	end&lt;br /&gt;
	second_row:node(pages_in_cat(&amp;#039;Unassessed &amp;#039; .. topic .. &amp;#039; articles&amp;#039;))&lt;br /&gt;
		:node(col_num(total))&lt;br /&gt;
	local caption&lt;br /&gt;
	if args.project then -- display caption&lt;br /&gt;
		local text = &amp;#039;[[BattleTechWiki:WikiProject &amp;#039; .. args.project .. &amp;#039;|WikiProject &amp;#039; .. args.project .. &amp;#039;]] &amp;#039;&lt;br /&gt;
			.. (&lt;br /&gt;
				mw.title.new(&amp;#039;Category:&amp;#039; .. topic .. &amp;#039; articles by quality&amp;#039;).exists&lt;br /&gt;
				and &amp;#039;[[:Category:&amp;#039; .. topic .. &amp;#039; articles by quality|articles by quality]]&amp;#039;&lt;br /&gt;
				or &amp;#039;articles by quality&amp;#039;&lt;br /&gt;
			) .. string.rep(&amp;#039; &amp;amp;nbsp;&amp;#039;, 3)&lt;br /&gt;
			.. &amp;#039;&amp;lt;small&amp;gt;&amp;#039; .. frame:expandTemplate{title = &amp;#039;Purge&amp;#039;, args = {&amp;#039;Refresh&amp;#039;}} .. &amp;#039;&amp;lt;/small&amp;gt;&amp;#039;&lt;br /&gt;
		caption = mw.html.create(&amp;#039;caption&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;align&amp;#039;, &amp;#039;bottom&amp;#039;)&lt;br /&gt;
			:wikitext(text)&lt;br /&gt;
	end&lt;br /&gt;
	local tab = mw.html.create(&amp;#039;table&amp;#039;)&lt;br /&gt;
		:addClass(args.format or &amp;#039;wikitable&amp;#039;) -- add custom CSS class if specified&lt;br /&gt;
		:addClass(&amp;#039;toccolours&amp;#039;):addClass(&amp;#039;nomobile&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;table-layout&amp;#039;, &amp;#039;fixed&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;margin&amp;#039;, &amp;#039;1em auto&amp;#039;)&lt;br /&gt;
		:node(header_row)&lt;br /&gt;
		:node(second_row)&lt;br /&gt;
		:node(caption)&lt;br /&gt;
	if class and class~=&amp;#039;&amp;#039; and class~=&amp;#039;nocat&amp;#039; then&lt;br /&gt;
		add_category(args.parent or (topic .. &amp;#039; articles by quality&amp;#039;), class)&lt;br /&gt;
		add_category(class .. (class:lower()==&amp;#039;unassessed&amp;#039; and &amp;#039;&amp;#039; or &amp;#039;-Class&amp;#039;) .. &amp;#039; &amp;#039; .. typ, args.sort or topic)&lt;br /&gt;
	end&lt;br /&gt;
	return out .. tostring(tab) .. table.concat(cats)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Deadfire</name></author>
	</entry>
</feed>