<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.fifthempire.info/index.php?action=history&amp;feed=atom&amp;title=Template%3AFlagg%2Fdoc</id>
	<title>Template:Flagg/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.fifthempire.info/index.php?action=history&amp;feed=atom&amp;title=Template%3AFlagg%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.fifthempire.info/index.php?title=Template:Flagg/doc&amp;action=history"/>
	<updated>2026-06-20T17:19:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wiki.fifthempire.info/index.php?title=Template:Flagg/doc&amp;diff=39444&amp;oldid=prev</id>
		<title>Lusi: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.fifthempire.info/index.php?title=Template:Flagg/doc&amp;diff=39444&amp;oldid=prev"/>
		<updated>2026-01-23T23:17:36Z</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&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 23:17, 23 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&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>Lusi</name></author>
	</entry>
	<entry>
		<id>https://wiki.fifthempire.info/index.php?title=Template:Flagg/doc&amp;diff=39443&amp;oldid=prev</id>
		<title>wikipedia&gt;Ahecht: expand template name per WP:TPN</title>
		<link rel="alternate" type="text/html" href="https://wiki.fifthempire.info/index.php?title=Template:Flagg/doc&amp;diff=39443&amp;oldid=prev"/>
		<updated>2025-11-03T22:19:39Z</updated>

		<summary type="html">&lt;p&gt;expand template name per &lt;a href=&quot;/index.php?title=WP:TPN&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:TPN (page does not exist)&quot;&gt;WP:TPN&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation subpage}}&lt;br /&gt;
{{High-use}}&lt;br /&gt;
{{Lua|Module:Flagg|Module:Flagg/Altvar data|Module:CountryData|Module:Flag list|noprotcat=yes}}&lt;br /&gt;
{{#ifeq:{{NAMESPACE}}|Module|{{Module rating|beta}}}}&lt;br /&gt;
{{tnull|Flagg}} (&amp;lt;u&amp;gt;flag&amp;lt;/u&amp;gt; &amp;lt;u&amp;gt;g&amp;lt;/u&amp;gt;eneral) is a [[WP:WPFT|flag template]] with variable output format. Using [[WP:Lua|Lua]] instead of the [[WP:WPFT#How it works|standard mechanism]], it allows overriding the image name and link target, and works even if a [[:Category:Country data templates|country data template]] for an entity does not exist (without using any [[WP:Template limits#Expensive parser function calls|expensive functions]]).&lt;br /&gt;
&lt;br /&gt;
The template is not intended to fully supersede any specific flag templates it can simulate (see [[#Comparison with other templates|below]]), but can be useful for formats for which no template exists, or if its additional options are needed. It can also be used in conjunction with [[Module:Flag]] to reduce [[WP:PEIS|post-expand include size]] of pages with lots of templates.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
Aliases (alternatives) for each parameter or value are given in square brackets.&lt;br /&gt;
&lt;br /&gt;
=== Format (first unnamed parameter) ===&lt;br /&gt;
The first parameter is an alphabetic code specifying the output format. The first letter concerns the image, the second the separator, and the third the country name. The parameter is fully case-insensitive.&lt;br /&gt;
&lt;br /&gt;
If any position in the parameter value is missing or has a character not corresponding to an option below, the options marked as default will be used; e.g. a first parameter equal to &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;i**&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;izz&amp;lt;/code&amp;gt; will be read as &amp;lt;code&amp;gt;isc&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
====First letter: Image====&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Letter !! Meaning !! Description !! Example&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;u&amp;lt;/u&amp;gt;nlinked || Image is not linked (default). || {{#invoke:DemoTemplate|flagg|uxx|France}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;c&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;c&amp;lt;/u&amp;gt;ountry || Image links to country/entity page. || {{#invoke:DemoTemplate|flagg|cxx|France}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt;&amp;amp;nbsp;[&amp;lt;code&amp;gt;f&amp;lt;/code&amp;gt;] || &amp;lt;u&amp;gt;p&amp;lt;/u&amp;gt;refix/suffix || Image links to country name with prefixed and/or suffixed text (default &amp;quot;Flag of ...&amp;quot;), set using {{para|pref}} and {{para|suff}} (see [[#pref|below]]). || {{#invoke:DemoTemplate|flagg|pxx|France}}&lt;br /&gt;
|- id=&amp;quot;i&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;i&amp;lt;/u&amp;gt;mage page || Image links to file description page; use this for non-public-domain images, for which attribution is required. || {{#invoke:DemoTemplate|flagg|ixx|France}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;d&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;d&amp;lt;/u&amp;gt;ata template || Image links to the used country data template, for use in discussion/documentation. Automatically adds &amp;lt;code&amp;gt;redirect=no&amp;lt;/code&amp;gt; if link is a redirect. || {{#invoke:DemoTemplate|flagg|dxx|France}}&lt;br /&gt;
|- id=&amp;quot;x&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; || [[X mark]] || No image is displayed. If the second letter is anything other than &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, and [[#o|&amp;lt;code&amp;gt;o&amp;lt;/code&amp;gt;]] is not set, an unlinked transparent image is actually used to preserve the spacing. || {{#invoke:DemoTemplate|flagg|xnx|France}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Second letter: Separator====&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Letter !! Meaning !! Description !! scope=&amp;quot;col&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;min-width:25em&amp;quot;|Example&lt;br /&gt;
|- id=&amp;quot;s&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;s&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;s&amp;lt;/u&amp;gt;pan box || The flag image is put in a fixed-width &amp;amp;lt;span&amp;amp;gt; tag, meaning the country names are aligned in vertical lists; see documentation of {{tl|Flaglist}} (default). || colspan=&amp;quot;2&amp;quot;|{{#invoke:DemoTemplate|flagg|usu|Niger}}&lt;br /&gt;
|- id=&amp;quot;n&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;n&amp;lt;/u&amp;gt;on-breaking space || A non-breaking space (&amp;lt;code&amp;gt;&amp;amp;amp;nbsp;&amp;lt;/code&amp;gt;) is used, like in most flag templates, including {{tl|flag}}. Note that &amp;amp;amp;nbsp; does not actually prevent wrapping between image and text in all browsers; use [[#w|&amp;lt;code&amp;gt;w&amp;lt;/code&amp;gt;]] as described below if needed. || colspan=&amp;quot;2&amp;quot;|{{#invoke:DemoTemplate|flagg|unu|Niger}}&lt;br /&gt;
|- id=&amp;quot;l&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;l&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;l&amp;lt;/u&amp;gt;ine break || A line break (&amp;lt;code&amp;gt;&amp;amp;lt;br/&amp;amp;gt;&amp;lt;/code&amp;gt;) is used as separator. || colspan=&amp;quot;2&amp;quot;|{{#invoke:DemoTemplate|flagg|ulu|Niger}}&lt;br /&gt;
|- id=&amp;quot;t&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;t&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;t&amp;lt;/u&amp;gt;able cell || A table cell separator (two pipes) is used. || {{#invoke:DemoTemplate|flagg|utu|Niger}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; || X mark || No separator is used. || colspan=&amp;quot;2&amp;quot;|{{#invoke:DemoTemplate|flagg|uxu|Niger}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Third letter: Name====&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Letter !! Meaning !! Description !! Example&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;c&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;c&amp;lt;/u&amp;gt;ountry || The country name links to the main country/entity page (default). || {{#invoke:DemoTemplate|flagg|xxc|Chile}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;p&amp;lt;/u&amp;gt;refix/suffix || The country name links to the country page with prefixed or suffixed text (default &amp;quot;Flag of ...&amp;quot;), set using {{para|pref}} and {{para|suff}} (see [[#pref|below]]). || {{#invoke:DemoTemplate|flagg|xxp|Chile}}&lt;br /&gt;
|- id=&amp;quot;f&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;f&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;f&amp;lt;/u&amp;gt;ull prefix/suffix || Same as &amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt;, except that the prefix and/or suffix is/are displayed. || {{#invoke:DemoTemplate|flagg|xxf|Chile}}&lt;br /&gt;
|- id=&amp;quot;l&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;l&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;l&amp;lt;/u&amp;gt;ink target || Same as &amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt;, except that the target of the link is displayed. || {{#invoke:DemoTemplate|flagg|xxl|avar=army|Chile}}&lt;br /&gt;
|- id=&amp;quot;b&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;b&amp;lt;/u&amp;gt;oth country and prefix/suffix || Combined country link and prefix/suffix link: country name links to country page, while prefix and/or suffix link(s) to prefixed/suffixed title. || {{#invoke:DemoTemplate|flagg|xxb|Chile}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;u&amp;lt;/u&amp;gt;nlinked (cf. {{tl|flagu}}) || The country name is displayed as plain text, without link. || {{#invoke:DemoTemplate|flagg|xxu|Chile}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;d&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;d&amp;lt;/u&amp;gt;ata template || Country name is linked to the used country data template, for use in discussion/documentation. Automatically adds &amp;lt;code&amp;gt;redirect=no&amp;lt;/code&amp;gt; if a redirect is used. || {{#invoke:DemoTemplate|flagg|xxd|Chile}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;a&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;a&amp;lt;/u&amp;gt;bbreviation || Country name is not linked, but the name of the main country/entity page is presented as mouseover text if it is different. || {{#invoke:DemoTemplate|flagg|xxa|Chile}}&amp;lt;br /&amp;gt;{{#invoke:DemoTemplate|flagg|xxa|CHI}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; || X mark || No text is displayed. || {{#invoke:DemoTemplate|flagg|xxx|Chile}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt; || Add * || Similar to &amp;quot;p&amp;quot;, except that an asterisk (*) is added to the text of the link if it goes to a more specific article.|| {{#invoke:DemoTemplate|flagg|xx*|Chile}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Additional options====&lt;br /&gt;
Some additional options can be enabled by appending the following letters to the three-letter code in any order:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Letter !! Description !! Example&lt;br /&gt;
|- id=&amp;quot;a&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;a&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;A&amp;lt;/u&amp;gt;dds the country name (the &amp;quot;name&amp;quot; parameter, or if unset the second unnamed parameter) as &amp;lt;u&amp;gt;a&amp;lt;/u&amp;gt;lt text and mouseover for the image. If [[#alt|{{para|alt}}]] is used for a custom alt/mouseover text, this does not need to be separately set. || {{#invoke:DemoTemplate|flagg|uxxa|Pakistan}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;B&amp;lt;/u&amp;gt;lanks the text portion if a flag is not found. || {{#invoke:DemoTemplate|flagg|uncb|Xanadu}}&amp;lt;br/&amp;gt;Compare with:&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unc|Xanadu}}&lt;br /&gt;
|- id=&amp;quot;e&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;e&amp;lt;/code&amp;gt; || Uses the name set in the country data template (rather than the first parameter) as display name, like in {{tl|flag country}} (i.e. &amp;lt;u&amp;gt;e&amp;lt;/u&amp;gt;xpands abbreviated forms). || {{#invoke:DemoTemplate|flagg|unue|PAK}}&lt;br /&gt;
|- id=&amp;quot;f&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;f&amp;lt;/code&amp;gt; || If the prefixed/suffixed article name doesn&amp;#039;t exist, &amp;lt;u&amp;gt;f&amp;lt;/u&amp;gt;allback to linking to the non-prefixed/suffixed page. This may be [[:mw:Help:Extension:ParserFunctions#ifexist_limits|expensive]], and the number of time it can be used on single page is limited. || {{#invoke:DemoTemplate|flagg|psff|Egypt|pref=Flag templates in}}&amp;lt;br/&amp;gt;Compare with:&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|psf|Egypt|pref=Flag templates in}}&lt;br /&gt;
|- id=&amp;quot;i&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt; || Uses the [[List of IOC country codes|IOC country codes]] table from [[Module:Country alias/data]] to resolve the country data from the entity parameter. || {{#invoke:DemoTemplate|flagg|uxxi|BRN}}&amp;lt;br/&amp;gt;Compare with:&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|uxx|BRN}}&lt;br /&gt;
|- id=&amp;quot;o&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;l&amp;lt;/code&amp;gt; || Adds the &amp;lt;u&amp;gt;l&amp;lt;/u&amp;gt;ink name (as defined by the &amp;quot;image&amp;quot; parameter) as alt text and mouseover for the image. If [[#alt|{{para|alt}}]] is used for a custom alt/mouseover text, this does not need to be separately set. || {{#invoke:DemoTemplate|flagg|cxxl|PAK}}&amp;lt;br/&amp;gt;Compare with:&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|cxxa|PAK}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;o&amp;lt;/code&amp;gt; || &amp;lt;u&amp;gt;O&amp;lt;/u&amp;gt;mits the image and spacing in case the image is an invisible placeholder, i.e., only include the spacing if a flag is displayed. Useful for inline/standalone usages or horizontal lists, where name alignment is not needed. || {{#invoke:DemoTemplate|flagg|unuo|Pakistan|image=}}&amp;lt;br/&amp;gt;Compare with:&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unu|Pakistan|image=}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt; || Wraps the text in &amp;lt;u&amp;gt;P&amp;lt;/u&amp;gt;arentheses. || {{#invoke:DemoTemplate|flagg|unup|Pakistan}}&lt;br /&gt;
|- id=&amp;quot;r&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;r&amp;lt;/code&amp;gt; || Reverses the order of the elements, putting the image to the &amp;lt;u&amp;gt;r&amp;lt;/u&amp;gt;ight of the name; cf. {{tl|flagright}}. Doesn&amp;#039;t affect the order of letters in the format code. || {{#invoke:DemoTemplate|flagg|uncr|Pakistan}}&lt;br /&gt;
|- id=&amp;quot;w&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;w&amp;lt;/code&amp;gt; || Avoids &amp;lt;u&amp;gt;w&amp;lt;/u&amp;gt;rapping by adding {{tag|span|params=class=&amp;quot;nowrap&amp;quot;}} around the output. || {{#invoke:DemoTemplate|flagg|unuw|Pakistan}}&lt;br /&gt;
|- id=&amp;quot;t&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;t&amp;lt;/code&amp;gt; || Aligns to the left in a &amp;lt;u&amp;gt;t&amp;lt;/u&amp;gt;able. || &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Entity (second unnamed parameter) ===&lt;br /&gt;
The second parameter is the country or entity name. The template attempts to read the flag and link data from &amp;quot;Template:Country data &amp;#039;&amp;#039;country&amp;#039;&amp;#039;&amp;quot;; if that does not exist, the same parameter will be used as default country link and no automatic image will be displayed. The parameter also defines the default displayed country name, if the [[#e|{{mono|e}}]] option above is not used.&lt;br /&gt;
&lt;br /&gt;
=== Image parameters ===&lt;br /&gt;
;{{para|variant}} [third unnamed parameter]&lt;br /&gt;
:Specifies a variant flag image, as defined and documented in each entity&amp;#039;s data template. For example, {{#invoke:DemoTemplate|flagg|ixx|Germany|naval}} uses the &amp;quot;naval&amp;quot; variant of [[Template:Country data Germany]].&lt;br /&gt;
;{{para|image}}&lt;br /&gt;
:Custom image name, with or without the &amp;quot;File:&amp;quot; namespace prefix. Can be used if the wanted image is not available as variant for the entity (you can alternatively request it be added at the respective data template&amp;#039;s talk page), or if no data template exists. Set to &amp;quot;none&amp;quot; [&amp;quot;blank&amp;quot;, empty string] to use an unlinked transparent image (functionally identical to the [[#x|{{mono|x}}]] format).&lt;br /&gt;
;{{para|size}} [{{para|sz}}]&lt;br /&gt;
:Sets the image size; default is 23&amp;amp;times;15 pixels (larger for [[:Category:Country data templates with distinct default size|some entities]]). You can use an explicit size in pixels (e.g. 30x20px; the &amp;quot;px&amp;quot; suffix is optional) or one of the relative sizes &amp;quot;xs&amp;quot; (half the default dimensions), &amp;quot;s&amp;quot;, &amp;quot;m&amp;quot;, &amp;quot;l&amp;quot; and &amp;quot;xl&amp;quot; (twice the default size).&lt;br /&gt;
;{{para|border}}&lt;br /&gt;
:By default, the flag icon includes a border, except if it is disabled in the entity&amp;#039;s country data template. {{para|border}} can be set to &amp;quot;yes&amp;quot; [&amp;quot;y&amp;quot;, &amp;quot;1&amp;quot;] to force a border when excluded by default, or &amp;quot;no&amp;quot; [&amp;quot;n&amp;quot;, &amp;quot;0&amp;quot;, empty string] to prevent one.&lt;br /&gt;
;{{anchor|align}}{{para|align}} [{{para|al}}]&lt;br /&gt;
:Set to &amp;quot;left&amp;quot; [&amp;quot;l&amp;quot;], &amp;quot;center&amp;quot; [&amp;quot;centre&amp;quot;, &amp;quot;c&amp;quot;, &amp;quot;middle&amp;quot;, &amp;quot;m&amp;quot;] or &amp;quot;right&amp;quot; [&amp;quot;r&amp;quot;] to set the alignment of the image for the span box ([[#s|{{mono|s}}]]) and table cell ([[#t|{{mono|t}}]]) formats. For {{mono|t}}, the default is center; for {{mono|s}}, it is right-aligned if [[#r|{{mono|r}}]] is set, else left-aligned.&lt;br /&gt;
;{{para|width}} [{{para|w}}]&lt;br /&gt;
:Sets the width of the span box surrounding the image for the span box ([[#s|{{mono|s}}]]) format, in pixels, without the &amp;quot;px&amp;quot; suffix. The default is calculated by [[Module:Flaglist]] and depends on the image size.&lt;br /&gt;
;{{anchor|alt}}{{para|alt}}&lt;br /&gt;
:Sets alt text and mouseover text for the flag image, if it is for information rather than just decoration. If the wanted text is equal to the entity name, use the [[#a|{{mono|a}}]] option described above.&lt;br /&gt;
;{{para|ilink}}&lt;br /&gt;
:Overrides the link target of the image (only use if none of the image formats above allow linking to the desired page).&lt;br /&gt;
;{{para|noredlink|no}}&lt;br /&gt;
:Displays a red link to the missing country data template instead of a placeholder image. If set to &amp;lt;code&amp;gt;notext&amp;lt;/code&amp;gt;, no text will be displayed alongside the red link. Defaults to &amp;quot;yes&amp;quot; (no red link displayed).&lt;br /&gt;
;{{para|missingcategory|&amp;#039;&amp;#039;category name&amp;#039;&amp;#039;}}&lt;br /&gt;
:Adds the page to &amp;#039;&amp;#039;category name&amp;#039;&amp;#039; if the image if the country data is missing.&lt;br /&gt;
&lt;br /&gt;
=== Text and link parameters ===&lt;br /&gt;
;{{para|name}}&lt;br /&gt;
:Changes the displayed country name. Note that with the [[#f|{{mono|f}}]] format, this includes the prefix and/or suffix.&lt;br /&gt;
;{{para|clink}} [{{para|link}}]&lt;br /&gt;
:Overwrites the link to the country article; this is also used to construct the prefix/suffix link for the {{mono|f}}, {{mono|p}} and {{mono|b}} options.&lt;br /&gt;
;{{anchor|pref}}{{para|pref}}, {{para|suff}}, {{para|plink}}&lt;br /&gt;
:{{para|pref}} and {{para|suff}} set the prefix and suffix to use for the prefix/suffix links (format letters {{mono|f}}, {{mono|p}} and {{mono|b}}). The default, if neither is specified, is &amp;quot;Flag of&amp;quot; as prefix (cf. {{tl|flagof}}) and no suffix. {{para|plink}} can be used to override the combined link.&lt;br /&gt;
;{{para|the}}&lt;br /&gt;
:Set to &amp;quot;yes&amp;quot; [&amp;quot;y&amp;quot;, &amp;quot;1&amp;quot;] to include the article &amp;quot;the&amp;quot; before the country name in the prefix/suffix links. Example: {{#invoke:DemoTemplate|flagg|usf|Philippines|the=1}}. Use {{para|pthe}} if the link needs &amp;quot;the&amp;quot; but the name doesn&amp;#039;t, and {{para|nthe}} if the name needs it but the link doesn&amp;#039;t.&lt;br /&gt;
;{{para|section}}&lt;br /&gt;
:Links to a section of the linked article without displaying the section name. If both a country link and a prefix/suffix link are used, use {{para|csection}} for a section of the country article, and {{para|psection}} for a section of the prefixed/suffixed article.&lt;br /&gt;
;{{para|altvar}} [{{para|avar}}], {{para|age}}&lt;br /&gt;
:Enables using one of a set of standard suffixes for linking to sports teams and militaries. The altvar and suffix data is loaded from [[Module:Flagg/Altvar data]]. The possible parameter values are the base names of the corresponding specialized templates; alias values from full sports names exist (see examples below and data page). For some entities this also changes the image to a variant specific to a sport or military branch; for example, {{#invoke:DemoTemplate|flagg|usp|Ireland|avar=ru}} uses the [[List of flags of Ireland#Sporting flags|IRFU flag]] to represent the Irish rugby union team. For youth teams in some sports (see the data page), the age limit must be additionally set using {{para|age}}.&lt;br /&gt;
;{{para|nalign}} [{{para|nal}}]&lt;br /&gt;
:Sets the alignment of the text in table cell format ({{mono|t}}). The default is left; the possible values are the same as for [[#align|{{para|align}}]].&lt;br /&gt;
;{{para|preftext}}&lt;br /&gt;
:Adds a text-only prefix that is not included in the link. This text is not affected by any option other than {{mono|b}} for blanking text if no flag found. It will be separated from the link text by &amp;lt;code&amp;gt;&amp;amp;nb&amp;amp;zwj;sp;&amp;lt;/code&amp;gt; unless the {{mono|x}} or {{mono|n}} separator options are specified (in which case it will use nothing or a line break, respectively).&lt;br /&gt;
;{{para|text}}&lt;br /&gt;
:Overrides the entire text; only use when necessary for any nonstandard formats. Alternatively, you can set the third letter of the format parameter to {{mono|x}} (no text) and add custom text outside the template.&lt;br /&gt;
;{{para|nodata|y}}&lt;br /&gt;
:Overrides attempts to use the corresponding {{tld|country data ...}} template, which is useful when the corresponding data template doesn&amp;#039;t exist.&lt;br /&gt;
;{{para|pref2}}, {{para|suff2}}, {{para|plink2}}, {{para|psection2}}&lt;br /&gt;
: If the f extra is specified, and the prefix/suffixed article name being linked to doesn&amp;#039;t exist, then use these parameters as an alternate prefix/suffix, and check if it exists as well. (If it still doesn&amp;#039;t exist, then fall back to the non-prefixed/suffixed page as normal). This may be [[:mw:Help:Extension:ParserFunctions#ifexist_limits|expensive]], and the number of time it can be used on single page is limited.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Formats:&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|usc|Fiji}} (default format)&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg||Fiji}} (default format)&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|pnbr|Fiji}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;amp;lt;span style=&amp;quot;display:inline-block;text-align:center;&amp;quot;&amp;amp;gt;{{((}}flagg|ilf|Fiji|sz=xl{{))}}&amp;amp;lt;/span&amp;amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; &amp;lt;span style=&amp;quot;display:inline-block;text-align:center;&amp;quot;&amp;gt;{{flagg|ilf|Fiji|sz=xl}}&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Table format &amp;amp; alignment:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:75%;&amp;quot;&lt;br /&gt;
| {{tnull|flagg|utu|Jamaica}} || {{flagg|utu|Jamaica}}&lt;br /&gt;
|-&lt;br /&gt;
| {{tnull|flagg|utur|Jamaica}} || {{flagg|utur|Jamaica}}&lt;br /&gt;
|-&lt;br /&gt;
| {{tnull|flagg|utu|Jamaica|al{{=}}l|nal{{=}}l}} || {{flagg|utu|Jamaica|al=l|nal=l}}&lt;br /&gt;
|-&lt;br /&gt;
| {{tnull|flagg|utu|Jamaica|al{{=}}c|nal{{=}}c}} || {{flagg|utu|Jamaica|al=c|nal=c}}&lt;br /&gt;
|-&lt;br /&gt;
| {{tnull|flagg|utu|Jamaica|al{{=}}r|nal{{=}}r}} || {{flagg|utu|Jamaica|al=r|nal=r}}&lt;br /&gt;
|}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|usu|Switzerland}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|usu|Switzerland|al=l}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|usu|Switzerland|al=c}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|usu|Switzerland|al=r}}&lt;br /&gt;
&lt;br /&gt;
Standard image &amp;amp; name parameters:&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|Myanmar}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|Myanmar|border=}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|Myanmar|1974}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|Myanmar|variant=1974}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|Myanmar|variant=1974|name=Burma}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|Burma|variant=1974}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|Myanmar|sz=30}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|Myanmar|size=30}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|Myanmar|size=30px}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|Myanmar|size=30x18px}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|Myanmar|size=xs}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|Myanmar|size=xl}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|Myanmar|size=xs|width=30}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|Myanmar|image=}}&lt;br /&gt;
*&amp;lt;code&amp;gt;{{((}}flagg|isc|Myanmar|image=Flag of None.svg{{))}}&amp;lt;/code&amp;gt; &amp;amp;rarr; {{flagg|isc|Myanmar|image=Flag of None.svg|demo=1}}&lt;br /&gt;
*&amp;lt;code&amp;gt;{{((}}flagg|isc|Myanmar|image=File:Flag of None.svg{{))}}&amp;lt;/code&amp;gt; &amp;amp;rarr; {{flagg|isc|Myanmar|image=File:Flag of None.svg|demo=1}}&lt;br /&gt;
&lt;br /&gt;
Links and altvars:&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|psp|Egypt}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|psf|Egypt}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|psb|Egypt}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|psb|Philippines|the=1}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|csc|Egypt|section=History}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|csb|Egypt|csection=History}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|psb|Egypt|variant=1922|psection=Kingdom of Egypt (1922–1953)}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|psb|Egypt|plink=List of Egyptian flags}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|psf|Egypt|pref=History of}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|psp|Egypt|suff=at the Olympics}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|psp|Egypt|avar=fb}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|psp|Egypt|avar=football}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|psp|Egypt|avar=fbu|age=20}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|psl|Egypt|avar=navy}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|unapi|EGY|preftext=Sara Ahmed}}&lt;br /&gt;
&lt;br /&gt;
Non-existing data template: {{#ifexist:Template:Country data EUSSR|&amp;#039;&amp;#039;{{red|A data template does exist; this documentation needs updating.}}&amp;#039;&amp;#039;}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|EUSSR|nodata=1}}&lt;br /&gt;
*{{#invoke:DemoTemplate|flagg|isc|EUSSR|nodata=1|image=EUSSR red flag.svg|size=xl}}&lt;br /&gt;
&lt;br /&gt;
== Adding links to specialized country, state, etc. articles. With asterisk ==&lt;br /&gt;
:&amp;#039;&amp;#039;See also: [[Help:Table#Adding links to specialized country, state, etc. articles. With asterisk|Help:Table#Adding links to specialized country, state, etc. articles. With asterisk]]. &amp;lt;!-- Anchor link works even if section name changes --&amp;gt; Section below copied from there. Please update here as changes are made there.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
*[[List of U.S. states and territories by incarceration and correctional supervision rate]]&lt;br /&gt;
*[[List of countries by incarceration rate]]&lt;br /&gt;
&lt;br /&gt;
Once you have a table with {{tl|flaglist}}, &amp;#039;&amp;#039;and/or other flag template such as {{tl|flag}},&amp;#039;&amp;#039; it is easy to convert the links to specialized links. So instead of &amp;#039;&amp;#039;&amp;#039;[[Oklahoma]]&amp;#039;&amp;#039;&amp;#039; you would have &amp;#039;&amp;#039;&amp;#039;[[Incarceration in Oklahoma]]&amp;#039;&amp;#039;&amp;#039;, or if that article does not exist, then &amp;#039;&amp;#039;&amp;#039;[[Crime in Oklahoma]]&amp;#039;&amp;#039;&amp;#039;. &lt;br /&gt;
&lt;br /&gt;
This works with full country or US state names. Also with abbreviated (3-letter) country names, and abbreviated (2-letter) US state names. &lt;br /&gt;
&lt;br /&gt;
Use a global find-and-replace as previously described, but without regular expressions. Replace:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flag|&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:or&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flaglist|&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagg|us*eft|pref=Incarceration in|pref2=Crime in|&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The bar after flag or flaglist is necessary to avoid problems in case you have to replace 2 flag templates. &lt;br /&gt;
&lt;br /&gt;
The {{tl|flagg}} template looks for the articles. If it finds one of the two choices it adds the link and an asterisk after the location name. If it does not find either article, it just adds the standard link.&lt;br /&gt;
&lt;br /&gt;
Substitute your preferred topics in the &amp;#039;&amp;#039;&amp;#039;pref=&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;pref2=&amp;#039;&amp;#039;&amp;#039; spots.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagg|us*eft|&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; usually left aligns the text of that column (due to the [[template:flagg|&amp;quot;t&amp;quot; at the end of the code]]). For some unknown reason that is not always true. In that case each cell in that column will need &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;style=text-align:left&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; in it. Or use the whole column code described here: [[#Column alignment]] and here: {{tl|Table alignment}}. See [[User:Timeshifter/Sandbox206|example table]]. &lt;br /&gt;
&lt;br /&gt;
[[Washington, D.C.]] - Have to force the full name to be shown: &lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagg|us*eft|pref=Crime in|Washington, D.C.|name=Washington, D.C.}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This particular use of {{tl|flagg}} parameters is &amp;#039;&amp;#039;&amp;#039;[[mw:Help:Extension:ParserFunctions#ifexist_limits|expensive]]&amp;#039;&amp;#039;&amp;#039; and can only be used on a few hundred links per article. Every time the article is saved it occurs, even for [[Wikipedia:Purge#Null edit|null edits]]. So only one big country table per article. Other country tables in the same article should use standard links.&lt;br /&gt;
&lt;br /&gt;
In [[List of countries by incarceration rate]] the {{tl|flagg}} template creates a link to [[Incarceration in United States]]. That link is a redirect to [[Incarceration in the United States]]. Add &amp;quot;the&amp;quot; as necessary to create redirect pages. Admins will delete redirects that are not linked from within Wikipedia. So if you need to create redirects be sure to use them right away in an article table. Or keep them in a sandbox that the admins can see until you use them in an article table. See [[User:Timeshifter/Sandbox94|examples]]. See [[User:Timeshifter/Sandbox158|list]].&lt;br /&gt;
&lt;br /&gt;
{{tl|Flagg}} removes the names of the countries behind territories, subnational areas, etc.. This makes for more compact tables. Other flag templates (such as {{tl|flaglist}}) do not do that. But that template can not create specialized country links.&lt;br /&gt;
&lt;br /&gt;
See [https://global-search.toolforge.org Global Search] at Toolforge. Search for &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;quot;{{flagg|us*eft&amp;quot;&amp;lt;/nowiki&amp;gt; - in quotes. To get transclusion count and list of articles.&lt;br /&gt;
&lt;br /&gt;
The {{tl|flagg}} template does not work if &amp;#039;&amp;#039;&amp;#039;colspan&amp;#039;&amp;#039;&amp;#039; is used before the country/state name. {{tl|flag+link}} works. See: [[Template talk:Flagg#Does not work with colspan]]. See section farther down for {{tl|flag+link}} info: #Without asterisks. Only one preference.&lt;br /&gt;
&lt;br /&gt;
== Comparison with other templates ==&lt;br /&gt;
These &amp;quot;specialized&amp;quot; templates predate Flagg, and while most do not have options for custom links and images, they are probably faster because they only do two transclusions without invoking Lua.&lt;br /&gt;
&lt;br /&gt;
=== General templates ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Template!!Corresponding {{tnull|flagg}} syntax!!Example&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|flag|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|uncb|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{#invoke:DemoTemplate|flag|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unc|China}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|flagbig|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|ulc|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|sz{{=}}l}}||{{#invoke:DemoTemplate|flagbig|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|ulc|China|sz=l}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|flagc|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|inc|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{#invoke:DemoTemplate|flagc|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|inc|China}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|flag country|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|unce|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{#invoke:DemoTemplate|flag country|CHN}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unce|CHN}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|flag decoration|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|uxxo|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{#invoke:DemoTemplate|flag decoration|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|uxx|China}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|flag icon|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|cxxlo|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{#invoke:DemoTemplate|flag icon|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|cxxlo|China}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|flagicon image|&amp;#039;&amp;#039;image&amp;#039;&amp;#039;}}||{{tnull|flagg|uxx|image{{=}}&amp;#039;&amp;#039;image&amp;#039;&amp;#039;}}||{{#invoke:DemoTemplate|flagicon image|Flag of China.svg}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|uxx|image=Flag of China.svg}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|flag link|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|&amp;#039;&amp;#039;suffix&amp;#039;&amp;#039;}}||{{tnull|flagg|unpe|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|suff{{=}}&amp;#039;&amp;#039;suffix&amp;#039;&amp;#039;}}||{{#invoke:DemoTemplate|flag link|China|at the Hopman Cup}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unpe|China|suff=at the Hopman Cup}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|flag+link|&amp;#039;&amp;#039;prefix&amp;#039;&amp;#039;|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|unpe|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|pref{{=}}&amp;#039;&amp;#039;prefix&amp;#039;&amp;#039;}} (no existence check)&amp;lt;br/&amp;gt;{{tnull|flagg|unpef|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|pref{{=}}&amp;#039;&amp;#039;prefix&amp;#039;&amp;#039;}} (expensive)||{{#invoke:DemoTemplate|flag+link|Agriculture in|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unpe|China|pref=Agriculture in}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unpef|China|pref=Examples in}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|flaglist|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|usc|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{#invoke:DemoTemplate|flaglist|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|usc|China}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|flagof|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|unp|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|sz{{=}}l}}||{{#invoke:DemoTemplate|flagof|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unp|China|sz=l}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|flagright|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|uncr|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{#invoke:DemoTemplate|flagright|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|uncr|China}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|flagu|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|unu|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{#invoke:DemoTemplate|flagu|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unu|China}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|noflag|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|xnu|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{#invoke:DemoTemplate|noflag|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|xnu|China}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|noflag|&amp;amp;#91;&amp;amp;#91;&amp;#039;&amp;#039;country&amp;#039;&amp;#039;&amp;amp;#93;&amp;amp;#93;}}||{{tnull|flagg|xnc|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{#invoke:DemoTemplate|noflag|[[China]]}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|xnc|China}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Sports/military templates ===&lt;br /&gt;
The football templates are used as examples here; other sports that have separate templates work correspondingly.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Template!!Corresponding {{tnull|flagg}} syntax!!Example&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|fb|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|unpe|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|avar{{=}}fb}}||{{#invoke:DemoTemplate|fb|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unpe|China|avar=fb}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|fb|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|align{{=}}1}}||{{tnull|flagg|uspe|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|avar{{=}}fb|al{{=}}c}}||{{#invoke:DemoTemplate|fb|China|align=1}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|uspe|China|avar=fb|al=c}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|fb-big|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|ulpe|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|avar{{=}}fb|sz{{=}}l}}||{{#invoke:DemoTemplate|fb-big|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|ulpe|China|avar=fb|sz=l}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|fb-rt|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|unpre|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|avar{{=}}fb}}||{{#invoke:DemoTemplate|fb-rt|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unpre|China|avar=fb}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|fbicon|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|pxxl|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|avar{{=}}fb}}||{{#invoke:DemoTemplate|fbicon|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|pxxl|China|avar=fb}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|fbu|&amp;#039;&amp;#039;age&amp;#039;&amp;#039;|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|unpe|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|avar{{=}}fbu|age{{=}}&amp;#039;&amp;#039;age&amp;#039;&amp;#039;}}||{{#invoke:DemoTemplate|fbu|17|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unpe|China|avar=fbu|age=17}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|fbw|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|unpe|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|avar{{=}}fbw}}||{{#invoke:DemoTemplate|fbw|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unpe|China|avar=fbw}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|fbwu|&amp;#039;&amp;#039;age&amp;#039;&amp;#039;|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|unpe|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|avar{{=}}fbwu|age{{=}}&amp;#039;&amp;#039;age&amp;#039;&amp;#039;}}||{{#invoke:DemoTemplate|fbwu|17|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unpe|China|avar=fbwu|age=17}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|army|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|unl|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|avar{{=}}army}}||{{#invoke:DemoTemplate|army|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unl|China|avar=army}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|navy|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|unl|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|avar{{=}}navy}}||{{#invoke:DemoTemplate|navy|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unl|China|avar=navy}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|air force|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|unl|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|avar{{=}}air force}}||{{#invoke:DemoTemplate|air force|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|unl|China|avar=air force}}&lt;br /&gt;
|-&lt;br /&gt;
|{{tlx|armed forces|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;}}||{{tnull|flagg|usl|&amp;#039;&amp;#039;country&amp;#039;&amp;#039;|avar{{=}}military}}||{{#invoke:DemoTemplate|armed forces|China}}&amp;lt;br/&amp;gt;{{#invoke:DemoTemplate|flagg|usl|China|avar=military}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
*[[Module:Flag]] &amp;amp;mdash; a lua wrapper for [[Module:Flagg]] designed to easily replace some common flag templates&lt;br /&gt;
*[[User:SiBr4/Flagg tests|User:SiBr&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;/Flagg tests]] &amp;amp;mdash; extensive tests of the template&amp;#039;s functions, which may also serve as additional examples &lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Flag template system]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Ahecht</name></author>
	</entry>
</feed>