<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.randombell.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AFlag%2Fdoc</id>
	<title>Module:Flag/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.randombell.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AFlag%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.randombell.com/index.php?title=Module:Flag/doc&amp;action=history"/>
	<updated>2026-07-31T02:42:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.randombell.com/index.php?title=Module:Flag/doc&amp;diff=1511&amp;oldid=prev</id>
		<title>Randombell: Created page with &quot;{{Module rating |beta }} {{high use}} {{lua|Module:Flagg|Module:Country alias|Module:Check for unknown parameters}} &lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --&gt; Lua-native alternative to popular flag templates. Can be used to reduce post-expand include size of pages with lots of templates, since it avoids calling multilevel templates.  == Usage == ====Generic flag templates...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.randombell.com/index.php?title=Module:Flag/doc&amp;diff=1511&amp;oldid=prev"/>
		<updated>2025-08-14T18:37:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Module rating |beta }} {{high use}} {{lua|Module:Flagg|Module:Country alias|Module:Check for unknown parameters}} &amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see &lt;a href=&quot;https://en.wikipedia.org/wiki/Wikidata&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Wikidata&quot;&gt;Wikipedia:Wikidata&lt;/a&gt;) --&amp;gt; Lua-native alternative to popular flag templates. Can be used to reduce &lt;a href=&quot;/index.php?title=WP:PEIS&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:PEIS (page does not exist)&quot;&gt;post-expand include size&lt;/a&gt; of pages with lots of templates, since it avoids calling multilevel templates.  == Usage == ====Generic flag templates...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating |beta }}&lt;br /&gt;
{{high use}}&lt;br /&gt;
{{lua|Module:Flagg|Module:Country alias|Module:Check for unknown parameters}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
Lua-native alternative to popular flag templates. Can be used to reduce [[WP:PEIS|post-expand include size]] of pages with lots of templates, since it avoids calling multilevel templates.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
====Generic flag templates====&lt;br /&gt;
* {{tl|flag}} → &amp;amp;#123;&amp;amp;#123;[[Module:flag|#invoke:flag]]|&amp;amp;#125;&amp;amp;#125;&lt;br /&gt;
* {{tl|flag country}} → {{ml|flag|country}}&lt;br /&gt;
* {{tl|flag decoration}} (or {{tl|flagdeco}}) → {{ml|flag|decoration}} (or {{ml|flag|deco}})&lt;br /&gt;
* {{tl|flag icon}} → {{ml|flag|icon}}&lt;br /&gt;
* {{tl|flag link}} → {{ml|flag|link}}&lt;br /&gt;
* {{tl|flag+link}} → {{ml|flag|+link}}&lt;br /&gt;
&lt;br /&gt;
====Sports flag templates====&lt;br /&gt;
* {{tl|flag athlete}} → {{ml|flag|athlete}}&lt;br /&gt;
* {{tl|flag medalist}} → {{ml|flag|medalist}}&lt;br /&gt;
* {{tl|flag team}} → {{ml|flag|team}}&lt;br /&gt;
* {{tl|flag IOC}} → {{ml|flag|IOC}}&lt;br /&gt;
* {{tl|flag IOC 2}} → {{ml|flag|IOC 2}}&lt;br /&gt;
* {{tl|flag IOC athlete}} → {{ml|flag|IOC athlete}}&lt;br /&gt;
* {{tl|fb}} → {{ml|flag|fb}}&lt;br /&gt;
* {{tl|fba}} → {{ml|flag|fba}}&lt;br /&gt;
* {{tl|fb-rt}} → {{ml|flag|fb-rt}}&lt;br /&gt;
* {{tl|fbicon}} → {{ml|flag|fbicon}}&lt;br /&gt;
* {{tl|fbaicon}} → {{ml|flag|fbaicon}}&lt;br /&gt;
* {{tl|ru}} → {{ml|flag|ru}}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{| {{table}}&lt;br /&gt;
! colspan=3| Template !! colspan=3| Module&lt;br /&gt;
|-&lt;br /&gt;
! Code !! Output !! [[WP:PEIS|PEIS]] !! Code !! Output !! [[WP:PEIS|PEIS]]&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|flag|CHN}} || {{flag|CHN}} || 443b || {{mlx|flag|&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;CHN}} || {{#invoke:flag||CHN}} || 128b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|flag country|CHN}} || {{flag country|CHN}} || 577b || {{mlx|flag|country|CHN}} || {{#invoke:flag|country|CHN}} || 128b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|flag decoration|CHN}}/{{tlx|flag deco|CHN}} || {{flag deco|CHN}} || 452b || {{mlx|flag|decoration|CHN}}/{{mlx|flag|deco|CHN}} || {{#invoke:flag|deco|CHN}} || 107b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|flag icon|CHN}} || {{flag icon|CHN}} || 548b || {{mlx|flag|icon|CHN}} || {{#invoke:flag|icon|CHN}} || 117b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|flag link|CHN|at the 2004 Summer Olympics}} || {{flag link|CHN|at the 2004 Summer Olympics}} || 497b || {{mlx|flag|link|CHN|at the 2004 Summer Olympics}} || {{#invoke:flag|link|CHN|at the 2004 Summer Olympics}} || 198b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|flag+link|History of|CHN}} || {{flag+link|History of|CHN}} || 663b || {{mlx|flag|+link|History of|CHN}} || {{#invoke:flag|+link|History of|CHN}} || 139b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|flag team|GBR}} || {{flag team|GBR}} || 804b || {{mlx|flag|team|GBR}} || {{#invoke:flag|team|GBR}} || 193b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|flag athlete|[[Andy Murray]]|GBR}} || {{flag athlete|[[Andy Murray]]|GBR}} || 617b || {{mlx|flag|athlete|[[Andy Murray]]|GBR}} || {{#invoke:flag|athlete|[[Andy Murray]]|GBR}} || 210b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|flag medalist|[[Andy Murray]]|GBR}} || {{flag medalist|[[Andy Murray]]|GBR}} || 469b || {{mlx|flag|medalist|[[Andy Murray]]|GBR}} || {{#invoke:flag|medalist|[[Andy Murray]]|GBR}} || 129b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|flag IOC|CAN|1924 Winter|1}} || {{flag IOC|CAN|1924 Winter|1}} || 326b || {{mlx|flag|IOC|CAN|1924 Winter|1}} || {{#invoke:flag|IOC|CAN|1924 Winter|1}} || 163b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|flag IOC 2|HKG|1954 Asian Games|1}} || {{flag IOC 2|HKG|1954 Asian Games|1}} || 368b || {{mlx|flag|IOC 2|HKG|1954 Asian Games|1}} || {{#invoke:flag|IOC 2|HKG|1954 Asian Games|1}} || 184b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|flag IOC athlete|[[Mark Spitz]]|USA|1972 Summer }} || {{flag IOC athlete|[[Mark Spitz]]|USA|1972 Summer }} || 346b || {{mlx|flag|IOC athlete|[[Mark Spitz]]|USA|1972 Summer }} || {{#invoke:flag|IOC athlete|[[Mark Spitz]]|USA|1972 Summer }} || 178b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|fb|CHN}} || {{fb|CHN}} || 560b || {{mlx|flag|fb|CHN}} || {{#invoke:flag|fb|CHN}} || 151b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|fb-rt|CHN}} || {{fb-rt|CHN}} || 482b || {{mlx|flag|fb-rt|CHN}} || {{#invoke:flag|fb-rt|CHN}} || 151b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|fbicon|CHN}} || {{fbicon|CHN}} || 444b || {{mlx|flag|fbicon|CHN}} || {{#invoke:flag|fbicon|CHN}} || 163b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|fba|CHN}} || {{fba|CHN}} || 625b || {{mlx|flag|fba|CHN}} || {{#invoke:flag|fba|CHN}} || 149b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|fbaicon|CHN}} || {{fbaicon|CHN}} || 500b || {{mlx|flag|fbaicon|CHN}} || {{#invoke:flag|fbaicon|CHN}} || 159b&lt;br /&gt;
|-&lt;br /&gt;
| {{tlx|ru|CHN}} || {{ru|CHN}} || 646b || {{mlx|flag|ru|CHN}} || {{#invoke:flag|ru|CHN}} || 210b&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Caveats ==&lt;br /&gt;
When used inside a template, parameters from that template are passed to the module. This can be useful in some situations, but can lead to conflicts (for example, if the parent template has a parameter {{para|country}} that is unrelated to the flag it is supposed to display). To prevent this behavior, add the {{para|frameonly}} parameter to the module call, e.g. {{mlx|1=flag|2=deco|3=CHN|4=frameonly=true}}.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Flag template system]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Randombell</name></author>
	</entry>
</feed>