Template:Flag: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 46: Line 46:
     }}  
     }}  
     | <br><includeonly><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]]</includeonly><br>  
     | <br><includeonly><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]]</includeonly><br>  
}}{{#ifeq: {{{text|}}} | yes | {{-}} {{Country name|local|{{{1}}}}} ({{Country name| {{#titleparts: {{FULLPAGENAME}} | | -1 }} | {{{1}}} }}) }}<noinclude>
}}{{#ifeq: {{{text|}}} | yes | {{-}} {{Country name|local|{{{1}}}}} ({{Country name| {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | cs | de | en | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}} | | -1 }} | #default = en }} | {{| {{{1}}} }}) }}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 20:33, 2 October 2014

English{{#ifeq: | yes | Template:- English ({{| en }})

{{#ifeq: | yes | Template:- {{{1}}} ({{| {{{1}}} }})

[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}} -
    Country code cs is not supported by the "Flag" template. Please consider adding it here.
    {{#ifeq: | yes | Template:- Česky ({{| cs }})
  • da - {{Flag|da}} - da{{#ifeq: | yes | Template:- da ({{| da }})
  • de - {{Flag|de}} - Deutsch{{#ifeq: | yes | Template:- Deutsch ({{| de }})
  • en - {{Flag|en}} - English{{#ifeq: | yes | Template:- English ({{| en }})
  • es - {{Flag|es}} - Español{{#ifeq: | yes | Template:- Español ({{| es }})
  • fr - {{Flag|fr}} - Français{{#ifeq: | yes | Template:- Français ({{| fr }})
  • hu - {{Flag|hu}} - hu{{#ifeq: | yes | Template:- hu ({{| hu }})
  • it - {{Flag|it}} - Italiano{{#ifeq: | yes | Template:- Italiano ({{| it }})
  • ja - {{Flag|ja}} - ja{{#ifeq: | yes | Template:- ja ({{| ja }})
  • ko - {{Flag|ko}} - ko{{#ifeq: | yes | Template:- ko ({{| ko }})
  • ms - {{Flag|ms}} - ms{{#ifeq: | yes | Template:- ms ({{| ms }})
  • nl - {{Flag|nl}} - Nederlands{{#ifeq: | yes | Template:- Nederlands ({{| nl }})
  • pt-br - {{Flag|pt-br}} - Português do Brasil{{#ifeq: | yes | Template:- Português do Brasil ({{| pt-br }})
  • pt-pt - {{Flag|pt-pt}} - pt-pt{{#ifeq: | yes | Template:- pt-pt ({{| pt-pt }})
  • ru - {{Flag|ru}} - Русский{{#ifeq: | yes | Template:- Русский ({{| ru }})
  • sv - {{Flag|sv}} - sv{{#ifeq: | yes | Template:- sv ({{| sv }})
  • tr - {{Flag|tr}} - tr{{#ifeq: | yes | Template:- tr ({{| tr }})
  • uk - {{Flag|uk}} -
    Country code uk is not supported by the "Flag" template. Please consider adding it here.
    {{#ifeq: | yes | Template:- Українська ({{| uk }})
  • vi - {{Flag|vi}} - vi{{#ifeq: | yes | Template:- vi ({{| vi }})
  • zh - {{Flag|zh}} - zh{{#ifeq: | yes | Template:- 简体中文 ({{| zh }})
  • zh-tw - {{Flag|zh-tw}} - zh-tw{{#ifeq: | yes | Template:- zh-tw ({{| zh-tw }})
List of all templates