<?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%3AR_from_sort_name</id>
	<title>Module:R from sort name - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AR_from_sort_name"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:R_from_sort_name&amp;action=history"/>
	<updated>2026-04-20T03:39:28Z</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:R_from_sort_name&amp;diff=144566&amp;oldid=prev</id>
		<title>imported&gt;Tol: fix</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:R_from_sort_name&amp;diff=144566&amp;oldid=prev"/>
		<updated>2022-01-12T17:14:23Z</updated>

		<summary type="html">&lt;p&gt;fix&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local c = {&lt;br /&gt;
	disambig_magic_word = &amp;#039;__DISAMBIG__&amp;#039;,&lt;br /&gt;
	template_unambiguous = &amp;#039;R from sort name/unambiguous&amp;#039;,&lt;br /&gt;
	template_ambiguous = &amp;#039;R from sort name/ambiguous&amp;#039;,&lt;br /&gt;
	cat_unambiguous_from = &amp;#039;Category:Redirects from sort names&amp;#039;,&lt;br /&gt;
	cat_unambiguous_to = &amp;#039;Category:Redirects from sort names by article title&amp;#039;,&lt;br /&gt;
	cat_ambiguous_from = &amp;#039;Category:Redirects from ambiguous sort names&amp;#039;,&lt;br /&gt;
	cat_ambiguous_to = &amp;#039;Category:Redirects from ambiguous sort names by article title&amp;#039;,&lt;br /&gt;
	err_not_redirect = &amp;#039;[[Template:R from sort name]] error: page is not a redirect&amp;#039;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local remove_accents = require(&amp;#039;Module:Latin&amp;#039;)._removeaccents&lt;br /&gt;
&lt;br /&gt;
local category = function(category, chr)&lt;br /&gt;
	return &amp;#039;[[&amp;#039; .. category .. &amp;#039;, &amp;#039; .. remove_accents(chr) .. &amp;#039;]]&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
p.core = function(title, frame)&lt;br /&gt;
	if title.exists then&lt;br /&gt;
		if title.isRedirect then&lt;br /&gt;
			char_from = mw.ustring.sub(title.fullText, 1, 1)&lt;br /&gt;
			char_to = mw.ustring.sub(title.redirectTarget.fullText, 1, 1)&lt;br /&gt;
			if mw.ustring.find(&lt;br /&gt;
				frame:preprocess(&lt;br /&gt;
					title.redirectTarget:getContent()&lt;br /&gt;
				),&lt;br /&gt;
				c.disambig_magic_word,&lt;br /&gt;
				1,&lt;br /&gt;
				true&lt;br /&gt;
			) then&lt;br /&gt;
				return (&lt;br /&gt;
					frame:expandTemplate{title = c.template_ambiguous} ..&lt;br /&gt;
					category(c.cat_ambiguous_from, char_from) ..&lt;br /&gt;
					category(c.cat_ambiguous_to, char_to)&lt;br /&gt;
				)&lt;br /&gt;
			else&lt;br /&gt;
				return (&lt;br /&gt;
					frame:expandTemplate{title = c.template_umambiguous} ..&lt;br /&gt;
					category(c.cat_unambiguous_from, char_from) ..&lt;br /&gt;
					category(c.cat_unambiguous_to, char_to)&lt;br /&gt;
				)&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			return error(c.err_not_redirect)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return frame:expandTemplate{&lt;br /&gt;
			title = c.template_unambiguous&lt;br /&gt;
		}&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.main = function(frame)&lt;br /&gt;
	return p.core(mw.title.getCurrentTitle(), frame)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Tol</name></author>
	</entry>
</feed>