Difference between revisions of "Template:Flagicon"
(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|AUS|aus = Australia | |
− | | | + | |AT|at|AUT|aut = Austria |
− | | | + | |Danubian Monarchy|Donaumonarchie|Habsburg Empire|Habsburgerreich|Habsburgermonarchie|Austrian Empire = the Habsburg Monarchy |
− | | | + | |AH|ah|Austria-Hungary|Austro-Hungarian Empire|Österreichisch-Ungarische Monarchie|Osztrák–Magyar Monarchia|Austro-Hungarian Monarchy|Dual Monarchy =Austria-Hungary (1869-1918) |
− | | | + | |BE|be|BEL|bel = Belgium |
− | |BR | + | |BR|br|BRA|bra = Brazil |
− | | | + | |BA|ba|BIH|bih = Bosnia and Herzegovina |
− | | | + | |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 |
− | | | + | |RC|rc|ROC|roc=the_Republic_of_China |
− | | | + | |Beiyang government|Peiyang Government|First Republic of China|=the_Republic_of_China_(1912-1928) |
− | | | + | |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 |
− | | | + | |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 |
− | | | + | |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 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 |
− | | | + | |IQ|iq|IRQ|irq= Iraq |
− | | | + | |IL|il|ISR|isr= Israel |
− | |IT|it = Italy | + | |IT|it|ITA|ita = Italy |
− | | | + | |Kingdom of Italy|Regno d'Italia| =Italy (1861-1946) |
− | |JP|jp = Japan | + | |JP|jp|JPN|jpn = Japan |
− | |大日本帝國| | + | |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 |
− | | | + | |LY|ly|LBY|lby= Libya |
− | |MY|my=Malaysia | + | |MY|my|MYS|mys=Malaysia |
− | | | + | |MN|mn|MNG|mng=Mongolia |
− | |NZ|nz = New Zealand | + | |NZ|nz|NZL|nzl = New Zealand |
− | | | + | |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 |
− | | | + | |YU|yu|YUG|yug|Yugoslavia = Yugoslavia (1946-1992) |
− | |SG|sg=Singapore | + | |SG|sg|SGP|sgp=Singapore |
− | | | + | |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 |
− | | | + | |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 |
− | | | + | |VN|vn|VNM|vnm = Vietnam |
− | | | + | |RS|rs|SRB|srb|Serbia=Vojvodina |
− | |ESP|esp=Esperanto | + | |EO|eo|EPO|epo|ESP|esp=Esperanto |
− | | | + | |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
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.