<?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%3ASandbox%2FGalobtter%2FShort_description_from_country</id>
	<title>Module:Sandbox/Galobtter/Short description from country - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FGalobtter%2FShort_description_from_country"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Galobtter/Short_description_from_country&amp;action=history"/>
	<updated>2026-05-16T23:35:16Z</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:Sandbox/Galobtter/Short_description_from_country&amp;diff=145455&amp;oldid=prev</id>
		<title>imported&gt;Galobtter: fix</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Galobtter/Short_description_from_country&amp;diff=145455&amp;oldid=prev"/>
		<updated>2018-04-15T18:09:26Z</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;--given a pattern input like &amp;quot;country%d&amp;quot;, if there is only one of it (excluding youth teams of the same country etc), give &amp;quot;nationality profession&amp;quot;, e.g &amp;quot;German footballer&amp;quot;&lt;br /&gt;
&lt;br /&gt;
--data = mw.loaddata(&amp;quot;Module:Short description from country/data&amp;quot;)&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.main (frame)&lt;br /&gt;
	local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
	local args = getArgs(frame, {&amp;#039;frameOnly&amp;#039;})&lt;br /&gt;
	if args.disable == &amp;#039;yes&amp;#039; then&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
	local parentArgs = getArgs(frame, {&amp;#039;parentOnly&amp;#039;})&lt;br /&gt;
	local name = args[1]&lt;br /&gt;
	local nationatString&lt;br /&gt;
	for m, n in pairs (parentArgs) do&lt;br /&gt;
		if string.find(m, &amp;quot;^&amp;quot;..name..&amp;quot;$&amp;quot;) then&lt;br /&gt;
			n = require(&amp;#039;Module:Plain text&amp;#039;).main(n) --remove links and get the text to make it easier to process&lt;br /&gt;
			n = string.gsub(n, &amp;quot; U[-]?%d+?&amp;quot;, &amp;quot;&amp;quot;) --strip U23/U17 etc&lt;br /&gt;
			--if previous nationstring, check if new nationstring&lt;br /&gt;
			--for detecting cases where the person plays&lt;br /&gt;
			--for different countries, and thus cannot determine nationality&lt;br /&gt;
			if nationString and (n ~= nationString) then&lt;br /&gt;
				return&lt;br /&gt;
			else&lt;br /&gt;
				nationString = n&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if nationString then return nationString..&amp;quot; &amp;quot;..args[2] end --should return data[nationString], to get denonym and to check if real nation/valid input&lt;br /&gt;
end&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Galobtter</name></author>
	</entry>
</feed>