Template:Flag template documentation/doc
![]() | This is a documentation subpage for Template:Flag template documentation. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used to automatically generate documentation for standard flag templates.
Usage
<syntaxhighlight lang="wikitext">

Description
{{ISO}}
Renders a flag icon and wikilink to [[Template:Country data Country name|Template:Country data Country name]]. This template is equivalent to {{flag|Country name}}
, but is named after the standard three letter ISO 3166-1 alpha-3 country code for Country name as a shorthand editing convenience.
You can also use {{IOC}}
or {{FIFA}}
(which are redirects to this template) because "IOC" is the IOC code and "FIFA" is the FIFA code for Country name.
TemplateData
TemplateData for Flag template documentation
Renders a flag icon and wikilink. Takes no parameters.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
See also
- Template:Country data Country name—for more options, such as historical flag variations where applicable
- Wikipedia:WikiProject Flag Template—for a complete discussion of the flag template system
- Wikipedia:Inline templates linking country articles—for a complete list of these "shorthand" flag templates
</syntaxhighlight>
- Parameters
- Country name – matches the parameter used with {{flag}} within the flag template itself
- ISO – ISO 3166-1 alpha-3 country code
- IOC – IOC country code
- FIFA – FIFA country code
If any of the three codes are not applicable for a particular country, leave the respective parameters blank.
This template is placed on the flag template itself (similar to how the {{documentation}} template is placed). This template depends on the mandatory existence of a /doc subpage, which is only used to transclude interwiki links.
Further usage
The optional parameter header is content that goes at the top of the documentation box, above "Description".