<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ALanguage%2Fdata%2FISO_639-5%2Fmake</id>
	<title>Module:Language/data/ISO 639-5/make - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ALanguage%2Fdata%2FISO_639-5%2Fmake"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:Language/data/ISO_639-5/make&amp;action=history"/>
	<updated>2026-04-15T16:08:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Module:Language/data/ISO_639-5/make&amp;diff=2242&amp;oldid=prev</id>
		<title>Wikipedia&gt;Trappist the monk at 14:53, 19 August 2020</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:Language/data/ISO_639-5/make&amp;diff=2242&amp;oldid=prev"/>
		<updated>2020-08-19T14:53:06Z</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;require(&amp;#039;Module:No globals&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S O _ 5 _ N A M E _ E X T R A C T &amp;gt;------------------------------------------&lt;br /&gt;
&lt;br /&gt;
{{#invoke:Language/data/ISO 639-5/make|ISO_5_name_extract|file-date=2013-02-11}}&lt;br /&gt;
&lt;br /&gt;
reads a local copy of data from the table at https://www.loc.gov/standards/iso639-5/id.php, extracts&lt;br /&gt;
the ISO 639-5 codes and their associated language names&lt;br /&gt;
&lt;br /&gt;
useful lines in the source table have the form:&lt;br /&gt;
	&amp;lt;Identifier&amp;gt;\t&amp;lt;English name&amp;gt;\t&amp;lt;French name&amp;gt;\t&amp;lt;639-2&amp;gt;\t&amp;lt;Hierarchy&amp;gt;\t&amp;lt;Notes&amp;gt;\n&lt;br /&gt;
where:&lt;br /&gt;
	&amp;lt;Identifier&amp;gt; is the 639-5 language code&lt;br /&gt;
	&amp;lt;English name&amp;gt; is the English name&lt;br /&gt;
	&amp;lt;French names&amp;gt; is the French name (not used here)&lt;br /&gt;
	&amp;lt;639-2&amp;gt; is language group or remainder group or blank (not used here)&lt;br /&gt;
	&amp;lt;Hierarchy&amp;gt;  (not used here)&lt;br /&gt;
	&amp;lt;Notes&amp;gt; (not used here)&lt;br /&gt;
&lt;br /&gt;
for the file date use the date listed at the bottom of the source page in yyyymmdd numeric format without hyphens or spaces&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function ISO_5_name_extract (frame)&lt;br /&gt;
	local page = mw.title.getCurrentTitle();									-- get a page object for this page&lt;br /&gt;
	local content = page:getContent();											-- get unparsed content&lt;br /&gt;
	local content_table = {};													-- table of text lines from source&lt;br /&gt;
	local out_table = {};														-- output table&lt;br /&gt;
	local code, name;&lt;br /&gt;
&lt;br /&gt;
	local file_date = &amp;#039;File-Date: &amp;#039; .. frame.args[&amp;quot;file-date&amp;quot;];					-- set the file date line from |file-date= (from the bottom of the source page)&lt;br /&gt;
&lt;br /&gt;
	content_table = mw.text.split (content, &amp;#039;[\r\n]&amp;#039;);							-- make a table of text lines&lt;br /&gt;
	for _, line in ipairs (content_table) do									-- for each line&lt;br /&gt;
		code, name = line:match (&amp;#039;^(%l%l%l)\t([%a %-,%(%)\226\128\145]+)\t&amp;#039;);	-- \226\128\145 is non-breaking hyphen U+2011 (E2 80 91)&lt;br /&gt;
		if code then&lt;br /&gt;
			name = name:gsub (&amp;#039;\226\128\145&amp;#039;, &amp;#039;-&amp;#039;);								-- replace non-breaking hyphens with hyphen-minus&lt;br /&gt;
			table.insert (out_table,&lt;br /&gt;
				table.concat ({&lt;br /&gt;
					&amp;#039;[&amp;quot;&amp;#039;,														-- open code index&lt;br /&gt;
					code,&lt;br /&gt;
					&amp;#039;&amp;quot;] = {&amp;quot;&amp;#039;,													-- close code index; open name table&lt;br /&gt;
					name,&lt;br /&gt;
					&amp;#039;&amp;quot;}&amp;#039;														-- close the names table&lt;br /&gt;
				})&lt;br /&gt;
			)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	table.sort (out_table);&lt;br /&gt;
	&lt;br /&gt;
	return &amp;quot;&amp;lt;br /&amp;gt;&amp;lt;pre&amp;gt;-- &amp;quot; .. file_date .. &amp;quot;&amp;lt;br /&amp;gt;return {&amp;lt;br /&amp;gt;&amp;amp;#9;&amp;quot; .. table.concat (out_table, &amp;#039;,&amp;lt;br /&amp;gt;&amp;amp;#9;&amp;#039;) .. &amp;quot;&amp;lt;br /&amp;gt;&amp;amp;#9;}&amp;lt;br /&amp;gt;&amp;quot; .. &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X P O R T E D   F U N C T I O N S &amp;gt;------------------------------------------&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	ISO_5_name_extract = ISO_5_name_extract&lt;br /&gt;
	};&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Trappist the monk</name></author>
	</entry>
</feed>