Template:Flag: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#if: {{{1|}}} |  
{{#if: {{{1|}}} |  
     {{#ifexist: File:Flag_{{{1}}}.png |  
     {{#ifexist: {{#switch: {{lc {{{1}}} }}
        [[File:Flag_{{{1}}}.png | {{#if: {{{size|}}}  
                    | cs = File:Flag_cz.png
                                      | {{{size}}}px  
                    | uk = File:Flag_ua.png
                                      | 25px
                    | #default = File:Flag_{{{1}}}.png
                                  }} | {{#switch: {{lc: {{{1}}} }}  
                }}
                                            | en = English  
        | {{#switch: {{lc {{{1}}} }}
                                            | fr = Français  
              | cs = [[File:Flag_cz.png
                                            | de = Deutsch  
              | uk = [[File:Flag_ua.png
                                            | ru = Русский  
              | #default = [[File:Flag_{{{1}}}.png
                                            | es = Español  
          }} | {{#if: {{{size|}}}  
                                            | pt-br = Português do Brasil  
                  | {{{size}}}px  
                                            | it = Italiano  
                  | 25px
                                            | cs | cz = Česky  
              }} | {{#switch: {{lc: {{{1}}} }}  
                                            | uk | ua = Українська  
                        | en = English  
                                            | nl = Nederlands  
                        | fr = Français  
                                            | #default = {{{1}}}
                        | de = Deutsch  
                                        }} | link= {{#if: {{{2|}}}  
                        | ru = Русский  
                                                        | {{{2}}}  
                        | es = Español  
                                                        | {{FULLPAGENAME}}/{{{1}}}  
                        | pt-br = Português do Brasil  
                                                    }}
                        | it = Italiano  
                        | cs | cz = Česky  
                        | uk | ua = Українська  
                        | nl = Nederlands  
                        | #default = {{{1}}}
                    }} | link= {{#if: {{{2|}}}  
                                  | {{{2}}}  
                                  | {{FULLPAGENAME}}/{{{1}}}  
                              }}
         ]]  
         ]]  
         | <br><b>Country code <code>{{{1}}}</code> is not supported by this template!</b><br>  
         | <br><b>Country code <code>{{{1}}}</code> is not supported by this template!</b><br>  

Revision as of 16:05, 26 August 2014

{{#if: |

   {{#ifexist: File:Flag_{{{1}}}.png
       | {{#switch: {{lc {{{1}}} }}
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_{{{1}}}.png
         }} | 25px | {{{1}}} | link= Template:Flag/{{{1}}}
       ]] 
       | 
Country code {{{1}}} is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

[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}} - {{#if: cs |
   {{#ifexist: File:Flag_cs.png
       | {{#switch: Template:Lc cs
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_cs.png
         }} | 25px | Česky | link= Template:Flag/cs
       ]] 
       | 
Country code cs is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • da - {{Flag|da}} - {{#if: da |
   {{#ifexist: File:Flag_da.png
       | {{#switch: Template:Lc da
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_da.png
         }} | 25px | da | link= Template:Flag/da
       ]] 
       | 
Country code da is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • de - {{Flag|de}} - {{#if: de |
   {{#ifexist: File:Flag_de.png
       | {{#switch: Template:Lc de
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_de.png
         }} | 25px | Deutsch | link= Template:Flag/de
       ]] 
       | 
Country code de is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • en - {{Flag|en}} - {{#if: en |
   {{#ifexist: File:Flag_en.png
       | {{#switch: Template:Lc en
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_en.png
         }} | 25px | English | link= Template:Flag/en
       ]] 
       | 
Country code en is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • es - {{Flag|es}} - {{#if: es |
   {{#ifexist: File:Flag_es.png
       | {{#switch: Template:Lc es
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_es.png
         }} | 25px | Español | link= Template:Flag/es
       ]] 
       | 
Country code es is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • fr - {{Flag|fr}} - {{#if: fr |
   {{#ifexist: File:Flag_fr.png
       | {{#switch: Template:Lc fr
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_fr.png
         }} | 25px | Français | link= Template:Flag/fr
       ]] 
       | 
Country code fr is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • hu - {{Flag|hu}} - {{#if: hu |
   {{#ifexist: File:Flag_hu.png
       | {{#switch: Template:Lc hu
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_hu.png
         }} | 25px | hu | link= Template:Flag/hu
       ]] 
       | 
Country code hu is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • it - {{Flag|it}} - {{#if: it |
   {{#ifexist: File:Flag_it.png
       | {{#switch: Template:Lc it
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_it.png
         }} | 25px | Italiano | link= Template:Flag/it
       ]] 
       | 
Country code it is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • ja - {{Flag|ja}} - {{#if: ja |
   {{#ifexist: File:Flag_ja.png
       | {{#switch: Template:Lc ja
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_ja.png
         }} | 25px | ja | link= Template:Flag/ja
       ]] 
       | 
Country code ja is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • ko - {{Flag|ko}} - {{#if: ko |
   {{#ifexist: File:Flag_ko.png
       | {{#switch: Template:Lc ko
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_ko.png
         }} | 25px | ko | link= Template:Flag/ko
       ]] 
       | 
Country code ko is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • ms - {{Flag|ms}} - {{#if: ms |
   {{#ifexist: File:Flag_ms.png
       | {{#switch: Template:Lc ms
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_ms.png
         }} | 25px | ms | link= Template:Flag/ms
       ]] 
       | 
Country code ms is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • nl - {{Flag|nl}} - {{#if: nl |
   {{#ifexist: File:Flag_nl.png
       | {{#switch: Template:Lc nl
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_nl.png
         }} | 25px | Nederlands | link= Template:Flag/nl
       ]] 
       | 
Country code nl is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • pt-br - {{Flag|pt-br}} - {{#if: pt-br |
   {{#ifexist: File:Flag_pt-br.png
       | {{#switch: Template:Lc pt-br
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_pt-br.png
         }} | 25px | Português do Brasil | link= Template:Flag/pt-br
       ]] 
       | 
Country code pt-br is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • pt-pt - {{Flag|pt-pt}} - {{#if: pt-pt |
   {{#ifexist: File:Flag_pt-pt.png
       | {{#switch: Template:Lc pt-pt
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_pt-pt.png
         }} | 25px | pt-pt | link= Template:Flag/pt-pt
       ]] 
       | 
Country code pt-pt is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • ru - {{Flag|ru}} - {{#if: ru |
   {{#ifexist: File:Flag_ru.png
       | {{#switch: Template:Lc ru
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_ru.png
         }} | 25px | Русский | link= Template:Flag/ru
       ]] 
       | 
Country code ru is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • sv - {{Flag|sv}} - {{#if: sv |
   {{#ifexist: File:Flag_sv.png
       | {{#switch: Template:Lc sv
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_sv.png
         }} | 25px | sv | link= Template:Flag/sv
       ]] 
       | 
Country code sv is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • tr - {{Flag|tr}} - {{#if: tr |
   {{#ifexist: File:Flag_tr.png
       | {{#switch: Template:Lc tr
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_tr.png
         }} | 25px | tr | link= Template:Flag/tr
       ]] 
       | 
Country code tr is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • uk - {{Flag|uk}} - {{#if: uk |
   {{#ifexist: File:Flag_uk.png
       | {{#switch: Template:Lc uk
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_uk.png
         }} | 25px | Українська | link= Template:Flag/uk
       ]] 
       | 
Country code uk is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • vi - {{Flag|vi}} - {{#if: vi |
   {{#ifexist: File:Flag_vi.png
       | {{#switch: Template:Lc vi
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_vi.png
         }} | 25px | vi | link= Template:Flag/vi
       ]] 
       | 
Country code vi is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • zh - {{Flag|zh}} - {{#if: zh |
   {{#ifexist: File:Flag_zh.png
       | {{#switch: Template:Lc zh
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_zh.png
         }} | 25px | zh | link= Template:Flag/zh
       ]] 
       | 
Country code zh is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}

}}

  • zh-tw - {{Flag|zh-tw}} - {{#if: zh-tw |
   {{#ifexist: File:Flag_zh-tw.png
       | {{#switch: Template:Lc zh-tw
             | cs = [[File:Flag_cz.png
             | uk = [[File:Flag_ua.png
             | #default = [[File:Flag_zh-tw.png
         }} | 25px | zh-tw | link= Template:Flag/zh-tw
       ]] 
       | 
Country code zh-tw is not supported by this template!
}} |
Country parameter not found! Please insert a country code into the first parameter of the "Flag" template. Example: {{Flag|de}}
}}
List of all templates