Template:Flag template documentation: Difference between revisions
Jump to navigation
Jump to search
Randombell (talk | contribs) Created page with "<includeonly>{{documentation | content = {{#ifeq:{{#invoke:High-use|num|x}}|many||{{High-use}}}} {{{header|}}} ==Description== :<code><nowiki>{{</nowiki>{{#if:{{{2|}}} |{{{2}}} |{{#if:{{{3|}}} |{{{3}}} |{{#if:{{{4|}}} |{{{4}}} |? }} }} }}<nowiki>}}</nowiki></code> Renders a flag icon and wikilink to [[{{getalias|{{{1}}}}}|{{getalias|{{{1}}}}}]]. This template is equivalent to {{tlx|flag|{{{1}}}}}, but is named after the standard three letter {{#if:{{{2|}}..." |
(No difference)
|
Latest revision as of 14:36, 14 August 2025
This template is used to automatically generate documentation for standard flag templates.
Usage
{{flag template documentation|Country name|ISO|IOC|FIFA}}
- 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".