<?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%3AArticle_history%2FCategory</id>
	<title>Module:Article history/Category - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AArticle_history%2FCategory"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Article_history/Category&amp;action=history"/>
	<updated>2026-05-11T14:47:56Z</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:Article_history/Category&amp;diff=135269&amp;oldid=prev</id>
		<title>imported&gt;Mr. Stradivarius: Protected Module:Article history/Category: High-risk Lua module ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Article_history/Category&amp;diff=135269&amp;oldid=prev"/>
		<updated>2015-02-12T05:38:12Z</updated>

		<summary type="html">&lt;p&gt;Protected Module:Article history/Category: &lt;a href=&quot;/index.php?title=WP:High-risk_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:High-risk templates (page does not exist)&quot;&gt;High-risk Lua module&lt;/a&gt; ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-------------------------------------------------------------------------------&lt;br /&gt;
-- Category class&lt;br /&gt;
-- This module makes a Category class for use in [[Module:Article history]].&lt;br /&gt;
-- It provides a unified interface for the creation of category links. With&lt;br /&gt;
-- this class, categories can passed between objects without concerns about&lt;br /&gt;
-- interoperability and still have their values and sort keys easily&lt;br /&gt;
-- accessible.&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local checkType = require(&amp;#039;libraryUtil&amp;#039;).checkType&lt;br /&gt;
local CATEGORY_NS_TEXT = mw.site.namespaces[14].name&lt;br /&gt;
&lt;br /&gt;
local Category = {}&lt;br /&gt;
Category.__index = Category&lt;br /&gt;
&lt;br /&gt;
function Category.new(category, sortKey)&lt;br /&gt;
	checkType(&amp;#039;Category.new&amp;#039;, 1, category, &amp;#039;string&amp;#039;)&lt;br /&gt;
	checkType(&amp;#039;Category.new&amp;#039;, 2, sortKey, &amp;#039;string&amp;#039;, true)&lt;br /&gt;
	local obj = setmetatable({}, Category)&lt;br /&gt;
	obj.category = category&lt;br /&gt;
	obj.sortKey = sortKey&lt;br /&gt;
	return obj&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Category:__tostring()&lt;br /&gt;
	if self.sortKey then&lt;br /&gt;
		return string.format(&lt;br /&gt;
			&amp;#039;[[%s:%s|%s]]&amp;#039;,&lt;br /&gt;
			CATEGORY_NS_TEXT,&lt;br /&gt;
			self.category,&lt;br /&gt;
			self.sortKey&lt;br /&gt;
		)&lt;br /&gt;
	else&lt;br /&gt;
		return string.format(&lt;br /&gt;
			&amp;#039;[[%s:%s]]&amp;#039;,&lt;br /&gt;
			CATEGORY_NS_TEXT,&lt;br /&gt;
			self.category&lt;br /&gt;
		)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return Category&lt;/div&gt;</summary>
		<author><name>imported&gt;Mr. Stradivarius</name></author>
	</entry>
</feed>