<?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%3ACountry_extract</id>
	<title>Module:Country extract - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dharmawiki.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ACountry_extract"/>
	<link rel="alternate" type="text/html" href="https://dharmawiki.org/index.php?title=Module:Country_extract&amp;action=history"/>
	<updated>2026-04-05T22:16:14Z</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:Country_extract&amp;diff=1920&amp;oldid=prev</id>
		<title>WikiSysop: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://dharmawiki.org/index.php?title=Module:Country_extract&amp;diff=1920&amp;oldid=prev"/>
		<updated>2016-07-30T14:29:53Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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;
-- to enable us to replicate the current functioning of CountryAbbr and CountryAbbr2&lt;br /&gt;
-- We need to deal with &lt;br /&gt;
-- 1 alternative names ISO 3166 should do that&lt;br /&gt;
-- 2 {{&amp;lt;name&amp;gt;}}&lt;br /&gt;
-- 3 [ [&amp;lt;name&amp;gt;] ]&lt;br /&gt;
-- 4 [ [&amp;lt;name&amp;gt;|&amp;lt;junk&amp;gt;] ]&lt;br /&gt;
-- 5 [ [image:flag of &amp;lt;country&amp;gt;.[svg|gif|png|jpg]|\d+px] ]&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
function p.extractCountry(frame)&lt;br /&gt;
   local string= mw.ustring.toNFC (frame.args[1])&lt;br /&gt;
   local match=nil;&lt;br /&gt;
   match = mw.ustring.match(string, &amp;quot;Flag of ([^\.]*)&amp;quot;)&lt;br /&gt;
   if (match) then &lt;br /&gt;
      return match&lt;br /&gt;
   end &lt;br /&gt;
-- () for Cocos (Keeling) Islands&lt;br /&gt;
-- ' For  People's &lt;br /&gt;
-- . for U.S. etc.&lt;br /&gt;
   match = mw.ustring.match(string, &amp;quot;(%u[%a\(\)\.' -]+)&amp;quot;)&lt;br /&gt;
   if (match == &amp;quot;Image&amp;quot;) then&lt;br /&gt;
       string = mw.ustring.gsub(string, match, &amp;quot;&amp;quot;)&lt;br /&gt;
       match = mw.ustring.match(string, &amp;quot;[\|\[](%u[%a\(\)\.' -]+)&amp;quot;)&lt;br /&gt;
   end&lt;br /&gt;
   if (match == &amp;quot;20px&amp;quot;) then&lt;br /&gt;
       string = mw.ustring.gsub(string, match, &amp;quot;&amp;quot;)&lt;br /&gt;
       match = mw.ustring.match(string, &amp;quot;\[(%u[%a\(\)\.' -]+)&amp;quot;)&lt;br /&gt;
   end &lt;br /&gt;
   if (match) then &lt;br /&gt;
      return match&lt;br /&gt;
   end&lt;br /&gt;
   return  string&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[ &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
function p.extractSubdivision(frame)&lt;br /&gt;
   local string= mw.ustring.toNFC (frame.args[1])&lt;br /&gt;
   local match=nil;&lt;br /&gt;
-- Needed for {{flag|Greenland}},&lt;br /&gt;
   match = mw.ustring.match(string, &amp;quot;Flag of ([^\.]*)&amp;quot;)&lt;br /&gt;
   if (match) then &lt;br /&gt;
      return match&lt;br /&gt;
   end &lt;br /&gt;
-- . needed for Washington D.C. &lt;br /&gt;
-- ' for cote d'azur&lt;br /&gt;
-- leading ' for 'Aden&lt;br /&gt;
-- ‘ and trailing ' for Şan‘ā'&lt;br /&gt;
   match = mw.ustring.match(string, &amp;quot;('?[%u][%a'‘ \.\,-]+[%a\.'\d]+)&amp;quot;)&lt;br /&gt;
   if (match) then &lt;br /&gt;
      return match&lt;br /&gt;
   end&lt;br /&gt;
   return  string&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
</feed>