Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Description  





2 Usage examples  





3 Tracking categories  





4 TemplateData  





5 See also  














Template:Flag country






Acèh
Адыгэбзэ
Адыгабзэ
Afrikaans
Алтай тил

Anarâškielâ
ि
Ænglisc
العربية
Արեւմտահայերէն


Авар
Azərbaycanca
تۆرکجه
Basa Bali

Banjar
 / Bân-lâm-gú
Basa Banyumasan
Башҡортса
Беларуская
Беларуская (тарашкевіца)

Bikol Central
Български

Bosanski
Буряад
Català
Чӑвашла
Cebuano
Čeština
Corsu
Cymraeg
Dansk
الدارجة
ދިވެހިބަސް


Eesti
Ελληνικά
Эрзянь
Español
فارسی
Gàidhlig
Galego
ГӀалгӀай

  / Gõychi Konknni
/Hak-kâ-ngî

Hausa
Հայերեն
ि
Bahasa Hulontalo
Ilokano
Bahasa Indonesia
Interlingua
Ирон
IsiZulu
Íslenska
Jawa

Kapampangan

Қазақша
Kiswahili
Kurdî
Кыргызча
Ladin

Latina
Лезги
Lietuvių
Li Niha
Livvinkarjala
Magyar
ि
Македонски
Malagasy

Malti
Māori

مصرى

Bahasa Melayu
Minangkabau
Мокшень


 

Нохчийн
Norfuk / Pitkern
Norsk bokmål
Norsk nynorsk
Occitan
Олык марий
ି
Oʻzbekcha / ўзбекча

پنجابی
پښتو

Português
Qaraqalpaqsha
Română
Русиньскый
Русский
Sakizaya
Gagana Samoa


Scots

Simple English
Slovenščina
Soomaaliga
کوردی
Sranantongo
Српски / srpski
Sunda
Suomi
Svenska
Tagalog
ி
Taqbaylit
Татарча / tatarça
 


Thuɔŋjäŋ

Тоҷикӣ

Türkçe
Türkmençe
Тыва дыл
Удмурт
Українська
اردو
Tiếng Vit

Winaray

Xitsonga
Yorùbá


 
 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
Meta-Wiki
Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


{{country data {{{1}}}|flagcountry/core|variant=|size=|name=}}

Description

{{flagcountry|nation|variant|size=|name=}}

Produces a flag icon attached to a wikilinked article. This template is similar to the more widely used {{flag}} template, but is more useful for two situations described below.

Parameters

Usage examples

  1. {{flagcountry|ITA}} Italy
    In this case, the country code for Italy (ITA) is used to produce the correct flag and wikilink. In many cases, it would probably be preferable to use {{flag}} to produce the same result, such as {{flag|Italy}} for this example. However, {{flagcountry}} could be used within other templates (such as infoboxes) so that country codes can be used for those template parameters.
  2. {{flagcountry|ITA|1861}} Italy
    Similar to the first example, but with a flag variant parameter to select a historical flag image. Note that the wikilinked article is [[Italy]].
  3. {{flagcountry|Kingdom of Italy}} Italy
    In this example, a different country data template is used, to select an alternative article for the wikilink (in this case, [[Kingdom of Italy|Italy]]). Compare with {{flag|Kingdom of Italy}} Kingdom of Italy, in which "Kingdom of Italy" is the display text for the wikilink. Therefore, the choice of flagcountryorflag depends on the desired display text; in all other respects, the templates are identical.
  4. {{flagcountry|South Korea|name=Korea}} Korea

Tracking categories

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Flag country in articles based on its TemplateData.

TemplateData for Flag country

Produces a flag icon next to a wikilinked country name.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Nation1

The name or code of the country.

Stringrequired
Variantvariant 2

The flag variant to be displayed.

Stringoptional
Sizesize

The size of the flag icon.

Numberoptional

See also


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Flag_country&oldid=1229539628"

Category: 
Flag template system
Hidden categories: 
Wikipedia template-protected templates
Templates using TemplateData
 



This page was last edited on 17 June 2024, at 10:49 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki