|  |     | 
| (45 intermediate revisions by 10 users not shown) | 
| Line 1: | Line 1: | 
|  | <includeonly>
 |  | <!-- Translating the title of the page using the DISPLAYTITLE magic word | 
|  | <!-- |  | -->{{#switch: {{NAMESPACE}} | Tutorial | = {{DISPLAYTITLE: {{Translation| {{#titleparts: {{FULLPAGENAME}} | -1 }} }} }} }}<!-- | 
|  | /* Translating the title of the page using the DISPLAYTITLE magic word/*
 |  |  For archived pages, translate the title without the namespace part | 
|  | --> |  | -->{{#ifeq: {{NAMESPACE}} | Archive | {{DISPLAYTITLE: {{Translation| {{No language suffix/No namespace}} }} }} }}<!-- | 
|  | {{#ifeq: {{NAMESPACE}}||{{DISPLAYTITLE: {{Translation| {{No mod prefix| {{FULLPAGENAME}} }} }} }} }} |  |  Add page to that language's category if the page actually exists, and only if the page is not a category itself | 
|  | <!-- |  | -->{{#ifexist: {{FULLPAGENAME}} | {{#ifeq: {{NAMESPACE}}|Category||[[Category:{{Get language name}} page]]}}}}<!-- | 
|  | /* Adding thepage to thecorrect language category /*
 |  |  Automatically show flags of other language's versions of this page  | 
|  | -->{{#ifeq: {{#explode: {{FULLPAGENAME}} | | -1 }} |page | | |  | --><indicator name="languages-container"> | 
|  | {{#switch: {{Language suffix}} |  | <div class="languages-container"> | 
|  |               | cs = [[Category:Czech page]]
 |  | <span class="languages-message"> | 
|  |               | de = [[Category:German page]]
 |  | {{Translation|In other languages:}} | 
|  |               | es = [[Category:Spanish page]]
 |  | </span> | 
|  |               | fr = [[Category:French page]]
 |  | <span class="languages-flags"> | 
|  |               | it = [[Category:Italian page]]
 |  | {{Language exist|cs}} | 
|  |               | nl = [[Category:Dutch page]]
 |  | {{Language exist|da}} | 
|  |               | pt-br = [[Category:Brazilian Portuguese page]]
 |  | {{Language exist|de}} | 
|  |               | ru = [[Category:Russian page]]
 |  | {{Language exist|en}} | 
|  |               | uk = [[Category:Ukrainian page]]
 |  | {{Language exist|es}} | 
|  |               | zh = [[Category:Chinese page]]
 |  | {{Language exist|fr}} | 
|  |               | #default = [[Category:English page]]
 |  | {{Language exist|hu}} | 
|  | }} }}{{Languages test|{{#ifeq: {{{list|}}}| yes | |<div |  | {{Language exist|it}} | 
|  | style="background-color: #EFEFEF;
 |  | {{Language exist|ja}} | 
|  | padding: 5px;
 |  | {{Language exist|ko}} | 
|  | border-color: #ACACAC;
 |  | {{Language exist|ms}} | 
|  | border-width: 1px;
 |  | {{Language exist|nl}} | 
|  | border-style: solid;
 |  | {{Language exist|pl}} | 
|  | border-bottom-width: medium;
 |  | {{Language exist|pt-br}} | 
|  | position: absolute;
 |  | {{Language exist|pt-pt}} | 
|  | right: 0;
 |  | {{Language exist|ru}} | 
|  | top: -2.4em;
 |  | {{Language exist|sv}} | 
|  | "><!--
 |  | {{Language exist|tr}} | 
|  | /* Translating themessage displayed next to theflag /*
 |  | {{Language exist|uk}} | 
|  | --><small>'''{{#switch: {{Language suffix}} |  | {{Language exist|vi}} | 
|  |               | cs = V jiných jazycích
 |  | {{Language exist|zh}} | 
|  |               | de = In anderen Sprachen
 |  | {{Language exist|zh-tw}} | 
|  |               | es = En otros idiomas
 |  | </span> | 
|  |               | fr = Dans d'autres langues
 |  | </div></indicator><noinclude> | 
|  |               | it = In altre lingue
 |  | 
|  |               | nl = In andere talen
 |  | 
|  |               | pt-br = In other languages
 |  | 
|  |               | ru = Другими языками
 |  | 
|  |               | uk = Іншими мовами
 |  | 
|  |               | zh = In other languages
 |  | 
|  |               |#default = In other languages
 |  | 
|  |           }}: '''</small> <!--
 |  | 
|  | /* Using manual language adding by inserting the language code in the template's parameters /*
 |  | 
|  | -->}}{{#if: {{{1|}}}{{{cs|}}}{{{de|}}}{{{en|}}}{{{es|}}}{{{fr|}}}{{{it|}}}{{{nl|}}}{{{pt-br|}}}{{{ru|}}}{{{uk|}}}{{{zh|}}}
 |  | 
|  |     | {{#if:{{{1|}}}|{{Flag|{{{1}}}}}}}<!--
 |  | 
|  |       -->{{#if:{{{2|}}}|{{Flag|{{{2}}}}}}}<!--
 |  | 
|  |       -->{{#if:{{{3|}}}|{{Flag|{{{3}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{4|}}}|{{Flag|{{{4}}}}}}}<!--
 |  | 
|  |       -->{{#if:{{{5|}}}|{{Flag|{{{5}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{6|}}}|{{Flag|{{{6}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{7|}}}|{{Flag|{{{7}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{8|}}}|{{Flag|{{{8}}}}}}}<!--
 |  | 
|  |       -->{{#if:{{{9|}}}|{{Flag|{{{9}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{10|}}}|{{Flag|{{{10}}}}}}}<!--
 |  | 
|  |       -->{{#if:{{{11|}}}|{{Flag|{{{11}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{cs|}}}|{{Flag|cs|link={{{cs}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{de|}}}|{{Flag|de|link={{{de}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{en|}}}|{{Flag|en|link={{{en}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{es|}}}|{{Flag|es|link={{{es}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{fr|}}}|{{Flag|fr|link={{{fr}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{it|}}}|{{Flag|it|link={{{it}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{nl|}}}|{{Flag|nl|link={{{nl}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{pt-br|}}}|{{Flag|pt-br|link={{{pt-br}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{ru|}}}|{{Flag|ru|link={{{ru}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{uk|}}}|{{Flag|uk|link={{{uk}}}}}}}<!--
 |  | 
|  |       --> {{#if:{{{zh|}}}|{{Flag|zh|link={{{zh}}}}}}}<!--
 |  | 
|  | /* If no language code is inserted into the template's parameters, search for pages with the same title in other languages /*
 |  | 
|  |       -->
 |  | 
|  |     | {{Language exist|cs|{{{list}}}}}<!--
 |  | 
|  |    -->{{Language exist|de|{{{list}}}}}<!--
 |  | 
|  |    -->{{#switch: {{Languagesuffix}}
 |  | 
|  |           | cs| de | es | fr | it | nl | pt-br| ru | uk | zh = {{#ifexist: {{#switch: {{Language suffix}}
 |  | 
|  |                                                                             | cs| de | es | fr | it | nl | pt-br | ru | uk | zh = {{#titleparts: {{FULLPAGENAME}}| -1 }}
 |  | 
|  |                                                                             | #default = {{FULLPAGENAME}}
 |  | 
|  |                                                                         }} | {{#ifeq: {{{list|}}} | yes | {{Flag|en|text=yes}} | {{Flag|en}} }}
 |  | 
|  |       }}}}<!--
 |  | 
|  |    -->{{Language exist|es|{{{list}}}}}<!--
 |  | 
|  |    -->{{Language exist|fr|{{{list}}}}}<!--
 |  | 
|  |    -->{{Language exist|it|{{{list}}}}}<!--
 |  | 
|  |    -->{{Language exist|nl|{{{list}}}}} <!--
 |  | 
|  |    -->{{Language exist|pt-br|{{{list}}}}}<!--
 |  | 
|  |    -->{{Language exist|ru|{{{list}}}}} <!--
 |  | 
|  |    -->{{Language exist|uk|{{{list}}}}} <!--
 |  | 
|  |    -->{{Language exist|zh|{{{list}}}}}}}{{#ifeq: {{{list|}}} | yes | |</div>}}
 |  | 
|  | }}</includeonly><noinclude>
 |  | 
|  |   |  | 
|  | {{documentation}} |  | {{documentation}} | 
|  |   |  | [[Category:Localisation templates]] [[Category:Main]] | 
|  | [[Category:Localisation templates]] |  | 
|  | </noinclude> |  | </noinclude> |