Difference between revisions of "Template:Language table"

From RRU Knowledge Base
Line 26: Line 26:
{{!}} colspan=2 {{!}} [[File:England Flag.png|20px|link=]] English
{{!}} colspan=2 {{!}} [[File:England Flag.png|20px|link=]] English
{{!}} {{{en}}}|
{{!}} {{{en}}}|
{{!}}-
}}<!--
-->
{{#if: {{{en_va|yes}}}|
{{!}}-
{{!}} rowspan=7 {{!}} English
{{#if: {{{en_au|}}}|
{{!}}-
{{!}} [[File:Australia Flag.png|20px|link=]] Australia
{{!}} {{{en_au}}}|
{{!}}-
}}
{{#if: {{{en_ca|}}}|
{{!}}-
{{!}} [[File:Canada Flag.png|20px|link=]] Canada
{{!}} {{{en_ca}}}|
{{!}}-
}}
{{#if: {{{en_nz|}}}|
{{!}}-
{{!}} [[File:New Zealand Flag.png|20px|link=]] New Zealand
{{!}} {{{en_nz}}}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{en_na|}}}|
{{!}}-
{{!}} [[File:Flags of Canada and the United States.png|20px|link=]] North America
{{!}} {{{en_na}}}|
{{!}}-
}}
{{#if: {{{en_uk|}}}|
{{!}}-
{{!}} [[File:United Kingdom Flag.png|20px|link=]] United Kingdom
{{!}} {{{en_uk}}}|
{{!}}-
}}
{{#if: {{{en_us|}}}|
{{!}}-
{{!}} [[File:United States Flag.png|20px|link=]] United States
{{!}} {{{en_us}}}|
{{!}}-
}}}}<!--
-->
{{#if: {{{fi|}}}|
{{#if: {{{fi|}}}|
{{!}}-
{{!}}-
Line 107: Line 148:
|}</includeonly><noinclude>
|}</includeonly><noinclude>
==Usage instructions==
==Usage instructions==
This template lists the different names of a product, work, object, location, or character across different regions and languages. Use this template by placing <code><nowiki>{{Langtable|xx=name}}</nowiki></code> under an "In other languages" section, with <code>xx</code> being an ISO code and <code>name</code> being the name in that language. The following is a list of usable codes to designate regions and languages:
This template lists the different names of a product, work, object, location, or character across different regions and languages. Use this template by placing <code><nowiki>{{Langtable|xx=name}}</nowiki></code> under an "In other languages" section, with <code>xx</code> being an ISO code and <code>name</code> being the name in that language.
 
The following table is a list of usable codes to designate regions and languages. To enable English-speaking regions, add <code>en_va=yes</code>.
{{Langtable
{{Langtable
|cs=cs
|cs=cs
Line 113: Line 156:
|nl=nl
|nl=nl
|en=en
|en=en
|en_va=yes
|en_au=en_au
|en_ca=en_ca
|en_nz=en_nz
|en_na=en_na
|en_uk=en_uk
|en_us=en_us
|fn=fn
|fn=fn
|fr=fr
|fr=fr
Line 133: Line 183:
[[Category:Box templates]]<!--[[Category:Language templates]][[Category:Region templates]]--><!--
[[Category:Box templates]]<!--[[Category:Language templates]][[Category:Region templates]]--><!--
|-
|-
| colspan=3 | {{#if: {{{footnote|}}} | <small>{{{footnote}}}</small> | }}-->
| colspan=3 | {{#if: {{{footnote|}}} | <small>{{{footnote}}}</small> | }}
{{#if: {{{en_uk|}}}|
{{#if: {{{en_us|}}}|
{{!}}-
{{!}} rowspan=2 {{!}} English
{{!}} [[File:Australia Flag.png|20px]] Australia
{{!}} {{{en_au}}}|
{{!}}-
{{!}} [[File:Canada Flag.png|20px]] Canada
{{!}} {{{en_ca}}}|
{{!}}-
{{!}} [[File:New Zealand Flag.png|20px]] New Zealand
{{!}} {{{en_nz}}}|
{{!}}-
{{!}} [[File:Flag of Canada and the United States.png|20px]] North America
{{!}} {{{en_na}}}|
{{!}}-
{{!}} [[File:United Kingdom Flag.png|20px]] United Kingdom
{{!}} {{{en_uk}}}
{{!}}-
{{!}} [[File:United States Flag.png|20px]] United States
{{!}} {{{en_us}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:United Kingdom Flag.png|20px]] English (UK)
{{!}} {{{en_uk}}}}}|
{{#if: {{{en_us|}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:United States Flag.png|20px]] English (US)
{{!}} {{{en_us}}}|
{{!}}-
}}}}-->
</noinclude>
</noinclude>

Revision as of 00:18, 9 October 2017

Usage instructions

This template lists the different names of a product, work, object, location, or character across different regions and languages. Use this template by placing {{Langtable|xx=name}} under an "In other languages" section, with xx being an ISO code and name being the name in that language.

The following table is a list of usable codes to designate regions and languages. To enable English-speaking regions, add en_va=yes.

Language Name
20px Czech cs
20px Danish da
20px Dutch nl
20px English en
English
20px Australia en_au
20px Canada en_ca
20px New Zealand en_nz
20px North America en_na
20px United Kingdom en_uk
20px United States en_us
20px French fr
20px German de
20px Hebrew he
20px Italian it
20px Japanese ja
20px Norwegian no
20px Polish pl
20px Portuguese pt
20px Russian ru
20px Spanish es
20px Swedish sv
footnote

Currently only languages and regions confirmed to be relevant have been added, will add more when needed.

To do: should probably make en versions for other countries since some stuff gets changed between uk, us, and nz at least, if not canada and australia too