<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dcwwiki.org/dcwwiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ALang_links</id>
	<title>Module:Lang links - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dcwwiki.org/dcwwiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ALang_links"/>
	<link rel="alternate" type="text/html" href="https://dcwwiki.org/dcwwiki/index.php?title=Module:Lang_links&amp;action=history"/>
	<updated>2026-08-26T06:31:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://dcwwiki.org/dcwwiki/index.php?title=Module:Lang_links&amp;diff=968&amp;oldid=prev</id>
		<title>Aafi: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://dcwwiki.org/dcwwiki/index.php?title=Module:Lang_links&amp;diff=968&amp;oldid=prev"/>
		<updated>2024-03-04T18:07:32Z</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-interface=&quot;&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 18:07, 4 March 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&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;!-- diff cache key u572932744_5wzGQ-emr2_:diff:1.41:old-967:rev-968 --&gt;
&lt;/table&gt;</summary>
		<author><name>Aafi</name></author>
	</entry>
	<entry>
		<id>https://dcwwiki.org/dcwwiki/index.php?title=Module:Lang_links&amp;diff=967&amp;oldid=prev</id>
		<title>commons&gt;Jarekt at 14:01, 25 January 2024</title>
		<link rel="alternate" type="text/html" href="https://dcwwiki.org/dcwwiki/index.php?title=Module:Lang_links&amp;diff=967&amp;oldid=prev"/>
		<updated>2024-01-25T14:01:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; --  __  __           _       _        _                        _ _       _        &lt;br /&gt;
 -- |  \/  | ___   __| |_   _| | ___ _| |    __ _ _ __   __ _  | (_)_ __ | | _____ &lt;br /&gt;
 -- | |\/| |/ _ \ / _` | | | | |/ _ (_) |   / _` | &amp;#039;_ \ / _` | | | | &amp;#039;_ \| |/ / __|&lt;br /&gt;
 -- | |  | | (_) | (_| | |_| | |  __/_| |__| (_| | | | | (_| | | | | | | |   &amp;lt;\__ \&lt;br /&gt;
 -- |_|  |_|\___/ \__,_|\__,_|_|\___(_)_____\__,_|_| |_|\__, | |_|_|_| |_|_|\_\___/&lt;br /&gt;
                                                     -- |___/                      &lt;br /&gt;
require(&amp;#039;strict&amp;#039;) -- used for debugging purposes as it detects cases of unintended global variables&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.lang_links(frame)&lt;br /&gt;
	local title, subpage&lt;br /&gt;
	local output = {}&lt;br /&gt;
    local page    = frame.args[1]&lt;br /&gt;
    local max_num = tonumber(frame.args[2] or &amp;#039;70&amp;#039;)&lt;br /&gt;
	if (page) then&lt;br /&gt;
		title = mw.title.new(page)&lt;br /&gt;
	else&lt;br /&gt;
		title = mw.title.getCurrentTitle()&lt;br /&gt;
		page  = title.basePageTitle&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- if /lang subpage found transclude it and we are done&lt;br /&gt;
	subpage = page .. &amp;#039;/lang&amp;#039;&lt;br /&gt;
	if mw.title.new(subpage).exists then&lt;br /&gt;
		return frame:expandTemplate{ title = subpage }&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- This list was generated by collecting all the sub-templates from &lt;br /&gt;
	-- [[Category:Translated marker templates]] and [[Category:Translated license tags]], which hold&lt;br /&gt;
	-- subpages of 2400 templates, and counting how many sub-templates from each language we have. &lt;br /&gt;
	-- Than we assigned a rank based on how many pages in a given language we had. &lt;br /&gt;
	-- This list is sorted by the language code. Maximum rank is 118.&lt;br /&gt;
	local list = {&amp;#039;af/65&amp;#039;, &amp;#039;als/66&amp;#039;, &amp;#039;an/89&amp;#039;, &amp;#039;ar/15&amp;#039;, &amp;#039;arq/81&amp;#039;, &amp;#039;ast/84&amp;#039;, &amp;#039;az/54&amp;#039;, &amp;#039;bar/74&amp;#039;, &lt;br /&gt;
		&amp;#039;bcl/85&amp;#039;, &amp;#039;be/67&amp;#039;, &amp;#039;be-tarask/35&amp;#039;, &amp;#039;bg/41&amp;#039;, &amp;#039;bn/21&amp;#039;, &amp;#039;br/52&amp;#039;, &amp;#039;bs/79&amp;#039;, &amp;#039;ca/22&amp;#039;, &amp;#039;ce/103&amp;#039;, &lt;br /&gt;
		&amp;#039;cs/12&amp;#039;, &amp;#039;cy/56&amp;#039;, &amp;#039;da/37&amp;#039;, &amp;#039;dag/92&amp;#039;, &amp;#039;de/4&amp;#039;, &amp;#039;de-at/112&amp;#039;, &amp;#039;de-ch/113&amp;#039;, &amp;#039;de-formal/73&amp;#039;, &lt;br /&gt;
		&amp;#039;diq/64&amp;#039;, &amp;#039;el/43&amp;#039;, &amp;#039;en/1&amp;#039;, &amp;#039;en-ca/114&amp;#039;, &amp;#039;en-gb/88&amp;#039;, &amp;#039;eo/34&amp;#039;, &amp;#039;es/6&amp;#039;, &amp;#039;et/32&amp;#039;, &amp;#039;eu/48&amp;#039;, &lt;br /&gt;
		&amp;#039;fa/29&amp;#039;, &amp;#039;fi/23&amp;#039;, &amp;#039;fr/3&amp;#039;, &amp;#039;fy/72&amp;#039;, &amp;#039;ga/62&amp;#039;, &amp;#039;gl/30&amp;#039;, &amp;#039;gu/90&amp;#039;, &amp;#039;ha/107&amp;#039;, &amp;#039;he/40&amp;#039;, &amp;#039;hi/44&amp;#039;, &lt;br /&gt;
		&amp;#039;hr/39&amp;#039;, &amp;#039;hu/16&amp;#039;, &amp;#039;hy/45&amp;#039;, &amp;#039;id/28&amp;#039;, &amp;#039;io/71&amp;#039;, &amp;#039;is/97&amp;#039;, &amp;#039;it/10&amp;#039;, &amp;#039;ja/9&amp;#039;, &amp;#039;jv/98&amp;#039;, &amp;#039;ka/51&amp;#039;, &lt;br /&gt;
		&amp;#039;kk/77&amp;#039;, &amp;#039;km/94&amp;#039;, &amp;#039;kn/95&amp;#039;, &amp;#039;ko/26&amp;#039;, &amp;#039;ko-kp/99&amp;#039;, &amp;#039;ku/80&amp;#039;, &amp;#039;ky/82&amp;#039;, &amp;#039;lb/57&amp;#039;, &amp;#039;lt/55&amp;#039;, &lt;br /&gt;
		&amp;#039;lv/61&amp;#039;, &amp;#039;mg/75&amp;#039;, &amp;#039;min/116&amp;#039;, &amp;#039;mk/2&amp;#039;, &amp;#039;ml/18&amp;#039;, &amp;#039;mr/68&amp;#039;, &amp;#039;ms/46&amp;#039;, &amp;#039;mt/69&amp;#039;, &amp;#039;my/83&amp;#039;, &amp;#039;nb/47&amp;#039;, &lt;br /&gt;
		&amp;#039;nds/49&amp;#039;, &amp;#039;ne/59&amp;#039;, &amp;#039;nl/7&amp;#039;, &amp;#039;nn/60&amp;#039;, &amp;#039;ny/108&amp;#039;, &amp;#039;oc/93&amp;#039;, &amp;#039;or/100&amp;#039;, &amp;#039;pa/101&amp;#039;, &amp;#039;pl/13&amp;#039;, &lt;br /&gt;
		&amp;#039;ps/109&amp;#039;, &amp;#039;pt/8&amp;#039;, &amp;#039;pt-br/25&amp;#039;, &amp;#039;rm/104&amp;#039;, &amp;#039;ro/36&amp;#039;, &amp;#039;ru/5&amp;#039;, &amp;#039;scn/14&amp;#039;, &amp;#039;sd/110&amp;#039;, &amp;#039;se/86&amp;#039;, &lt;br /&gt;
		&amp;#039;sh/105&amp;#039;, &amp;#039;sk/50&amp;#039;, &amp;#039;sl/19&amp;#039;, &amp;#039;sq/58&amp;#039;, &amp;#039;sr/33&amp;#039;, &amp;#039;su/102&amp;#039;, &amp;#039;sv/24&amp;#039;, &amp;#039;sw/117&amp;#039;, &amp;#039;ta/70&amp;#039;, &lt;br /&gt;
		&amp;#039;te/118&amp;#039;, &amp;#039;test/115&amp;#039;, &amp;#039;th/38&amp;#039;, &amp;#039;tl/53&amp;#039;, &amp;#039;tr/27&amp;#039;, &amp;#039;tt/91&amp;#039;, &amp;#039;uk/11&amp;#039;, &amp;#039;ur/63&amp;#039;, &amp;#039;uz/111&amp;#039;, &lt;br /&gt;
		&amp;#039;vec/87&amp;#039;, &amp;#039;vi/42&amp;#039;, &amp;#039;yo/76&amp;#039;, &amp;#039;yue/106&amp;#039;, &amp;#039;zh/31&amp;#039;, &amp;#039;zh-cn/96&amp;#039;, &amp;#039;zh-hans/17&amp;#039;, &amp;#039;zh-hant/20&amp;#039;, &amp;#039;zh-tw/78&amp;#039;}&lt;br /&gt;
	local output = {}&lt;br /&gt;
	for _, key in pairs( list ) do&lt;br /&gt;
		local v = mw.text.split( key, &amp;#039;/&amp;#039; )&lt;br /&gt;
		local lang = v[1]&lt;br /&gt;
		local rank = tonumber(v[2])&lt;br /&gt;
		if rank&amp;lt;=max_num then&lt;br /&gt;
			subpage = page .. &amp;#039;/&amp;#039; .. lang&lt;br /&gt;
			if mw.title.new(subpage).exists then&lt;br /&gt;
				local lname = mw.language.fetchLanguageName( lang, lang )&lt;br /&gt;
				table.insert(output, &amp;#039;[[&amp;#039; .. subpage .. &amp;#039;|&amp;lt;bdi lang=&amp;quot;&amp;#039;..lang..&amp;#039;&amp;quot;&amp;gt;&amp;#039;.. lname..&amp;#039;&amp;lt;/bdi&amp;gt;]]&amp;#039;)&lt;br /&gt;
			elseif lang==&amp;#039;en&amp;#039; then -- some pages have English version in the main tenplate. Assume that is the case if /en subpage is missing.&lt;br /&gt;
				table.insert(output, &amp;#039;[[&amp;#039; .. page .. &amp;#039;|&amp;lt;bdi lang=&amp;quot;en&amp;quot;&amp;gt;English&amp;lt;/bdi&amp;gt;]]&amp;#039;)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end &lt;br /&gt;
	&lt;br /&gt;
	list = table.concat(output, &amp;#039;&amp;amp;nbsp;&amp;lt;b&amp;gt;∙&amp;lt;/b&amp;gt;&amp;amp;#32;&amp;#039;)&lt;br /&gt;
	return &amp;#039;&amp;lt;span class=&amp;quot;plainlinks&amp;quot; style=&amp;quot;font-size:small;line-height:1.4&amp;quot;&amp;gt;&amp;#039;.. list.. &amp;#039;&amp;lt;/span&amp;gt;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>commons&gt;Jarekt</name></author>
	</entry>
</feed>