Template:Languages: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
| zh = [[Category:Chinese page]] | | zh = [[Category:Chinese page]] | ||
| #default = [[Category:English page]] | | #default = [[Category:English page]] | ||
}}}}{{#ifeq: {{#expr: {{#if: {{{1|}}} | 1 | 0 }} + {{#if: {{{cs|}}} | 1 | 0 }} + {{#if: {{{de|}}} | 1 | 0 }} + {{#if: {{{es|}}} | 1 | 0 }} + {{#if: {{{fr|}}} | 1 | 0 }} + {{#if: {{{it|}}} | 1 | 0 }} + {{#if: {{{ja|}}} | 1 | 0 }} + {{#if: {{{nl|}}} | 1 | 0 }} + {{#if: {{{pl|}}} | 1 | 0 }} + {{#if: {{{pt-br|}}} | 1 | 0 }} + {{#if: {{{ru|}}} | 1 | 0 }} + {{#if: {{{sv|}}} | 1 | 0 }} + {{#if: {{{uk|}}} | 1 | 0 }} + {{#if: {{{zh|}}} | 1 | 0 }} + {{Other test|cs}}+{{Other test|de}}+{{Other test|es}}+{{Other test|fr}}+{{Other test|it}}+{{Other test|nl}}+{{Other test|pl}}+{{Other test|pt-br}}+{{Other test|ru}}+{{Other test|sv}}+{{Other test|uk}}+{{Other test|zh}}+{{#ifeq: {{No language suffix}} | {{FULLPAGENAME}} | 0 | {{#ifexist: {{No language suffix}} | 1 | 0 }} }} | }}}}{{#ifeq: {{#expr: {{#if: {{{1|}}} | 1 | 0 }} + {{#if: {{{cs|}}} | 1 | 0 }} + {{#if: {{{de|}}} | 1 | 0 }} + {{#if: {{{es|}}} | 1 | 0 }} + {{#if: {{{fr|}}} | 1 | 0 }} + {{#if: {{{it|}}} | 1 | 0 }} + {{#if: {{{ja|}}} | 1 | 0 }} + {{#if: {{{nl|}}} | 1 | 0 }} + {{#if: {{{pl|}}} | 1 | 0 }} + {{#if: {{{pt-br|}}} | 1 | 0 }} + {{#if: {{{ru|}}} | 1 | 0 }} + {{#if: {{{sv|}}} | 1 | 0 }} + {{#if: {{{uk|}}} | 1 | 0 }} + {{#if: {{{zh|}}} | 1 | 0 }} + {{Other test|cs}}+{{Other test|de}}+{{Other test|es}}+{{Other test|fr}}+{{Other test|it}}+{{Other test|ja}}+{{Other test|nl}}+{{Other test|pl}}+{{Other test|pt-br}}+{{Other test|ru}}+{{Other test|sv}}+{{Other test|uk}}+{{Other test|zh}}+{{#ifeq: {{No language suffix}} | {{FULLPAGENAME}} | 0 | {{#ifexist: {{No language suffix}} | 1 | 0 }} }} | ||
}} | 0 | |{{#ifeq: {{{list|}}} | yes | |<div | }} | 0 | |{{#ifeq: {{{list|}}} | yes | |<div | ||
style="background-color: #EFEFEF; | style="background-color: #EFEFEF; | ||
Line 40: | Line 40: | ||
| fr = Dans d'autres langues | | fr = Dans d'autres langues | ||
| it = In altre lingue | | it = In altre lingue | ||
| ja = In other languages | |||
| nl = In andere talen | | nl = In andere talen | ||
| pl = W innych językach | | pl = W innych językach | ||
Line 50: | Line 51: | ||
}}: '''</small> <!-- | }}: '''</small> <!-- | ||
/* Using manual language adding by inserting the language code in the template's parameters /* | /* Using manual language adding by inserting the language code in the template's parameters /* | ||
-->}}{{#if: {{{1|}}}{{{cs|}}}{{{de|}}}{{{en|}}}{{{es|}}}{{{fr|}}}{{{it|}}}{{{nl|}}}{{{pl|}}}{{{pt-br|}}}{{{ru|}}}{{{sv|}}}{{{uk|}}}{{{zh|}}} | -->}}{{#if: {{{1|}}}{{{cs|}}}{{{de|}}}{{{en|}}}{{{es|}}}{{{fr|}}}{{{it|}}}{{{ja|}}}{{{nl|}}}{{{pl|}}}{{{pt-br|}}}{{{ru|}}}{{{sv|}}}{{{uk|}}}{{{zh|}}} | ||
| {{#if:{{{1|}}}|{{Flag|{{{1}}}}}}}<!-- | | {{#if:{{{1|}}}|{{Flag|{{{1}}}}}}}<!-- | ||
--> {{#if:{{{2|}}}|{{Flag|{{{2}}}}}}}<!-- | --> {{#if:{{{2|}}}|{{Flag|{{{2}}}}}}}<!-- | ||
Line 70: | Line 71: | ||
--> {{#if:{{{fr|}}}|{{Flag|fr|link={{{fr}}}}}}}<!-- | --> {{#if:{{{fr|}}}|{{Flag|fr|link={{{fr}}}}}}}<!-- | ||
--> {{#if:{{{it|}}}|{{Flag|it|link={{{it}}}}}}}<!-- | --> {{#if:{{{it|}}}|{{Flag|it|link={{{it}}}}}}}<!-- | ||
--> {{#if:{{{ja|}}}|{{Flag|ja|link={{{ja}}}}}}}<!-- | |||
--> {{#if:{{{nl|}}}|{{Flag|nl|link={{{nl}}}}}}}<!-- | --> {{#if:{{{nl|}}}|{{Flag|nl|link={{{nl}}}}}}}<!-- | ||
--> {{#if:{{{pl|}}}|{{Flag|pl|link={{{pl}}}}}}}<!-- | --> {{#if:{{{pl|}}}|{{Flag|pl|link={{{pl}}}}}}}<!-- | ||
Line 82: | Line 84: | ||
-->{{Language exist|de|{{{list}}}}} <!-- | -->{{Language exist|de|{{{list}}}}} <!-- | ||
-->{{#switch: {{Language suffix}} | -->{{#switch: {{Language suffix}} | ||
| cs| de | es | fr | it | nl | pl | pt-br | ru | sv | uk | zh = {{#ifexist: {{#switch: {{Language suffix}} | | cs| de | es | fr | it | ja | nl | pl | pt-br | ru | sv | uk | zh = {{#ifexist: {{#switch: {{Language suffix}} | ||
| cs| de | es | fr | it | nl | pl | pt-br | ru | sv | uk | zh = {{#titleparts: {{FULLPAGENAME}}| -1 }} | | cs| de | es | fr | it | ja | nl | pl | pt-br | ru | sv | uk | zh = {{#titleparts: {{FULLPAGENAME}}| -1 }} | ||
| #default = {{FULLPAGENAME}} | | #default = {{FULLPAGENAME}} | ||
}} | {{#ifeq: {{{list|}}} | yes | {{Flag|en|text=yes}} | {{Flag|en}} }} }} }} <!-- | }} | {{#ifeq: {{{list|}}} | yes | {{Flag|en|text=yes}} | {{Flag|en}} }} }} }} <!-- | ||
Line 89: | Line 91: | ||
-->{{Language exist|fr|{{{list}}}}} <!-- | -->{{Language exist|fr|{{{list}}}}} <!-- | ||
-->{{Language exist|it|{{{list}}}}} <!-- | -->{{Language exist|it|{{{list}}}}} <!-- | ||
-->{{Language exist|ja|{{{list}}}}} <!-- | |||
-->{{Language exist|nl|{{{list}}}}} <!-- | -->{{Language exist|nl|{{{list}}}}} <!-- | ||
-->{{Language exist|pl|{{{list}}}}} <!-- | -->{{Language exist|pl|{{{list}}}}} <!-- | ||
Line 98: | Line 101: | ||
}}<!-- | }}<!-- | ||
Check if a page exists in another language than English, but not in English itself. If so, put that page in a tracking category. | Check if a page exists in another language than English, but not in English itself. If so, put that page in a tracking category. | ||
-->{{#switch: {{language suffix}} | cs | de | es | fr | it | nl | pl | pt-br | ru | sv | uk | zh = {{#ifexist: {{#titleparts: {{FULLPAGENAME}} | -1 }} | | [[Category:No associated English page]] }} }}</includeonly><noinclude> | -->{{#switch: {{language suffix}} | cs | de | es | fr | it | ja | nl | pl | pt-br | ru | sv | uk | zh = {{#ifexist: {{#titleparts: {{FULLPAGENAME}} | -1 }} | | [[Category:No associated English page]] }} }}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} |
Revision as of 13:49, 19 October 2016
[View] [Edit] [Page history]
DocumentationThis template has a Sandbox for testing new features at Template:Languages/Sandbox.
This template will display a bar with links to international versions of the same page. List of all templates