Template:Flag template documentation

{{documentation| content =

Description
Renders a flag icon and wikilink to. This template is equivalent to, but is named after the standard three letter {{#if:{{{2|}}} |{{#if:{{{3|}}} |{{#if:{{{4|}}} |{{#ifeq:{{{2}}}|{{{3}}} |{{#ifeq:{{{3}}}|{{{4}}} |ISO 3166-1 alpha-3 country code, IOC code, and FIFA code |ISO 3166-1 alpha-3 country code and IOC code }}   |{{#ifeq:{{{2}}}|{{{4}}} |ISO 3166-1 alpha-3 country code and FIFA code |ISO 3166-1 alpha-3 country code }}  }}   |{{#ifeq:{{{2}}}|{{{3}}} |ISO 3166-1 alpha-3 country code and IOC code |ISO 3166-1 alpha-3 country code }} }}  |{{#if:{{{4|}}} |{{#ifeq:{{{2}}}|{{{4}}} |ISO 3166-1 alpha-3 country code and FIFA code |ISO 3166-1 alpha-3 country code }}  |ISO 3166-1 alpha-3 country code }} }} |{{#if:{{{3|}}} |{{#if:{{{4|}}} |{{#ifeq:{{{3}}}|{{{4}}} |IOC country code and FIFA code |IOC country code]] |IOC country code }} |{{#if:{{{4|}}} |FIFA country code |country code }} }} }} for {{{1}}} as a shorthand editing convenience.

{{#if:{{{2|}}} |{{#if:{{{3|}}} |{{#if:{{{4|}}} |{{#ifeq:{{{2}}}|{{{3}}} |{{#ifeq:{{{3}}}|{{{4}}}| |You can also use {{tlx|{{{4}}}}} (which is a redirect to this template) because "{{{4}}}" is the FIFA code for {{{1}}}. }}   |{{#ifeq:{{{3}}}|{{{4}}} |You can also use {{tlx|{{{3}}}}} (which is a redirect to this template) because "{{{3}}}" is the IOC code and FIFA code for {{{1}}}. |{{#ifeq:{{{2}}}|{{{4}}} |You can also use {{tlx|{{{3}}}}} (which is a redirect to this template) because "{{{3}}}" is the IOC code for {{{1}}}. |You can also use {{tlx|{{{3}}}}} or {{tlx|{{{4}}}}} (which are redirects to this template) because "{{{3}}}" is the IOC code and "{{{4}}}" is the FIFA code for {{{1}}}. }}   }}   }}   |{{#ifeq:{{{2}}}|{{{3}}}| |You can also use {{tlx|{{{3}}}}} (which is a redirect to this template) because "{{{3}}}" is the IOC code for {{{1}}}. }} }}  |{{#if:{{{4|}}} |{{#ifeq:{{{2}}}|{{{4}}}| |You can also use {{tlx|{{{4}}}}} (which is a redirect to this template) because "{{{4}}}" is the FIFA code for {{{1}}}. }} }} }} |{{#if:{{{3|}}} |{{#if:{{{4|}}} |{{#ifeq:{{{3}}}|{{{4}}}| |You can also use {{tlx|{{{4}}}}} (which is a redirect to this template) because "{{{4}}}" is the FIFA code for {{{1}}}. }} }} }} }}{{#ifexist:{{SUBJECTPAGENAME}}/doc |{{{{SUBJECTPAGENAME}}/doc}} }}