Difference between revisions of "Template:Flagicon"

From Moegirlpedia
Jump to: navigation, search
(Created page with "<includeonly>{{#vardefine: name | {{#switch: {{{1|China}}} |未知|無|无 = None |AR|ar = Argentina ||AU|au = Australia |AUS|aus = Austria |奥地利帝国|奧地利帝國|...")
 
m
Line 1: Line 1:
 
<includeonly>{{#vardefine: name | {{#switch: {{{1|China}}}
 
<includeonly>{{#vardefine: name | {{#switch: {{{1|China}}}
 
|未知|無|无 = None
 
|未知|無|无 = None
|AR|ar = Argentina
+
|AR|ar|ARG|arg = Argentina
||AU|au = Australia
+
|AU|au|AUS|aus = Australia
|AUS|aus = Austria
+
|AT|at|AUT|aut = Austria
|奥地利帝国|奧地利帝國|哈佈斯堡王朝|哈布斯堡王朝 = the Habsburg Monarchy
+
|Danubian Monarchy|Donaumonarchie|Habsburg Empire|Habsburgerreich|Habsburgermonarchie|Austrian Empire = the Habsburg Monarchy
|奥匈帝国|奧匈帝國 =Austria-Hungary (1869-1918)
+
|AH|ah|Austria-Hungary|Austro-Hungarian Empire|Österreichisch-Ungarische Monarchie|Osztrák–Magyar Monarchia|Austro-Hungarian Monarchy|Dual Monarchy =Austria-Hungary (1869-1918)
|比利時|比利时 = Belgium
+
|BE|be|BEL|bel = Belgium
|BR}br = Brazil
+
|BR|br|BRA|bra = Brazil
|波士尼亞與赫塞哥維納|波斯尼亚和黑塞哥维那|波黑|波赫 = Bosnia and Herzegovina
+
|BA|ba|BIH|bih = Bosnia and Herzegovina
|保加利亞|保加利亚 = Bulgaria
+
|BG|bg|BGR|bgr = Bulgaria
|CA|ca = Canada
+
|CA|ca|CAN|can = Canada
|CL|cl = Chile
+
|CL|cl|CHL|chl = Chile
|ZH|zh|PRC|prc = China
+
|ZH|zh|CN|cn|CHN|chn|PRC|prc = China
|中華民國|中华民国=the_Republic_of_China
+
|RC|rc|ROC|roc=the_Republic_of_China
|北洋政府=the_Republic_of_China_(1912-1928)
+
|Beiyang government|Peiyang Government|First Republic of China|=the_Republic_of_China_(1912-1928)
|大淸|大清|清朝|淸朝||=the_Qing_Dynasty_(1889-1912)
+
|the Qing Dynasty|the Great Qing|Qing|Qing Dynasty|Great Qing=the_Qing_Dynasty_(1889-1912)
|HK|hk = Hong_Kong
+
|HK|hk|HKG|hkg = Hong_Kong
|MC|mc = Macau
+
|MO|mo|MAC|mac = Macau
 
|TW|tw = tw
 
|TW|tw = tw
 
|ASEAN|asean|Association of Southeast Asian Nations = ASEAN
 
|ASEAN|asean|Association of Southeast Asian Nations = ASEAN
|MX|mx = Mexico
+
|MX|mx|MEX|mex = Mexico
|CR|cr=Costa_Rica
+
|CR|cr|CRI|cri=Costa_Rica
|CU|cu= Cuba
+
|CU|cu|CUB|cub= Cuba
|CZ|cz = Czech_Republic
+
|CZ|cz|CZE|cze = Czech_Republic
|EU|eu = Europe
+
|EU|eu|EUR|eur = Europe
|埃及 = Egypt
+
|EG|eg|EGY|egy = Egypt
|FI|fi = Finland
+
|FI|fi|FIN|fin = Finland
|FR|fr = France
+
|FR|fr|FRA|fra = France
|NL|nl = Netherlands
+
|NL|nl|NLD|nld = Netherlands
|DE|de = Germany
+
|DE|de|DEU|deu = Germany
|德意志帝國|德意志帝国=the German Empire
+
|the Imperial State of Germany|Imperial Germany|Kaiserreich|Deutsches Reich|Second Reich=the German Empire
|GR|gr = Greece
+
|GR|gr|GRC|grc = Greece
|ES|es = Spain
+
|ES|es|ESP|esp = Spain
|PT|pt = Portugal
+
|PT|pt|PRT|prt = Portugal
|伊拉克= Iraq
+
|IQ|iq|IRQ|irq= Iraq
|以色列= Israel
+
|IL|il|ISR|isr= Israel
|IT|it = Italy
+
|IT|it|ITA|ita = Italy
|義大利王國|义大利王国|意大利王國|意大利王国 =Italy (1861-1946)
+
|Kingdom of Italy|Regno d'Italia| =Italy (1861-1946)
|JP|jp = Japan
+
|JP|jp|JPN|jpn = Japan
|大日本帝國|大日本帝国|日本帝國|日本帝国=Japan (1870–1999)<!--1947年結束,1999年前仍用此旗-->
+
|Empire of Japan|大日本帝國|Dai Nippon Teikoku|Dai Nihon Teikoku=Japan (1870–1999)<!--Ended in 1947, still use this flag until 1999-->
|NK|nk = North_Korea
+
|KP|kp|PRK|prk|NK|nk|DPRK|dprk = North_Korea
|KR|kr = Korea
+
|KR|kr|KOR|kor = Korea
|LI|li= Libya
+
|LY|ly|LBY|lby= Libya
|MY|my=Malaysia
+
|MY|my|MYS|mys=Malaysia
|MG|mg=Mongolia
+
|MN|mn|MNG|mng=Mongolia
|NZ|nz = New Zealand
+
|NZ|nz|NZL|nzl = New Zealand
|NY|ny=Norway
+
|NO|no|NOR|nor=Norway
|PK|pk = Pakistan
+
|PK|pk|PAK|pak = Pakistan
|PL|pl=Poland
+
|PL|pl|POL|pol=Poland
|RO|ro=Romania
+
|RO|ro|ROU|rou=Romania
|RU|ru = Russia
+
|RU|ru|RUS|rus = Russia
|CCCP|cccp|USSR|ussr=the_Soviet_Union
+
|SU|su|SUN|sun|SUHH|suhh|CCCP|cccp|USSR|ussr|Soviet Union|Union of Soviet Socialist Republics=the_Soviet_Union
|南斯拉夫|Yugoslavia = Yugoslavia (1946-1992)
+
|YU|yu|YUG|yug|Yugoslavia = Yugoslavia (1946-1992)
|SG|sg=Singapore
+
|SG|sg|SGP|sgp=Singapore
|SL|sl=Slovenia
+
|SI|si|SVN|svn=Slovenia
|ZA|za=South_Africa
+
|ZA|za|ZAF|zaf=South_Africa
|SE|se=Sweden
+
|SE|se|SWE|swe=Sweden
|CH|ch=Switzerland
+
|CH|ch|CHE|che=Switzerland
|TH|th = Thailand
+
|TH|th|THA|tha = Thailand
|TR|tr = Turkey
+
|TR|tr|TUR|tur = Turkey
|UK|uk = UK
+
|GB|gb|GBR|gbr|uk = UK
 
|UN|un=the_United_Nations
 
|UN|un=the_United_Nations
|USA|usa = the_United_States
+
|US|us|USA|usa = the_United_States
|VT|vt = Vietnam
+
|VN|vn|VNM|vnm = Vietnam
|塞爾維亞|塞尔维亚=Vojvodina
+
|RS|rs|SRB|srb|Serbia=Vojvodina
|ESP|esp=Esperanto
+
|EO|eo|EPO|epo|ESP|esp=Esperanto
|AC|ac=Antarctica
+
|AQ|aq|ATA|ata=Antarctica
 
|{{{1|China}}}
 
|{{{1|China}}}
 
}}}}{{#if:{{{2|}}}|<span title="{{{2|}}}">|<span title="{{{1|}}}">}}{{#if:{{filepath:Flag_of_{{#var:name}}.svg}}|[[File:Flag_of_{{#var:name}}.svg|{{{border|border}}}|{{{size|20px}}}|link={{{link|}}}|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}]]|[[File:{{#var:name}}|{{{border|border}}}|{{{size|20px}}}|link={{{link|}}}|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}]]}}</span></includeonly><noinclude>{{Doc}}</noinclude>
 
}}}}{{#if:{{{2|}}}|<span title="{{{2|}}}">|<span title="{{{1|}}}">}}{{#if:{{filepath:Flag_of_{{#var:name}}.svg}}|[[File:Flag_of_{{#var:name}}.svg|{{{border|border}}}|{{{size|20px}}}|link={{{link|}}}|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}]]|[[File:{{#var:name}}|{{{border|border}}}|{{{size|20px}}}|link={{{link|}}}|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}]]}}</span></includeonly><noinclude>{{Doc}}</noinclude>

Revision as of 11:26, 17 March 2022

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

This template is used to quickly display the flag pictures of countries or regions, and it is used for infobars of real people.

How to use

{{flagicon|(country or region)}}
{{flagicon|(country or region)|size=px}}

parameters

This template has only 3 parameters:

  • 1 country or region, requires an English name starting with a capital letter, the value that can be selected is shown in the file name "Flag_of_" in Moegirl Commons and "." characters or the full file name. Required parameter.
  • 2 Custom picture name: Title parameter, used to display the custom banner name.
  • size The size of the image. The default is 20px.
  • link can set the link to jump to by clicking the picture, the default is empty.