Difference between revisions of "Template:Flagicon"

From Moegirlpedia
Jump to: navigation, search
m
Line 1: Line 1:
 
<includeonly>{{#vardefine: name | {{#switch: {{{1|China}}}
 
<includeonly>{{#vardefine: name | {{#switch: {{{1|China}}}
|未知|無|无 = None
+
|未知|無|无|TW|tw|TWN|twn = None
 
|AR|ar|ARG|arg = Argentina
 
|AR|ar|ARG|arg = Argentina
 
|AU|au|AUS|aus = Australia
 
|AU|au|AUS|aus = Australia
Line 18: Line 18:
 
|HK|hk|HKG|hkg = Hong_Kong
 
|HK|hk|HKG|hkg = Hong_Kong
 
|MO|mo|MAC|mac = Macau
 
|MO|mo|MAC|mac = Macau
|TW|tw = tw
 
 
|ASEAN|asean|Association of Southeast Asian Nations = ASEAN
 
|ASEAN|asean|Association of Southeast Asian Nations = ASEAN
 
|MX|mx|MEX|mex = Mexico
 
|MX|mx|MEX|mex = Mexico

Revision as of 04:07, 11 December 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.