Difference between revisions of "Template:Flag template documentation"

From blackwiki
Jump to navigation Jump to search
imported>DannyS712
(Undoing last edit (undo-last-edit))
imported>MSGJ
(try to fix spacing in output)
Line 53: Line 53:
 
  }}
 
  }}
 
}} for {{{1}}} as a shorthand editing convenience.
 
}} for {{{1}}} as a shorthand editing convenience.
 
 
{{#if:{{{2|}}}
 
{{#if:{{{2|}}}
  |{{#if:{{{3|}}}
+
  |<br>{{#if:{{{3|}}}
 
   |{{#if:{{{4|}}}
 
   |{{#if:{{{4|}}}
 
   |{{#ifeq:{{{2}}}|{{{3}}}
 
   |{{#ifeq:{{{2}}}|{{{3}}}

Revision as of 13:42, 29 April 2019


Template documentation[view] [edit] [history] [purge]

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
ISOISO 3166-1 alpha-3 country code
IOCIOC country code
FIFAFIFA 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".

See also