<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://dharmawiki.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ALanguages%2FList</id>
	<title>Module:Languages/List - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dharmawiki.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ALanguages%2FList"/>
	<link rel="alternate" type="text/html" href="https://dharmawiki.org/index.php?title=Module:Languages/List&amp;action=history"/>
	<updated>2026-04-06T18:40:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://dharmawiki.org/index.php?title=Module:Languages/List&amp;diff=79272&amp;oldid=prev</id>
		<title>WikiSysop: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://dharmawiki.org/index.php?title=Module:Languages/List&amp;diff=79272&amp;oldid=prev"/>
		<updated>2019-01-05T12:11:28Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&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 12:11, 5 January 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&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>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://dharmawiki.org/index.php?title=Module:Languages/List&amp;diff=79271&amp;oldid=prev</id>
		<title>en&gt;Verdy p: Javascript snippet no longer needed (and may be also inaccurate as it returns the list from the javascripts loaded by the client, possibly outdated when read from its browser cache)</title>
		<link rel="alternate" type="text/html" href="https://dharmawiki.org/index.php?title=Module:Languages/List&amp;diff=79271&amp;oldid=prev"/>
		<updated>2016-04-14T19:30:00Z</updated>

		<summary type="html">&lt;p&gt;Javascript snippet no longer needed (and may be also inaccurate as it returns the list from the javascripts loaded by the client, possibly outdated when read from its browser cache)&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;
--&lt;br /&gt;
--[[ Check this list by running this in the console of the Lua Module editor in MediaWiki:&lt;br /&gt;
=&amp;quot;p.list={'&amp;quot; .. table.concat(p.getSortedList(mw.language.fetchLanguageNames()), &amp;quot;','&amp;quot;) .. &amp;quot;',}&amp;quot;&lt;br /&gt;
]]&lt;br /&gt;
function p.getSortedList(mwLangList)&lt;br /&gt;
    local sortedList = {}&lt;br /&gt;
    for lang, _ in pairs(mwLangList) do&lt;br /&gt;
        table.insert(sortedList, lang)&lt;br /&gt;
    end&lt;br /&gt;
    table.sort(sortedList)&lt;br /&gt;
    return sortedList&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.list = p.getSortedList(mw.language.fetchLanguageNames())&lt;br /&gt;
&lt;br /&gt;
setmetatable(p, {&lt;br /&gt;
    quickTests = function()&lt;br /&gt;
        local i = 0&lt;br /&gt;
        for k, v in pairs(p.list) do&lt;br /&gt;
            if type(k) ~= 'number' or k &amp;lt; 1 or k ~= math.floor(k)&lt;br /&gt;
            or type(v) ~= 'string' or #v &amp;lt; 2 or #v &amp;gt; 16&lt;br /&gt;
            or (v):find('^[a-z][%-0-9a-z]*[0-9a-z]$') ~= 1 then&lt;br /&gt;
                return false, ': invalid sequence of language codes in p.list[&amp;quot;' .. tostring(k) .. '&amp;quot;] = &amp;quot;' .. tostring(v) .. '&amp;quot;'&lt;br /&gt;
            end&lt;br /&gt;
            i = i + 1&lt;br /&gt;
        end&lt;br /&gt;
        if #(p.list) ~= i then return false, ': invalid sequence: length = '.. #(p.list) ' for ' .. i .. 'distinct keys' end&lt;br /&gt;
        return true&lt;br /&gt;
    end&lt;br /&gt;
})&lt;br /&gt;
--[[ To test this module in the Lua console:&lt;br /&gt;
=getmetatable(p).quickTests() -- must return true&lt;br /&gt;
--]]&lt;br /&gt;
return p;&lt;/div&gt;</summary>
		<author><name>en&gt;Verdy p</name></author>
	</entry>
</feed>