<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thegoonshow.co.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ASort</id>
	<title>Module:Sort - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.thegoonshow.co.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ASort"/>
	<link rel="alternate" type="text/html" href="https://www.thegoonshow.co.uk/wiki/index.php?title=Module:Sort&amp;action=history"/>
	<updated>2026-05-14T12:56:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>https://www.thegoonshow.co.uk/wiki/index.php?title=Module:Sort&amp;diff=54699&amp;oldid=prev</id>
		<title>Kurt: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.thegoonshow.co.uk/wiki/index.php?title=Module:Sort&amp;diff=54699&amp;oldid=prev"/>
		<updated>2024-09-28T21:12:45Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:12, 28 September 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Kurt</name></author>
	</entry>
	<entry>
		<id>https://www.thegoonshow.co.uk/wiki/index.php?title=Module:Sort&amp;diff=54698&amp;oldid=prev</id>
		<title>en&gt;MusikBot II: Protected &quot;Module:Sort&quot;: High-risk template or module: 27977 transclusions (more info) ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://www.thegoonshow.co.uk/wiki/index.php?title=Module:Sort&amp;diff=54698&amp;oldid=prev"/>
		<updated>2024-09-20T18:00:23Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/wiki/index.php?title=Module:Sort&quot; title=&quot;Module:Sort&quot;&gt;Module:Sort&lt;/a&gt;&amp;quot;: &lt;a href=&quot;https://en.wikipedia.org/wiki/High-risk_templates&quot; class=&quot;extiw&quot; title=&quot;wikipedia:High-risk templates&quot;&gt;High-risk template or module&lt;/a&gt;: 27977 transclusions (&lt;a href=&quot;/wiki/index.php?title=User:MusikBot_II/TemplateProtector&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:MusikBot II/TemplateProtector (page does not exist)&quot;&gt;more info&lt;/a&gt;) ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local getArgs = require('Module:Arguments').getArgs&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local demo = function(s) return '&amp;amp;lt;' .. string.sub(s,2,-8) .. '&amp;amp;lt;/span&amp;gt;' end&lt;br /&gt;
&lt;br /&gt;
-- Protect against sortkey nesting.&lt;br /&gt;
-- Example: {{sort|{{dts|2013|07|07}}|{{dts|1990|12|01}}}}&lt;br /&gt;
local encode = function(s) return (string.find(s, &amp;quot;sortkey&amp;quot;) or string.find(s, &amp;quot;data-sort-value&amp;quot;))&lt;br /&gt;
		and &amp;quot;&amp;quot; or mw.text.encode(s) end&lt;br /&gt;
&lt;br /&gt;
function p._name(args)&lt;br /&gt;
	local sortkey = encode( ((args[4] or args.sort or '') ~= '')&lt;br /&gt;
		and (args[4] or args.sort)&lt;br /&gt;
		or ((args[2] or args.last or '{{{last}}}')..', '..(args[1] or args.first or '{{{first}}}')))&lt;br /&gt;
	local span = (args[1] or args.first or '{{{first}}}')..' '..(args[2] or args.last or '{{{last}}}')&lt;br /&gt;
	if ((args.nolink or '') == '') and ((args[1] or args.first or '')..(args[2] or args.last or '')..(args.dab or '') ~= '-') then&lt;br /&gt;
		if (args[3] or args.link or '') ~= '' then&lt;br /&gt;
			span = (args[3] or args.link) .. '|' .. span &lt;br /&gt;
		elseif (args.dab or '') ~= '' then&lt;br /&gt;
			span = span .. ' (' .. args.dab .. ')|' .. span&lt;br /&gt;
		end&lt;br /&gt;
		span = '[[' .. span .. ']]'&lt;br /&gt;
	end&lt;br /&gt;
	local cat = (mw.title.getCurrentTitle().namespace == 0 and not args.demo)&lt;br /&gt;
		and '[[Category:Articles with hCards]]' or ''&lt;br /&gt;
	span = '&amp;lt;span data-sort-value=&amp;quot;' .. sortkey ..&lt;br /&gt;
		'&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;fn&amp;quot;&amp;gt;' .. span .. &lt;br /&gt;
		'&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;'&lt;br /&gt;
	return (args.demo and demo(span) or span) .. cat&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._sort(args)&lt;br /&gt;
	local span = '&amp;lt;span data-sort-value=&amp;quot;' ..&lt;br /&gt;
		encode((args[1] or '{{{1}}}') .. ' !') .. '&amp;quot;&amp;gt;' ..&lt;br /&gt;
		(args[2] or ('[['..(args[1] or '{{{1}}}')..']]')) .. '&amp;lt;/span&amp;gt;'&lt;br /&gt;
	return args.demo and demo(span) or span&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- {{sortname}}&lt;br /&gt;
p.name = function (frame) return p._name( getArgs(frame, {removeBlanks = false}) ) end&lt;br /&gt;
-- {{sort}}&lt;br /&gt;
p.sort = function (frame) return p._sort( getArgs(frame, {removeBlanks = false}) ) end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>en&gt;MusikBot II</name></author>
	</entry>
</feed>