Template:Flag: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Undo revision 112360 by TheWombatGuru (talk))
No edit summary
Line 1: Line 1:
{{Flag|en}}{{#if: {{{1|}}} |  
<noinclude>{{Flag|en}}</noinclude<includeonly>{{#if: {{{1|}}} |  
     {{#ifexist: File:Flag_{{#switch: {{lc: {{{1}}} }}
     {{#ifexist: File:Flag_{{#switch: {{lc: {{{1}}} }}
                               | cs = cz
                               | cs = cz
Line 43: Line 43:
                     }}
                     }}
         ]]  
         ]]  
         | <br><b>Country code <code>{{{1}}}</code> is not supported by the "Flag" template. Please consider adding it [http://www.factorioforums.com/wiki/index.php?title=Template:Flag&action=edit here].</b><includeonly>[[Category:Pages that link to the Flag template using unsupported country codes]]</includeonly><br>  
         | <br><b>Country code <code>{{{1}}}</code> is not supported by the "Flag" template. Please consider adding it [http://www.factorioforums.com/wiki/index.php?title=Template:Flag&action=edit here].</b>[[Category:Pages that link to the Flag template using unsupported country codes]]<br>  
     }}  
     }}  
     | <br><b>No country code specified! Please insert a country code into the first parameter of the "Flag" template. Example: <code><nowiki>{{Flag|de}}</nowiki></code></b><includeonly>[[Category:Pages that link to the Flag template without specifying a country codes]]</includeonly><br>  
     | <br><b>No country code specified! Please insert a country code into the first parameter of the "Flag" template. Example: <code><nowiki>{{Flag|de}}</nowiki></code></b>[[Category:Pages that link to the Flag template without specifying a country codes]]<br>  
}}<noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 20:28, 29 September 2014

</noinclude

[View] [Edit] [Page history]

Documentation

Usage

{{Flag|Language code|link=Page to link to|size=Size of the flag}}

This template creates a flag for a specific country.

The following flags are supported:

  • cs - {{Flag|cs}} -
  • da - {{Flag|da}} -
  • de - {{Flag|de}} -
  • en - {{Flag|en}} -
  • es - {{Flag|es}} -
  • fr - {{Flag|fr}} -
  • hu - {{Flag|hu}} -
  • it - {{Flag|it}} -
  • ja - {{Flag|ja}} -
  • ko - {{Flag|ko}} -
  • ms - {{Flag|ms}} -
  • nl - {{Flag|nl}} -
  • pt-br - {{Flag|pt-br}} -
  • pt-pt - {{Flag|pt-pt}} -
  • ru - {{Flag|ru}} -
  • sv - {{Flag|sv}} -
  • tr - {{Flag|tr}} -
  • uk - {{Flag|uk}} -
  • vi - {{Flag|vi}} -
  • zh - {{Flag|zh}} -
  • zh-tw - {{Flag|zh-tw}} -
List of all templates