<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://www.rootsunearthed.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AFlag</id>
	<title>Module:Flag - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.rootsunearthed.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AFlag"/>
	<link rel="alternate" type="text/html" href="https://www.rootsunearthed.com/index.php?title=Module:Flag&amp;action=history"/>
	<updated>2026-07-14T14:13:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://www.rootsunearthed.com/index.php?title=Module:Flag&amp;diff=41245&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.rootsunearthed.com/index.php?title=Module:Flag&amp;diff=41245&amp;oldid=prev"/>
		<updated>2024-04-05T13:56:52Z</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=&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 15:56, 5 April 2024&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>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.rootsunearthed.com/index.php?title=Module:Flag&amp;diff=41244&amp;oldid=prev</id>
		<title>wikipedia&gt;Ahecht: add frameOnly parameter, to allow directly invoking the module within a template without getting confused by other parameters passed to that template</title>
		<link rel="alternate" type="text/html" href="https://www.rootsunearthed.com/index.php?title=Module:Flag&amp;diff=41244&amp;oldid=prev"/>
		<updated>2024-03-15T17:24:37Z</updated>

		<summary type="html">&lt;p&gt;add frameOnly parameter, to allow directly invoking the module within a template without getting confused by other parameters passed to that template&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;
function p._main(frame, name, mode, check)&lt;br /&gt;
	local categories = {&lt;br /&gt;
		Flagicon = &amp;#039;[[Category:Flagicons with missing country data templates]]&amp;#039;,&lt;br /&gt;
		Flagdeco = &amp;#039;[[Category:Flagdeco with missing country data templates]]&amp;#039;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
    local yesno = require(&amp;#039;Module:Yesno&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	--Get input arguments&lt;br /&gt;
	local args = require(&amp;#039;Module:Arguments&amp;#039;).getArgs(frame,{frameOnly = ((frame.args.frameonly or &amp;#039;&amp;#039;) ~= &amp;#039;&amp;#039;), valueFunc =&lt;br /&gt;
	function(key,value)&lt;br /&gt;
		if value then&lt;br /&gt;
			value = mw.text.trim(value)&lt;br /&gt;
			--Change empty string to nil for all args except &amp;#039;image&amp;#039; and &amp;#039;border&amp;#039;&lt;br /&gt;
			if key==&amp;quot;image&amp;quot; or key==&amp;quot;border&amp;quot; or value~=&amp;quot;&amp;quot; then&lt;br /&gt;
				return value&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	})&lt;br /&gt;
	&lt;br /&gt;
	local preftext = &amp;quot;&amp;quot;&lt;br /&gt;
	&lt;br /&gt;
	if name == &amp;#039;Flag+link&amp;#039; then&lt;br /&gt;
		args.pref = args[1]&lt;br /&gt;
	elseif name == &amp;#039;Flagathlete&amp;#039; then&lt;br /&gt;
		args.preftext = args[1]&lt;br /&gt;
		args[2] = args.code or args[2] or &amp;quot;&amp;quot;&lt;br /&gt;
		args.variant = args.variant or args[3]&lt;br /&gt;
	elseif name == &amp;#039;Flagmedalist&amp;#039; then&lt;br /&gt;
		preftext = (args[1] or &amp;quot;&amp;quot;) .. &amp;quot;&amp;lt;br/&amp;gt;&amp;quot;&lt;br /&gt;
		args[2] = args.code or args[2] or &amp;quot;&amp;quot;&lt;br /&gt;
		args.variant = args.variant or args[3]&lt;br /&gt;
	else&lt;br /&gt;
		args.variant = args.variant or args[2]&lt;br /&gt;
		args[2] = args[1] or &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	args[1] = mode .. (args.opts or &amp;#039;&amp;#039;)&lt;br /&gt;
	args.missingcategory = categories[name]&lt;br /&gt;
	args.noredlink = args.noredlink or &amp;#039;notext&amp;#039;&lt;br /&gt;
&lt;br /&gt;
	if args.placeholder and yesno(args.placeholder) ~= true then&lt;br /&gt;
		args[1] = args[1] .. &amp;#039;o&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if mw.title.getCurrentTitle().namespace == 0 then&lt;br /&gt;
		local unknown = &amp;#039;[[Category:Pages using &amp;#039; .. mw.ustring.lower(name) .. &amp;#039; template with unknown parameters|_VALUE_&amp;#039; ..&lt;br /&gt;
				frame:getParent():getTitle() .. &amp;#039;]]&amp;#039;&lt;br /&gt;
	else&lt;br /&gt;
		local unknown = &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if check then&lt;br /&gt;
		local opts = {&lt;br /&gt;
            unknown=unknown,&lt;br /&gt;
            preview=&amp;#039;Page using [[Template:&amp;#039; .. name .. &amp;#039;]] with unknown parameter &amp;quot;_VALUE_&amp;quot;&amp;#039;,&lt;br /&gt;
            ignoreblank=&amp;#039;y&amp;#039;,&lt;br /&gt;
            &amp;#039;1&amp;#039;,&lt;br /&gt;
            &amp;#039;2&amp;#039;,&lt;br /&gt;
            &amp;#039;variant&amp;#039;,&lt;br /&gt;
            &amp;#039;image&amp;#039;,&lt;br /&gt;
            &amp;#039;size&amp;#039;,&lt;br /&gt;
            &amp;#039;sz&amp;#039;,&lt;br /&gt;
            &amp;#039;border&amp;#039;,&lt;br /&gt;
            &amp;#039;align&amp;#039;,&lt;br /&gt;
            &amp;#039;al&amp;#039;,&lt;br /&gt;
            &amp;#039;width&amp;#039;,&lt;br /&gt;
            &amp;#039;w&amp;#039;,&lt;br /&gt;
            &amp;#039;alt&amp;#039;,&lt;br /&gt;
            &amp;#039;ilink&amp;#039;,&lt;br /&gt;
            &amp;#039;noredlink&amp;#039;,&lt;br /&gt;
            &amp;#039;missingcategory&amp;#039;,&lt;br /&gt;
            &amp;#039;name&amp;#039;,&lt;br /&gt;
            &amp;#039;clink&amp;#039;,&lt;br /&gt;
            &amp;#039;link&amp;#039;,&lt;br /&gt;
            &amp;#039;pref&amp;#039;,&lt;br /&gt;
            &amp;#039;suff&amp;#039;,&lt;br /&gt;
            &amp;#039;plink&amp;#039;,&lt;br /&gt;
            &amp;#039;the&amp;#039;,&lt;br /&gt;
            &amp;#039;section&amp;#039;,&lt;br /&gt;
            &amp;#039;altvar&amp;#039;,&lt;br /&gt;
            &amp;#039;avar&amp;#039;,&lt;br /&gt;
            &amp;#039;age&amp;#039;,&lt;br /&gt;
            &amp;#039;nalign&amp;#039;,&lt;br /&gt;
            &amp;#039;nal&amp;#039;,&lt;br /&gt;
            &amp;#039;text&amp;#039;,&lt;br /&gt;
            &amp;#039;nodata&amp;#039;,&lt;br /&gt;
            &amp;#039;opts&amp;#039;,&lt;br /&gt;
            &amp;#039;placeholder&amp;#039;,&lt;br /&gt;
            &amp;#039;getParent&amp;#039;&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
		check = require(&amp;#039;Module:Check for unknown parameters&amp;#039;)._check(opts,args)&lt;br /&gt;
	else&lt;br /&gt;
		check = &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return preftext .. require(&amp;#039;Module:Flagg&amp;#039;).luaMain(frame,args) .. check&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame) return p._main(frame,     &amp;#039;Flag&amp;#039;,        &amp;#039;unc&amp;#039;,  false) end&lt;br /&gt;
p.flag = p.main&lt;br /&gt;
p[&amp;#039;&amp;#039;] = p.main&lt;br /&gt;
function p.deco(frame) return p._main(frame,     &amp;#039;Flagdeco&amp;#039;,    &amp;#039;uxx&amp;#039;,   false) end&lt;br /&gt;
p.flagdeco = p.deco&lt;br /&gt;
function p.icon(frame) return p._main(frame,     &amp;#039;Flagicon&amp;#039;,    &amp;#039;cxxl&amp;#039;,  true) end&lt;br /&gt;
p.flagicon = p.icon&lt;br /&gt;
function p.pluslink(frame) return p._main(frame, &amp;#039;Flag+link&amp;#039;,   &amp;#039;unpefo&amp;#039;, false) end&lt;br /&gt;
p[&amp;#039;+link&amp;#039;] = p.pluslink&lt;br /&gt;
p[&amp;#039;flag+link&amp;#039;] = p.pluslink&lt;br /&gt;
function p.country(frame) return p._main(frame,  &amp;#039;Flagcountry&amp;#039;, &amp;#039;unce&amp;#039;,  false) end&lt;br /&gt;
p.flagcountry = p.country&lt;br /&gt;
function p.athlete(frame) return p._main(frame,  &amp;#039;Flagathlete&amp;#039;, &amp;#039;unape&amp;#039;,   false) end&lt;br /&gt;
p.flagathlete = p.athlete&lt;br /&gt;
function p.medalist(frame) return p._main(frame,  &amp;#039;Flagmedalist&amp;#039;, &amp;#039;unce&amp;#039;,   false) end&lt;br /&gt;
p.flagmedalist = p.medalist&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Ahecht</name></author>
	</entry>
</feed>