Template:Flag/doc: Difference between revisions
Jump to navigation
Jump to search
{{Flag|au}}
{{Flag|be}}
{{Flag|bn}}
{{Flag|ca}}
{{Flag|cs}}
{{Flag|de}}
{{Flag|el}}
{{Flag|en}}
{{Flag|en-GB}}
{{Flag|eo}}
{{Flag|es}}
{{Flag|et}}
{{Flag|fr}}
{{Flag|ga}}
{{Flag|he}}
{{Flag|hi}}
{{Flag|hu}}
{{Flag|it}}
{{Flag|ja}}
{{Flag|ka}}
{{Flag|km}}
{{Flag|ko}}
{{Flag|lo}}
{{Flag|nl}}
{{Flag|no}}
{{Flag|pl}}
{{Flag|pt}}
{{Flag|pt-br}}
{{Flag|ro}}
{{Flag|ru}}
{{Flag|sv}}
{{Flag|th}}
{{Flag|tr}}
{{Flag|uk}}
{{Flag|vi}}
{{Flag|zh}}
{{Flag|zh-tw}}
{{Flag|zw}}
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
== Parameters and Examples == | == Parameters and Examples == | ||
{{Table|width=100% | {{Table | ||
| {{ | |width = 100% | ||
{{ | | {{tr| | ||
{{ | {{th|radius=3px 0 0 0| Parameters }} | ||
{{ | {{th| {{int:listfiles_description}} }} | ||
{{ | {{th| {{int:apisandbox-examples}} }} | ||
{{th|radius=0 3px 0 0| {{int:preview}} }} | |||
}} | }} | ||
{{ | {{tr| | ||
{{ | {{td|align=center| {{Code|{{Param}}}} }} | ||
{{ | {{td| Flag code. If not specified, a white flag will be displayed. }} | ||
{{ | {{td| {{CodeBlock|<nowiki>{{Flag}}</nowiki>}} {{CodeBlock|<nowiki>{{Flag|en}}</nowiki>}} }} | ||
{{ | {{td| {{Capsule| {{Flag}} }} {{Capsule| {{Flag|en}} }} }} | ||
}} | }} | ||
{{ | {{tr| | ||
{{ | {{td|align=center|radius=0 0 0 3px| {{Code|{{Param|link}}}} }} | ||
{{ | {{td| Adds a link to a flag. }} | ||
{{ | {{td| {{CodeBlock|<nowiki>{{Flag|en|link=Category:Flag icons}}</nowiki>}} }} | ||
{{ | {{td|radius=0 0 3px 0| {{Capsule| {{Flag|en|link=Category:Flag icons}} }} }} | ||
}} | }} | ||
{{ | {{tr| | ||
{{ | {{td|align=center|radius=0 0 0 3px| {{Code|{{Param|size}}}} }} | ||
{{ | {{td| Sets the size of the flag. The default value is 16. {{Note|Enter only the size, without px at the end.}} }} | ||
{{ | {{td| {{CodeBlock|<nowiki>{{Flag|en|size=32}}</nowiki>}} }} | ||
{{ | {{td|radius=0 0 3px 0| {{Capsule| {{Flag|en|size=32}} }} }} | ||
}} | }} | ||
}} | }} |
Revision as of 07:48, 15 June 2023

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.
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
Parameters | Description | Examples | Preview |
---|---|---|---|
{{{1}}} | Flag code. If not specified, a white flag will be displayed. | ![]() ![]() |
|
{{{link}}} | Adds a link to a flag. | ||
{{{size}}} | Sets the size of the flag. The default value is 16. ![]() |
![]() |
Available Flags












{{Flag|fil}}

























