Modes

edit
  • u
    • {{flagg|usu|Niger}}  Niger
    • {{flagg|usu|Niger|name=A}}  A
  • i
    • {{flagg|isu|Niger}}  Niger
  • c
    • {{flagg|csc|Niger}}  Niger
    • {{flagg|csc|Niger|name=A}}  A
    • {{flagg|csc|Niger|clink=B}}  Niger
    • {{flagg|csc|Niger|link=B}}  Niger
    • {{flagg|csc|Niger|clink=B|name=A}}  A
  • p
    • {{flagg|psp|Niger}}  Niger
    • {{flagg|psp|Niger|the=}}  Niger
    • {{flagg|psp|Philippines|the=1}}  Philippines
    • {{flagg|psp|Niger|name=A}}  A
    • {{flagg|psp|Niger|flink=B}}  Niger
    • {{flagg|psp|Niger|pref=C of}}  Niger
    • {{flagg|psp|Philippines|pref=C of|the=1}}  Philippines
    • {{flagg|psp|Philippines|pref=C of the}}  Philippines
    • {{flagg|psp|Niger|suff=C}}  Niger
    • {{flagg|psp|Philippines|suff=C|the=1}}  Philippines
    • {{flagg|psp|Niger|pref=A of|suff=C}}  Niger
    • {{flagg|psp|Niger|pref=A of|suff=C|flink=B}}  Niger
  • f
  • b
  • d
    • {{flagg|dsd|Niger}}  Niger
    • {{flagg|dsd|Niger|name=A}}  A
    • {{flagg|dsd|NER}}  NER
    • {{flagg|dsd|Belfast|image=Flag of Belfast.svg}}  Belfast
  • x
    • "{{flagg|usx|Niger}}" → "  "
    • "{{flagg|xsu|Niger}}" → "  Niger"
    • "{{flagg|xsx|Niger}}" → "  "
    • "{{flagg|unx|Niger}}" → "  "
    • "{{flagg|xnu|Niger}}" → "  Niger"
    • "{{flagg|xnx|Niger}}" → "  "
    • "{{flagg|uxu|Niger}}" → " Niger"
    • "{{flagg|uxx|Niger}}" → " "
    • "{{flagg|xxu|Niger}}" → "Niger"
    • "{{flagg|xxx|Niger}}" → ""
  • Separators
    • {{flagg|usu|Niger}}  Niger
    • {{flagg|unu|Niger}}  Niger
    • {{flagg|ulu|Niger}} 
      Niger
    • {{flagg|uxu|Niger}} Niger
  • t
{{flagg|utu|Niger}}   Niger
{{flagg|utur|Niger}} Niger  
  • e
  • r
    • {{flagg|usur|Niger}} → Niger  
    • {{flagg|unur|Niger}} → Niger  
    • {{flagg|ulur|Niger}} → Niger
       
    • {{flagg|uxur|Niger}} → Niger 
    • {{flagg|usure|AUS}} → Australia  
    • {{flagg|usuer|AUS}} → Australia  
  • w
    • {{flagg|unuw|Niger}}  Niger
    • {{flagg|unuwr|Niger}}Niger  
    • {{flagg|unurw|Niger}}Niger  
    • {{flagg|unuwe|AUS}}  Australia
    • {{flagg|unurwe|AUS}}Australia  
    • {{flagg|unuewr|AUS}}Australia  
  • a
    • {{flagg|uxxa|Niger}} 
    • {{flagg|uxxa|Niger|name=NIG}} 
    • {{flagg|uxxa|NIG}} 
    • {{flagg|uxxa|NIG|name=Niger}} 
    • {{flagg|uxxa|Niger|alt=A}} 
    • {{flagg|uxx|Niger|alt=A}} 
  • o
    • {{flagg|unuo|Niger}}  Niger
    • {{flagg|unu|Niger|image=}}  Niger
    • {{flagg|unuo|Niger|image=}} → Niger
    • {{flagg|xsuo|Niger}} → Niger
    • {{flagg|unuo|Commonwealth of Nations}}  Commonwealth of Nations

Other parameters

edit
  • Variant & custom image
    • {{flagg|isu|Australia}}  Australia
    • {{flagg|isu|Australia|naval}}  Australia
    • {{flagg|isu|Australia|variant=naval}}  Australia
    • {{flagg|isu|Australia|variant=foo}}  Australia
    • {{flagg|isu|Australia|image=Example.svg}}  Australia
    • {{flagg|isu|Australia|image=File:Example.svg}}  Australia
    • {{flagg|isu|Australia|image=}}  Australia
    • {{flagg|isu|Australia|image=none}}  Australia
  • Image size
    • {{flagg|isu|Australia|size=30x20px}}  Australia
    • {{flagg|isu|Australia|size=30px}}  Australia
    • {{flagg|isu|Australia|size=x20px}}  Australia
    • {{flagg|isu|Australia|size=30x20}}  Australia
    • {{flagg|isu|Australia|size=30}}  Australia
    • {{flagg|isu|Australia|size=x20}}  Australia
    • {{flagg|isu|Australia|size=xs}}  Australia
    • {{flagg|isu|Australia|size=s}}  Australia
    • {{flagg|isu|Australia|size=m}}  Australia
    • {{flagg|isu|Australia|size=l}}  Australia
    • {{flagg|isu|Australia|size=xl}}  Australia
    • {{flagg|isu|Australia|size=foo}}  Australia
    • {{flagg|isu|Australia|sz=30x20px}}  Australia
    • {{flagg|isu|Australia|sz=l}}  Australia
  • Image border
    • {{flagg|isu|Japan}}  Japan
    • {{flagg|isu|Japan|border=}}  Japan
    • {{flagg|isu|Japan|border=0}}  Japan
    • {{flagg|isu|Japan|border=1}}  Japan
    • {{flagg|isu|Ohio}}  Ohio
    • {{flagg|isu|Ohio|border=}}  Ohio
    • {{flagg|isu|Ohio|border=0}}  Ohio
    • {{flagg|isu|Ohio|border=1}}  Ohio
    • {{flagg|isu|Belfast|image=Flag of Belfast.svg}}  Belfast
    • {{flagg|isu|Belfast|image=Flag of Belfast.svg|border=}}  Belfast
    • {{flagg|isu|Belfast|image=Flag of Belfast.svg|border=0}}  Belfast
    • {{flagg|isu|Belfast|image=Flag of Belfast.svg|border=1}}  Belfast
  • Section link
  • Span box size
    • {{flagg|isu|Australia}}  Australia
    • {{flagg|isu|Australia|size=30x20px}}  Australia
    • {{flagg|isu|Australia|width=45px}}  Australia
    • {{flagg|isu|Australia|size=30x20px|width=45px}}  Australia
    • {{flagg|isu|Australia|size=30x20px|width=45}}  Australia
    • {{flagg|isu|Australia|size=30x20px|width=0px}}  Australia
  • Altvar
    • {{flagg|psp|Niger|avar=fb}}  Niger
    • {{flagg|usb|Niger|avar=fb}}  Niger national football team
    • {{flagg|psp|Niger|avar=FB}}  Niger
    • {{flagg|psp|Niger|avar=football}}  Niger
    • {{flagg|psp|Niger|avar=fbu|age=17}}  Niger
    • {{flagg|psp|Niger|avar=fbw}}  Niger
    • {{flagg|psp|Ireland|avar=fb}}  Ireland
    • {{flagg|psp|Ireland|avar=fbw}}  Ireland
    • {{flagg|psp|DRC|avar=fb}}  DRC
    • {{flagg|psp|DRC|avar=fbu|age=20}}  DRC
    • {{flagg|psp|DRC|avar=fbw}}  DRC
    • {{flagg|pspe|DRC|avar=fb}}  DR Congo
  • Icon aligning
    •   Niger (unset)
    •   Niger (left)
    •   Niger (center)
    •   Niger (right)
    •   Niger (l)
    •   Niger (m)
    •   Niger (r)
    •   Niger (invalid)
    • Niger   (unset)
    • Niger   (left)
    • Niger   (center)
    • Niger   (right)
    • Niger   (l)
    • Niger   (m)
    • Niger   (r)
    • Niger   (invalid)
  Niger unset
  Niger left
  Niger center
  Niger right
  Niger l
  Niger m
  Niger r
  Niger invalid
Niger   unset
Niger   left
Niger   center
Niger   right
Niger   l
Niger   m
Niger   r
Niger   invalid
  • Name aligning
  Niger unset
  Niger left
  Niger center
  Niger right
  Niger l
  Niger m
  Niger r
  Niger invalid
Niger   unset
Niger   left
Niger   center
Niger   right
Niger   l
Niger   m
Niger   r
Niger   invalid

No country parameter

edit
  • {{flagg}}  
  • {{flagg|clink=Main Page}}  [[Main Page|]]
  • {{flagg|clink=Main Page|name=Example}}  Example
  • {{flagg|name=Example}}  Example
  • {{flagg|image=Example.svg}}  
  • {{flagg|inc}}  
  • {{flagg|inc|image=Example.svg}}  
  • {{flagg|pnp}}  
  • {{flagg|pnp|image=Example.svg}}  
  • {{flagg|pnp|image=Example.svg|clink=Main Page}}  [[Flag of Main Page|]]
  • {{flagg|pnp|image=Example.svg|clink=Main Page|name=Example}}  Example
  • {{flagg|pnp|image=Example.svg|name=Example}}  Example
  • {{flagg|pnp|image=Example.svg|suff=Suffix}}  
  • {{flagg|pnp|image=Example.svg|suff=Suffix|clink=Main Page}}  [[Main Page Suffix|]]
  • {{flagg|pnp|image=Example.svg|flink=Other Page}}  [[Other Page|]]
  • {{flagg|pnp|image=Example.svg|flink=Other Page|clink=Main Page}}  [[Other Page|]]
  • {{flagg|pnp|image=Example.svg|flink=Other Page|clink=Main Page|name=Example}}  Example
  • {{flagg|pnp|image=Example.svg|flink=Other Page|name=Example}}  Example
  • {{flagg|pnb}}  Flag of
  • {{flagg|pnb|image=Example.svg}}  Flag of
  • {{flagg|pnb|image=Example.svg|clink=Main Page}}  Flag of [[Main Page|]]
  • {{flagg|pnb|image=Example.svg|clink=Main Page|name=Example}}  Flag of Example
  • {{flagg|pnb|image=Example.svg|name=Example}}  Flag of Example
  • {{flagg|pnb|image=Example.svg|suff=Suffix}}   Suffix
  • {{flagg|pnb|image=Example.svg|suff=Suffix|clink=Main Page}}  [[Main Page|]] Suffix
  • {{flagg|pnb|image=Example.svg|flink=Other Page}}  Flag of
  • {{flagg|pnb|image=Example.svg|flink=Other Page|clink=Main Page}}  Flag of [[Main Page|]]
  • {{flagg|pnb|image=Example.svg|flink=Other Page|clink=Main Page|name=Example}}  Flag of Example
  • {{flagg|pnb|image=Example.svg|flink=Other Page|name=Example}}  Flag of Example

Misc. tests

edit
  • No data template
    • {{flagg|inu|Belfast}}  Belfast
    • {{flagg|cnp|Belfast}}  Belfast
    • {{flagg|inu|Belfast|image=Flag of Belfast.svg}}  Belfast
    • {{flagg|cnp|Belfast|image=Flag of Belfast.svg}}  Belfast
    • {{flagg|inu|Belfast|image=Flag of Belfast.svg|clink=Belfast}}  Belfast
    • {{flagg|cnp|Belfast|image=Flag of Belfast.svg|clink=Belfast}}  Belfast
    • {{flagg|inu|image=Flag of Belfast.svg|clink=Belfast|name=Belfast}}  Belfast
    • {{flagg|cnp|image=Flag of Belfast.svg|clink=Belfast|name=Belfast}}  Belfast
  • Defined but empty parameters
    • {{flagg|​|Niger}}  Niger
    • {{flagg|usc|​}}  
    • {{flagg|usc|Niger|name=}}  Niger
    • {{flagg|usc|Niger|variant=}}  Niger
    • {{flagg|usc|Niger|clink=}}  Niger
    • {{flagg|usc|Niger|image=}}  Niger
    • {{flagg|usc|Niger|size=}}  Niger
    • {{flagg|usc|Niger|border=}}  Niger
    • {{flagg|usp|Niger|pref=}}  Niger
    • {{flagg|usp|Niger|suff=}}  Niger
    • {{flagg|usp|Niger|the=}}  Niger
    • {{flagg|usp|Niger|flink=}}  Niger
  • Whitespace-padded/capitalized parameters
    • {{flagg|pnu|Niger}}  Niger
    • {{flagg| pnu | Niger }}  Niger
    • {{flagg|pnu| Niger }}  Niger
    • {{flagg|PNU|Niger}}  Niger
  • Border and placeholder image
    • {{flagg|isu}}  
    • {{flagg|isu|border=0}}  
    • {{flagg|isu|border=1}}  
    • {{flagg|isu|Niger|image=none}}  Niger
    • {{flagg|isu|Niger|image=none|border=0}}  Niger
    • {{flagg|isu|Niger|image=none|border=1}}  Niger
    • {{flagg|isu|Niger|image=Flag placeholder.svg}}  Niger
    • {{flagg|isu|Niger|image=Flag placeholder.svg|border=0}}  Niger
    • {{flagg|isu|Niger|image=Flag placeholder.svg|border=1}}  Niger
    • {{flagg|isu|Belfast|image=Flag placeholder.svg}}  Belfast
    • {{flagg|isu|Belfast|image=Flag placeholder.svg|border=0}}  Belfast
    • {{flagg|isu|Belfast|image=Flag placeholder.svg|border=1}}  Belfast
  • Article
  • Myanmar/Burma
  • Ireland
    • {{flagg|usc|Ireland}}  Ireland
    • {{flagg|usc|Ireland|1783}}  Ireland

Comparison with existing flag templates

edit
General flag templates
{{flag|Niger}}   Niger {{flagg|unc|Niger}}   Niger
{{flagbig|Niger}}  
Niger
{{flagg|ulc|Niger|size=30x27px}}  
Niger
{{flagg|ulc|Niger|sz=l}}  
Niger
{{flagc|Niger}}   Niger {{flagg|inc|Niger}}   Niger
{{flagcountry|NER}}   Niger {{flagg|unce|NER}}   Niger
{{flagdeco|Niger}}   {{flagg|uxx|Niger}}  
{{flagicon|Niger}}   {{flagg|cxxa|Niger}}  
{{flagicon image|Example.svg}}   {{flagg|uxx|image=Example.svg}}  
{{flaglink|Niger|at the Olympics}}   Niger {{flagg|unpe|Niger|suff=at the Olympics}}   Niger
{{flag+link|History of|Niger}}   Niger {{flagg|unp|Niger|pref=History of}}   Niger
{{flaglist|Niger}}   Niger {{flagg|usc|Niger}}   Niger
{{flagof|Niger}}   Niger {{flagg|unp|Niger|size=30x20px}}   Niger
{{flagg|unp|Niger|sz=l}}   Niger
{{flagright|Niger}} Niger   {{flagg|uncr|Niger}} Niger  
{{flagu|Niger}}   Niger {{flagg|unu|Niger}}   Niger
{{noflag|Niger}}  Niger {{flagg|xnu|Niger}}   Niger
{{flagg|unu|Niger|image=}}   Niger
{{noflag|[[Niger]]}}  Niger {{flagg|xnc|Niger}}   Niger
{{flagg|unc|Niger|image=}}   Niger
Sports/military flag templates
{{fb|Niger}}   Niger {{flagg|unp|Niger|avar=fb}}   Niger
{{fb|Niger|align=1}}   Niger {{flagg|usp|Niger|avar=fb|align=center}}   Niger
{{fb-big|Niger}}  
Niger
{{flagg|ulp|Niger|avar=fb|size=30x27px}}  
Niger
{{flagg|ulp|Niger|avar=fb|sz=l}}  
Niger
{{fb-rt|Niger}} Niger   {{flagg|unpr|Niger|avar=fb}} Niger  
{{ru|Niger}}   Niger {{flagg|unp|Niger|avar=ru}}   Niger
{{fbu|17|Niger}}   Niger {{flagg|unp|Niger|avar=fbu|age=17}}   Niger
{{fbw|Niger}}   Niger {{flagg|unp|Niger|avar=fbw}}   Niger
{{fbwu|17|Niger}}   Niger {{flagg|unp|Niger|avar=fbwu|age=17}}   Niger
{{army|Niger}}   Niger Army {{flagg|unf|Niger|avar=army}}   Niger Army
{{navy|Niger}}   Niger Navy {{flagg|unf|Niger|avar=navy}}   Niger Navy
{{air force|Niger}}   Niger Air Force {{flagg|unf|Niger|avar=air force}}   Niger Air Force

Automatic comparison

edit
Extended content
{{flag|Niger}}
{{flag|Niger}}
  Niger
  Niger
Expanded code
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border |alt=|link=]]&nbsp;</span>[[Niger|Niger]]
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]&nbsp;</span>[[Niger|Niger]]
{{flagbig|Niger}}
{{flagbig|Niger}}
 
Niger
 
Niger
Expanded code
[[File:Flag of Niger.svg|33x24px|border |alt=|link=]]<br/>[[Niger|Niger]]
<span class="flagicon">[[File:Flag of Niger.svg|30x27px|border|link=|alt=]]<br /></span>[[Niger|Niger]]
{{flagc|Niger}}
{{flagc|Niger}}
  Niger
  Niger
Expanded code
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|alt=flag]]&nbsp;</span>[[Niger|Niger]]
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|alt=]]&nbsp;</span>[[Niger|Niger]]
{{flagcountry|NER}}
{{flagcountry|NER}}
  Niger
  Niger
Expanded code
<span data-sort-value="Niger"><span class="flagicon">[[File:Flag of Niger.svg|23x15px|border |alt=|link=]]&nbsp;</span>[[Niger|Niger]]</span>
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]&nbsp;</span>[[Niger|Niger]]
{{flagdeco|Niger}}
{{flagdeco|Niger}}
 
 
Expanded code
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border |alt=|link=]]</span>
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]</span>
{{flagicon|Niger}}
{{flagicon|Niger}}
 
 
Expanded code
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border |alt=Niger|link=Niger]]</span>
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=Niger|alt=Niger|Niger]]</span>
{{flagicon image|Example.svg}}
{{flagicon image|Example.svg}}
 
 
Expanded code
<span class="flagicon">[[File:Example.svg|23x15px|border |alt=|link=]]</span>
<span class="flagicon">[[File:Example.svg|23x15px|border|link=|alt=]]</span>
{{flaglink|Niger|at the Olympics}}
{{flaglink|Niger|at the Olympics}}
  Niger
  Niger
Expanded code
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border |alt=|link=]]&nbsp;</span>[[Niger at the Olympics|Niger]]
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]&nbsp;</span>[[Niger at the Olympics|Niger]]
{{flag+link|History of|Niger}}
{{flag+link|History of|Niger}}
  Niger
  Niger
Expanded code
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]</span>&nbsp;[[History of Niger|Niger]]
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]&nbsp;</span>[[History of Niger|Niger]]
{{flaglist|Niger}}
{{flaglist|Niger}}
  Niger
  Niger
Expanded code
<span class="flagicon" style="display:inline-block;width:25px;">[[File:Flag of Niger.svg|23x15px|border |alt=|link=]]</span>&nbsp;[[Niger|Niger]]
<span class="flagicon" style="display:inline-block;width:25px;text-align:left">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]</span>&nbsp;[[Niger|Niger]]
{{flagof|Niger}}
{{flagof|Niger}}
  Niger
  Niger
Expanded code
<span class="flagicon">[[File:Flag of Niger.svg|32x21px|border|link=Flag of Niger|alt=]]&nbsp;</span>[[Flag of Niger|Niger]]
<span class="flagicon">[[File:Flag of Niger.svg|30x20px|border|link=|alt=]]&nbsp;</span>[[Flag of Niger|Niger]]
{{flagright|Niger}}
{{flagright|Niger}}
Niger  
Niger  
Expanded code
[[Niger|Niger]]&nbsp;<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border |alt=|link=]]</span>
[[Niger|Niger]]<span class="flagicon">&nbsp;[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]</span>
{{flagu|Niger}}
{{flagu|Niger}}
  Niger
  Niger
Expanded code
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border |alt=|link=]]&nbsp;</span>Niger
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]&nbsp;</span>Niger
{{noflag|Niger}}
{{noflag|Niger}}
 Niger
  Niger
Expanded code
<span class="flagicon" style="padding-left:25px;">&nbsp;</span>Niger
<span class="flagicon">[[File:Flag placeholder.svg|23x15px|link=|alt=]]&nbsp;</span>Niger
{{noflag|Niger}}
{{noflag|Niger}}
 Niger
  Niger
Expanded code
<span class="flagicon" style="padding-left:25px;">&nbsp;</span>Niger
<span class="flagicon">[[File:Flag placeholder.svg|23x15px|link=|alt=]]&nbsp;</span>Niger
{{noflag|[[Niger]]}}
{{noflag|[[Niger]]}}
 Niger
  Niger
Expanded code
<span class="flagicon" style="padding-left:25px;">&nbsp;</span>[[Niger]]
<span class="flagicon">[[File:Flag placeholder.svg|23x15px|link=|alt=]]&nbsp;</span>[[Niger|Niger]]
{{noflag|[[Niger]]}}
{{noflag|[[Niger]]}}
 Niger
  Niger
Expanded code
<span class="flagicon" style="padding-left:25px;">&nbsp;</span>[[Niger]]
<span class="flagicon">[[File:Flag placeholder.svg|23x15px|link=|alt=]]&nbsp;</span>[[Niger|Niger]]
{{fb|Niger}}
{{fb|Niger}}
  Niger
  Niger
Expanded code
<span style="white-space:nowrap"><span class="flagicon">[[File:Flag of Niger.svg|23x15px|border |alt=|link=]]&nbsp;</span>[[Niger national football team|Niger]]</span>
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]&nbsp;</span>[[Niger national football team|Niger]]
{{fb|Niger|align=1}}
{{fb|Niger|align=1}}
  Niger
  Niger
Expanded code
<span style="white-space:nowrap"><span class="flagicon" style="display:inline-block;text-align:center;width:25px;">[[File:Flag of Niger.svg|23x15px|border |alt=|link=]]</span>&nbsp;[[Niger national football team|Niger]]</span>
<span class="flagicon" style="display:inline-block;width:25px;text-align:center">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]</span>&nbsp;[[Niger national football team|Niger]]
{{fb-big|Niger}}
{{fb-big|Niger}}
 
Niger
 
Niger
Expanded code
[[File:Flag of Niger.svg|33x24px|border |alt=|link=]]<br/>[[Niger national football team|Niger]]
<span class="flagicon">[[File:Flag of Niger.svg|30x27px|border|link=|alt=]]<br /></span>[[Niger national football team|Niger]]
{{fb-rt|Niger}}
{{fb-rt|Niger}}
Niger  
Niger  
Expanded code
[[Niger national football team|Niger]]<span class="flagicon">&nbsp;[[File:Flag of Niger.svg|23x15px|border |alt=|link=]]</span>
[[Niger national football team|Niger]]<span class="flagicon">&nbsp;[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]</span>
{{ru|Niger}}
{{ru|Niger}}
  Niger
  Niger
Expanded code
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border |alt=|link=]]&nbsp;</span>[[Niger national rugby union team|Niger]]
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]&nbsp;</span>[[Niger national rugby union team|Niger]]
{{fbu|17|Niger}}
{{fbu|17|Niger}}
  Niger
  Niger
Expanded code
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border |alt=|link=]]&nbsp;</span>[[Niger national under-17 football team|Niger]]
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]&nbsp;</span>[[Niger national under-17 football team|Niger]]
{{fbw|Niger}}
{{fbw|Niger}}
  Niger
  Niger
Expanded code
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]&nbsp;</span>[[Niger women's national football team|Niger]]
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]&nbsp;</span>[[Niger women's national football team|Niger]]
{{fbwu|17|Niger}}
{{fbwu|17|Niger}}
  Niger
  Niger
Expanded code
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border |alt=|link=]]&nbsp;</span>[[Niger women's national under-17 football team|Niger]]
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]&nbsp;</span>[[Niger women's national under-17 football team|Niger]]
{{army|Niger}}
{{army|Niger}}
  Niger Army
  Niger Army
Expanded code
<span class="flagicon">[[File:Flag of Niger.svg|23x17px|border |alt=|link=]]&nbsp;</span>[[Niger Army]]
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]&nbsp;</span>[[Niger Army|Niger Army]]
{{navy|Niger}}
{{navy|Niger}}
  Niger Navy
  Niger Navy
Expanded code
<span class="flagicon">[[File:Flag of Niger.svg|23x20px|border |alt=|link=]]&nbsp;</span>[[Niger Navy]]
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]&nbsp;</span>[[Niger Navy|Niger Navy]]
{{air force|Niger}}
{{air force|Niger}}
  Niger Air Force
  Niger Air Force
Expanded code
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border |alt=|link=]]&nbsp;</span>[[Niger Air Force]]
<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border|link=|alt=]]&nbsp;</span>[[Niger Air Force|Niger Air Force]]

Module vs. wrapper template

edit
  • {{#invoke:flagg|main|usc|Niger}}  Niger
  • {{flagg|usc|Niger}}  Niger
  • {{#invoke:flagg|main|dnbre|NER|size=l|pref=History of}}History of Niger  
  • {{flagg|dnbre|NER|size=l|pref=History of}}History of Niger  
  • {{#invoke:flagg|main|ixx|Japan|size=l|border=}} 
  • {{flagg|ixx|Japan|size=l|border=}} 
  • {{#invoke:flagg|main|ixx|Japan|size=l|border=1}} 
  • {{flagg|ixx|Japan|size=l|border=1}} 

Lua-based getalias

edit
temp param {{getalias|temp|param}} {{getalias2|temp|param}} {{Country data temp|#switch:param}} {{#invoke:CountryData|getalias|temp|param}}
France alias France France France France
France flag alias Flag of France.svg Flag of France.svg Flag of France.svg Flag of France.svg
France flag alias-naval Civil and Naval Ensign of France.svg Civil and Naval Ensign of France.svg Civil and Naval Ensign of France.svg
France flag alias-foo {{{flag alias-foo}}} nil
France flag alias
variant=naval
Civil and Naval Ensign of France.svg Civil and Naval Ensign of France.svg Civil and Naval Ensign of France.svg
France flag alias
variant=foo
Flag of France.svg Flag of France.svg Flag of France.svg
France shortname alias France {{{shortname alias}}} nil
Georgia shortname alias Georgia Georgia Georgia Georgia
France border {{{border}}} nil
Nepal border
France size
Switzerland size
AUS flag alias Flag of Australia (converted).svg Flag of Australia (converted).svg Flag of Australia (converted).svg Flag of Australia (converted).svg
France variant
Nonexisting alias Template:Country data Nonexisting Template:Country data Nonexisting Template:Country data Nonexisting nil

Test data table

edit

France, original template transcluded:

{{ {{{1}}}
| alias = France
| flag alias = Flag of France.svg
| flag alias-1790 = Flag of France (1790–1794).svg
| flag alias-1794 = Flag of France (1794–1815, 1830–1958).svg
| flag alias-1814 = Flag of the Kingdom of France (1814-1830).svg
| flag alias-1830 = Flag of France (1794–1815, 1830–1958).svg
| flag alias-1848 = Drapeau france 1848.svg
| flag alias-1848a = Drapeau france 1848.svg
| flag alias-1848b = Flag of France (1794–1815, 1830–1958).svg
| flag alias-1974 = Flag of France (lighter variant).svg
| flag alias-naval = Civil and Naval Ensign of France.svg
| flag alias-naval-1790 = Flag of French-Navy-Revolution.svg
| flag alias-air force = Flag of France.svg
| link alias-air force = French Air and Space Force
| flag alias-coast guard = French Maritime Gendarmerie racing stripe.svg
| border-coast guard = 
| link alias-coast guard = French Maritime Gendarmerie
| flag alias-army = Flag of France.svg
| link alias-army = French Army
| link alias-naval = French Navy
| flag alias-navy = Civil and Naval Ensign of France.svg
| link alias-navy = French Navy
| size = 
| name = 
| altlink = 
| variant = 

}}

France, recreated in Lua:

{{ {{{1}}}
| altlink = 
| flag alias-naval-1790 = Flag of French-Navy-Revolution.svg
| link alias-coast guard = French Maritime Gendarmerie
| border-coast guard = 
| flag alias-1848 = Drapeau france 1848.svg
| flag alias = Flag of France.svg
| variant = 
| flag alias-1814 = Flag of the Kingdom of France (1814-1830).svg
| flag alias-1830 = Flag of France (1794–1815, 1830–1958).svg
| alias = France
| flag alias-1794 = Flag of France (1794–1815, 1830–1958).svg
| flag alias-army = Flag of France.svg
| flag alias-naval = Civil and Naval Ensign of France.svg
| flag alias-navy = Civil and Naval Ensign of France.svg
| flag alias-1848b = Flag of France (1794–1815, 1830–1958).svg
| name = 
| size = 
| flag alias-1848a = Drapeau france 1848.svg
| link alias-naval = French Navy
| flag alias-1974 = Flag of France (lighter variant).svg
| link alias-air force = French Air and Space Force
| link alias-army = French Army
| flag alias-coast guard = French Maritime Gendarmerie racing stripe.svg
| flag alias-1790 = Flag of France (1790–1794).svg
| flag alias-air force = Flag of France.svg
| link alias-navy = French Navy
}}

Nepal, original template transcluded:

{{ {{{1}}}
| alias = Nepal
| flag alias = Flag of Nepal.svg
| flag alias-old = Flag of Nepal (1775–1962).svg
| flag alias-1930 = Flag of Nepal (1775–1962).svg
| flag alias-1768 = Flag of Nepal (19th century).svg
| flag alias-1856 = Flag of Nepal (1856-c.1930).svg
| link alias-army = Nepali Army
| border =
| size = 
| size flag alias = 24x20px
| size flag alias-old = 24x20px
| size flag alias-1930 = 24x20px
| size flag alias-1768 = 24px
| size flag alias-1856 = 24x20px
| sizebig flag alias = x27px
| sizebig flag alias-old = x27px
| sizebig flag alias-1930 = x27px
| sizebig flag alias-1768 = x30px
| sizebig flag alias-1856 = x27px
| name = 
| altlink = 
| variant = 

}}

Nepal, recreated in Lua:

{{ {{{1}}}
| size flag alias-old = 24x20px
| flag alias-1930 = Flag of Nepal (1775–1962).svg
| border = 
| flag alias = Flag of Nepal.svg
| variant = 
| sizebig flag alias-1930 = x27px
| alias = Nepal
| size = 
| flag alias-1856 = Flag of Nepal (1856-c.1930).svg
| link alias-army = Nepali Army
| altlink = 
| sizebig flag alias-old = x27px
| sizebig flag alias-1768 = x30px
| sizebig flag alias-1856 = x27px
| flag alias-old = Flag of Nepal (1775–1962).svg
| flag alias-1768 = Flag of Nepal (19th century).svg
| name = 
| sizebig flag alias = x27px
| size flag alias-1856 = 24x20px
| size flag alias = 24x20px
| size flag alias-1930 = 24x20px
| size flag alias-1768 = 24px
}}

DRC, original template transcluded:

{{ {{{1}}}
| alias = Democratic Republic of the Congo
| shortname alias = DR Congo
| flag alias = Flag of the Democratic Republic of the Congo.svg
| flag alias-1960 = Flag of the Republic of the Congo (Léopoldville) (1960–1963).svg
| flag alias-1963 = Flag of the Republic of the Congo (Léopoldville) (1963–1966).svg
| flag alias-1966 = Flag of the Democratic Republic of the Congo (1966–1971).svg
| flag alias-1997 = Flag of the Democratic Republic of the Congo (1997–2003).svg
| flag alias-2003 = Flag of the Democratic Republic of the Congo (2003–2006).svg 
| link alias-army = Land Forces of the Democratic Republic of the Congo
| link alias-naval = Navy of the Democratic Republic of the Congo
| link alias-air force = Air Force of the Democratic Republic of the Congo
| link alias-navy = Navy of the Democratic Republic of the Congo
| link alias-military = Armed Forces of the Democratic Republic of the Congo
| size = 
| name = 
| altlink = 
| altvar = 
| variant = 

}}

DRC, recreated in Lua:

{{ {{{1}}}
| altlink = 
| flag alias = Flag of the Democratic Republic of the Congo.svg
| flag alias-2003 = Flag of the Democratic Republic of the Congo (2003–2006).svg
| flag alias-1997 = Flag of the Democratic Republic of the Congo (1997–2003).svg
| alias = Democratic Republic of the Congo
| size = 
| link alias-naval = Navy of the Democratic Republic of the Congo
| flag alias-1966 = Flag of the Democratic Republic of the Congo (1966–1971).svg
| flag alias-1963 = Flag of the Republic of the Congo (Léopoldville) (1963–1966).svg
| shortname alias = DR Congo
| variant = 
| altvar = 
| link alias-air force = Air Force of the Democratic Republic of the Congo
| name = 
| link alias-army = Land Forces of the Democratic Republic of the Congo
| link alias-military = Armed Forces of the Democratic Republic of the Congo
| flag alias-1960 = Flag of the Republic of the Congo (Léopoldville) (1960–1963).svg
| link alias-navy = Navy of the Democratic Republic of the Congo
}}