Template:Flag: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(includeonly. Moved category do /doc) |
||
(51 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{#if: {{{1|}}} | | <includeonly>{{#if: {{{1|}}} | | ||
{{#ifexist: File:Flag_ | {{#ifexist: File:Flag_{{{1}}}.png | ||
| [[File:Flag_{{{1}}}.png<!-- | |||
-->| {{#if: {{{size|}}} | |||
| [[File:Flag_ | |||
| {{{size}}}px | | {{{size}}}px | ||
| 25px | | 25px | ||
}} | }}<!-- | ||
-->| {{#switch: {{lc: {{{1}}} }} | |||
| cs | | | cs = Čeština | ||
| da = Dansk | |||
| de = Deutsch | | de = Deutsch | ||
| en = English | | en = English | ||
| es = Español | | es = Español | ||
| fr = Français | | fr = Français | ||
| hu = Magyar | |||
| it = Italiano | | it = Italiano | ||
| ja = 日本語 | |||
| ko = 한국어 | |||
| ms = Bahasa Melayu | |||
| nl = Nederlands | | nl = Nederlands | ||
| pt-br = Português | | pl = Polski | ||
| pt-br = Português, Brasil | |||
| pt-pt = Português | |||
| ru = Русский | | ru = Русский | ||
| uk | | | sv = Svenska | ||
| tr = Türkçe | |||
| uk = Українська | |||
| vi = Tiếng Việt Nam | |||
| zh = 简体中文 | |||
| zh-tw = 繁體中文 | |||
| #default = {{{1}}} | | #default = {{{1}}} | ||
}} | }}<!-- | ||
-->| class=flag<!-- | |||
-->|link= {{#if: {{{link|}}} | |||
| {{#ifeq: {{{link|}}} | none | | {{#ifeq: {{{link|}}} | none | ||
| | | | ||
| {{{link}}} | | {{{link}}} | ||
}} | }} | ||
| {{#switch: {{ | | {{#switch: {{Language suffix}} | ||
| cs| de | es | fr | it | nl | pt-br | ru | uk | | | cs | da | de | es | fr | hu | it | ja | ko | ms | nl | pl | pt-br | pt-pt | ru | sv | tr | uk | vi | zh | zh-tw = {{#titleparts: {{FULLPAGENAME}} | -1 }} | ||
| #default = {{FULLPAGENAME}} | | #default = {{FULLPAGENAME}} | ||
}}{{#switch: {{lc: {{{1}}} }} | }}{{#switch: {{lc: {{{1}}} }} | ||
| en = | | en = | ||
| #default = /{{{1}}} | | #default = /{{{1}}} | ||
}} | }} | ||
}} | }} | ||
]] | ]] | ||
| <br><b>Country code <code>{{{1}}}</code> is not supported by | | <br/><b>Country code <code>{{{1}}}</code> is not supported by the "Flag" template. Please consider adding it [https://wiki.factorio.com/index.php?title=Template:Flag&action=edit here].</b>[[Category:Pages that link to the Flag template using unsupported country codes]]<br/> | ||
}} | }} | ||
| <br><b> | | <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> | }}{{#ifeq: {{{text|}}} | yes | {{-}} {{Country name|local|{{{1}}}}} ({{Country name| {{#switch: {{Language suffix}} | cs | da | de | es | fr | hu | it | ja | ko | ms | nl | pl | pt-br | pt-pt | ru | sv | tr | uk | vi | zh | zh-tw = {{Language suffix}} | #default = en }} | {{{1}}} }}) <br/> }}</includeonly><noinclude> | ||
{{ | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 17:08, 13 October 2023
[View] [Edit] [Page history]
DocumentationUsage
{{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}}
-