Template:Flag/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:


== Parameters and Examples ==
== Parameters and Examples ==
{{Table|width=100%
{{Table
| {{Table|tr|
|width = 100%
  {{Table|th|radius=3px 0 0 0| Parameters }}
| {{tr|
  {{Table|th| {{int:listfiles_description}} }}
  {{th|radius=3px 0 0 0| Parameters }}
  {{Table|th| {{int:apisandbox-examples}} }}
  {{th| {{int:listfiles_description}} }}
  {{Table|th|radius=0 3px 0 0| {{int:preview}} }}
  {{th| {{int:apisandbox-examples}} }}
  {{th|radius=0 3px 0 0| {{int:preview}} }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center| {{Code|{{Param}}}} }}
  {{td|align=center| {{Code|{{Param}}}} }}
  {{Table|td| Flag code. If not specified, a white flag will be displayed. }}
  {{td| Flag code. If not specified, a white flag will be displayed. }}
  {{Table|td| {{CodeBlock|<nowiki>{{Flag}}</nowiki>}} {{CodeBlock|<nowiki>{{Flag|en}}</nowiki>}} }}
  {{td| {{CodeBlock|<nowiki>{{Flag}}</nowiki>}} {{CodeBlock|<nowiki>{{Flag|en}}</nowiki>}} }}
  {{Table|td| {{Capsule| {{Flag}} }} {{Capsule| {{Flag|en}} }} }}
  {{td| {{Capsule| {{Flag}} }} {{Capsule| {{Flag|en}} }} }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center|radius=0 0 0 3px| {{Code|{{Param|link}}}} }}
  {{td|align=center|radius=0 0 0 3px| {{Code|{{Param|link}}}} }}
  {{Table|td| Adds a link to a flag. }}
  {{td| Adds a link to a flag. }}
  {{Table|td| {{CodeBlock|<nowiki>{{Flag|en|link=Category:Flag icons}}</nowiki>}} }}
  {{td| {{CodeBlock|<nowiki>{{Flag|en|link=Category:Flag icons}}</nowiki>}} }}
  {{Table|td|radius=0 0 3px 0| {{Capsule| {{Flag|en|link=Category:Flag icons}} }} }}
  {{td|radius=0 0 3px 0| {{Capsule| {{Flag|en|link=Category:Flag icons}} }} }}
}}
}}
{{Table|tr|
{{tr|
  {{Table|td|align=center|radius=0 0 0 3px| {{Code|{{Param|size}}}} }}
  {{td|align=center|radius=0 0 0 3px| {{Code|{{Param|size}}}} }}
  {{Table|td| Sets the size of the flag. The default value is 16. {{Note|Enter only the size, without px at the end.}} }}
  {{td| Sets the size of the flag. The default value is 16. {{Note|Enter only the size, without px at the end.}} }}
  {{Table|td| {{CodeBlock|<nowiki>{{Flag|en|size=32}}</nowiki>}} }}
  {{td| {{CodeBlock|<nowiki>{{Flag|en|size=32}}</nowiki>}} }}
  {{Table|td|radius=0 0 3px 0| {{Capsule| {{Flag|en|size=32}} }} }}
  {{td|radius=0 0 3px 0| {{Capsule| {{Flag|en|size=32}} }} }}
}}
}}
}}
}}

Revision as of 07:48, 15 June 2023

Edit-copy.png
This is a documentation subpage for Template:Flag.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This template displays a flag, depending on the specified code. All flag codes must follow the ISO 639 codes (unless it's not language-specific). However, some flags are not language-specific, such as au or zw, so these flags will not have a tooltip.

Parameters and Examples

Available Flags

Flag-au.png
{{Flag|au}}
Беларуская (be)
{{Flag|be}}
বাংলা (bn)
{{Flag|bn}}
Català (ca)
{{Flag|ca}}
Čeština (cs)
{{Flag|cs}}
Deutsch (de)
{{Flag|de}}
Ελληνικά (el)
{{Flag|el}}
English (en)
{{Flag|en}}
British English (en-GB)
{{Flag|en-GB}}
Esperanto (eo)
{{Flag|eo}}
Español (es)
{{Flag|es}}
Eesti (et)
{{Flag|et}}
{{Flag|fil}}
Français (fr)
{{Flag|fr}}
Gaeilge (ga)
{{Flag|ga}}
עברית (he)
{{Flag|he}}
हिन्दी (hi)
{{Flag|hi}}
Magyar (hu)
{{Flag|hu}}
Italiano (it)
{{Flag|it}}
日本語 (ja)
{{Flag|ja}}
Ქართული (ka)
{{Flag|ka}}
ភាសាខ្មែរ (km)
{{Flag|km}}
한국어 (ko)
{{Flag|ko}}
ລາວ (lo)
{{Flag|lo}}
Nederlands (nl)
{{Flag|nl}}
Norsk (no)
{{Flag|no}}
Polski (pl)
{{Flag|pl}}
Português (pt)
{{Flag|pt}}
Português do Brasil (pt-br)
{{Flag|pt-br}}
Română (ro)
{{Flag|ro}}
Русский (ru)
{{Flag|ru}}
Svenska (sv)
{{Flag|sv}}
ไทย (th)
{{Flag|th}}
Türkçe (tr)
{{Flag|tr}}
Українська (uk)
{{Flag|uk}}
Tiếng Việt (vi)
{{Flag|vi}}
中文 (zh)
{{Flag|zh}}
中文(臺灣) (zh-tw)
{{Flag|zh-tw}}
Flag-zw.png
{{Flag|zw}}

See also

Category: Flag icons