<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>http://wiki.kyoshihira.uk/index.php?action=history&amp;feed=atom&amp;title=Template%3AFlagicon%2Fdoc</id>
	<title>Template:Flagicon/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.kyoshihira.uk/index.php?action=history&amp;feed=atom&amp;title=Template%3AFlagicon%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://wiki.kyoshihira.uk/index.php?title=Template:Flagicon/doc&amp;action=history"/>
	<updated>2026-10-26T00:52:54Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://wiki.kyoshihira.uk/index.php?title=Template:Flagicon/doc&amp;diff=2183&amp;oldid=prev</id>
		<title>Lhscogs：​导入1个版本</title>
		<link rel="alternate" type="text/html" href="http://wiki.kyoshihira.uk/index.php?title=Template:Flagicon/doc&amp;diff=2183&amp;oldid=prev"/>
		<updated>2025-07-02T07:56:21Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本&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;zh&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2025年7月2日 (三) 07:56的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;zh&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Lhscogs</name></author>
	</entry>
	<entry>
		<id>http://wiki.kyoshihira.uk/index.php?title=Template:Flagicon/doc&amp;diff=2182&amp;oldid=prev</id>
		<title>wikipedia&gt;魔琴：​// Edit via Wikiplus</title>
		<link rel="alternate" type="text/html" href="http://wiki.kyoshihira.uk/index.php?title=Template:Flagicon/doc&amp;diff=2182&amp;oldid=prev"/>
		<updated>2024-09-12T13:15:01Z</updated>

		<summary type="html">&lt;p&gt;// Edit via Wikiplus&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;{{Documentation subpage}}&amp;lt;/noinclude&amp;gt;{{high-use|93645}}&lt;br /&gt;
&amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
本模板用以展示“icon”大小的旗帜，目前预设为22*20像素（定义在[[:Template:Flagicon/core|Flagicon/core]]中），外加一个像素的边框。旗帜图片包含一个指向对应条目的、可点击的链接。如果需要不带链接的旗帜图标，请用[[Template:Flagdeco|Flagdeco]]。&lt;br /&gt;
&lt;br /&gt;
使用本模板前请参阅[[Wikipedia:格式手册/旗帜]]。&lt;br /&gt;
&amp;lt;!--&amp;#039;&amp;#039;&amp;#039;Template:Flagicon&amp;#039;&amp;#039;&amp;#039; displays a flag of the named parameter in &amp;quot;icon&amp;quot; size, currently 23×15 pixels maximally (defined in [[Template:Flagicon/core]]), plus a one-pixel border. The image also has a clickable link to the associated article. For an unlinked flag icon, use [[Template:Flagdeco]] instead.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Please consider the [[Wikipedia:Manual of Style (icons)#Flags|Manual of Style section on flag]]s before using this template.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 使用方法 ==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagicon|name|variant=|size=|noredlink=}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
;name: The first parameter is mandatory, and identifies the name of the country, region, city, etc. A full list of available values can be found in [[:Category:Country data templates]]. For example, [[:Template:Country data Bulgaria]] is used when the &amp;#039;&amp;#039;name&amp;#039;&amp;#039; parameter is specified as &amp;lt;code&amp;gt;Bulgaria&amp;lt;/code&amp;gt;. Many flags are also available via shortened &amp;quot;aliases&amp;quot;, such as standard three-letter country codes as specified by [[ISO 3166-1 alpha-3]], [[List of IOC country codes|IOC]], or [[List of FIFA country codes|FIFA]]. The list of available &amp;quot;aliases&amp;quot; is found in [[:Category:Country data redirects]].  Many of these country codes could be considered obscure, so it is recommended to use the full country name.&lt;br /&gt;
;variant: The second parameter is optional, and identifies a flag variant to be used instead of the standard flag. This is most often used for historical flags but can also be used to specify naval flags, sport-use flags, etc. The list of available flag variants for each country is documented on the specific page for the country data template. For example, [[Template:Country data Bulgaria]] includes a description of each of the available flag variations for Bulgaria. This parameter can be a named parameter (e.g.. &amp;quot;&amp;lt;code&amp;gt;variant=1815&amp;lt;/code&amp;gt;&amp;quot;), or a positional parameter, always after the country name.&lt;br /&gt;
;size: This parameter is optional, and is used to specify the maximum width and/or height of the flag image. This parameter is specified using standard [[Wikipedia:Extended image syntax|image syntax]].&lt;br /&gt;
&lt;br /&gt;
==模板数据==&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;This template displays a wikilinked flag of the named parameter in &amp;#039;icon&amp;#039; size, currently 23×15 pixels (defined in Template:Flagicon/core) plus a one-pixel border.&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of the country, region, city, etc.; full name is recommended for countries&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;variant&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Variant&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Identifies a flag variant to be used instead of the standard flag, e.g. 1815&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;2&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;size&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Maximum dimension&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The maximum width or height, specified via standard &amp;#039;extended image syntax&amp;#039; (e.g. x30px)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;noredlink&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;No redlink&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If set to any value which evaluates as true (i.e. &amp;#039;1&amp;#039;, &amp;#039;true&amp;#039;, &amp;#039;yes&amp;#039;, or &amp;#039;y&amp;#039;), it displays nothing if the country data file doesn&amp;#039;t exist. (The default is to display a redlink)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==举例==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Wikicode !! Results !! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagicon|Bulgaria}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{flagicon|Bulgaria}} ||&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagicon|BUL}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{flagicon|BUL}} || Uses the ISO/IOC/FIFA country code&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagicon|Bulgaria|1946}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{flagicon|Bulgaria|1946}} || rowspan=&amp;quot;2&amp;quot;| Specifies a historical flag&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagicon|Bulgaria|variant=1946}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{flagicon|Bulgaria|variant=1946}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagicon|BUL|naval}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{flagicon|BUL|naval}} || Specifies the naval ensign&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagicon|BUL|air force}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{flagicon|BUL|air force}} || Specifies the air force flag&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagicon|Bulgaria|size=50px}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{flagicon|Bulgaria|size=50px}} || Sets width to 50 pixels&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagicon|Xanadu}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{flagicon|Xanadu}} || No flag for Xanadu, so displays redlink&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagicon|Xanadu|noredlink=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{flagicon|Xanadu|noredlink=yes}} || No flag, so displays nothing&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Implementation notes==&lt;br /&gt;
This template uses the data templates listed under [[:Category:Country data templates]], which contain the data specifying &amp;#039;&amp;#039;&amp;#039;what&amp;#039;&amp;#039;&amp;#039; to display and the formatter [[Template:Flagicon/core]], which contains the logic of &amp;#039;&amp;#039;&amp;#039;how&amp;#039;&amp;#039;&amp;#039; to display the flag.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagicon|Bulgaria}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{flagicon|Bulgaria}} — uses [[Template:Country data Bulgaria]]&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagicon|BUL}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{flagicon|BUL}} — uses [[Template:Country data BUL]], which is a redirect to [[Template:Country data Bulgaria]]&lt;br /&gt;
&lt;br /&gt;
Inside each country data template, this template uses the following parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;flag alias&amp;lt;/code&amp;gt; — name of the image file to display&lt;br /&gt;
* &amp;lt;code&amp;gt;flag alias-xxxx&amp;lt;/code&amp;gt; — name of the image file of flag variant &amp;lt;code&amp;gt;xxxx&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;alias&amp;lt;/code&amp;gt; — used to display the [[alt attribute]] of the image (defaults to &amp;quot;Flag of &amp;#039;&amp;#039;alias&amp;#039;&amp;#039;&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
== 追踪分类 ==&lt;br /&gt;
*{{clc|Pages using flagicon template with unknown parameters}}&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Flagicon|Foo}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;  is used, but the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;Template:Country data Foo&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; does not exist, then a [[WP:Red link|redlink]] is displayed, &amp;#039;&amp;#039;unless&amp;#039;&amp;#039; the {{para|noredlink|yes}} parameter has been set.&lt;br /&gt;
&lt;br /&gt;
Where the redlink is displayed, the page is addded to a tracking category:&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Flagicons with missing country data templates]] (population: {{PAGESINCATEGORY:Flagicons with missing country data templates}})&lt;br /&gt;
&lt;br /&gt;
== 相关模板 ==&lt;br /&gt;
* [[Template:Flag]] is used to display a wikilinked name next to the flag. The displayed name will be the same as the parameter used with the template, but the link target will be the main article for the country (in these examples, [[Bulgaria]]).&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flag|Bulgaria}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{flag|Bulgaria}}&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flag|BUL}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{flag|BUL}}&lt;br /&gt;
* [[Template:Flagcountry]] is also used to display a wikilinked name next to the flag.  The displayed name will always be the same, regardless of whether or not a country code alias is used as the template parameter.&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagcountry|Bulgaria}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{flagcountry|Bulgaria}}&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagcountry|BUL}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{flagcountry|BUL}}&lt;br /&gt;
* [[Template:Flagdeco]] displays an unlinked flag icon without country name.&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagdeco|Bulgaria}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{flagdeco|Bulgaria}}&lt;br /&gt;
For a full list of flag templates, see [[:Category:Flag template system]].&lt;br /&gt;
&lt;br /&gt;
==Alternatives to avoid Wikipedia&amp;#039;s [[WP:PEIS|Post-expand include size]] limit==&lt;br /&gt;
Pages with many flag icons may come close to or exceed Wikipedia&amp;#039;s [[WP:PEIS|Post-expand include size]] limit.  In these cases consider using modules or module-wrapper templates instead:&lt;br /&gt;
* {{tl|flagg}} is a simple wrapper for [[Module:Flagg]]: For basic use, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagicon|&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;country&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; can be replaced with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flagg|cxxlo|&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;country&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==参见==&lt;br /&gt;
* [[Template:Flagicon image]]&lt;br /&gt;
* [[Template:Coat of arms]]&lt;br /&gt;
* [[WikiProject:紋章及旗幟/旗幟模板]]&lt;br /&gt;
* [[区域指示符]]&lt;br /&gt;
&lt;br /&gt;
重定向&lt;br /&gt;
* {{模板鏈接|旗幟標誌}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:旗幟模板系統]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;魔琴</name></author>
	</entry>
</feed>