Difference between revisions of "Template:Language table"

From RRU Knowledge Base
Line 44: Line 44:
{{!}}-
{{!}}-
{{!}} rowspan=2 {{!}} French
{{!}} rowspan=2 {{!}} French
{{!}} [[File:Canada Flag.png|20px]] Canada
{{!}} [[File:Canada Flag.png|20px|link=]] Canada
{{!}} {{{fr_ca}}}
{{!}} {{{fr_ca}}}
{{!}}-
{{!}}-
{{!}} [[File:France Flag.png|20px]] Europe
{{!}} [[File:France Flag.png|20px|link=]] Europe
{{!}} {{{fr_eu}}}|
{{!}} {{{fr_eu}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Canada Flag.png|20px]] Canadian French
{{!}} colspan=2 {{!}} [[File:Canada Flag.png|20px|link=]] Canadian French
{{!}} {{{fr_ca}}}}}|
{{!}} {{{fr_ca}}}}}|
{{#if: {{{fr_eu|}}}|
{{#if: {{{fr_eu|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:France Flag.png|20px]] {European French
{{!}} colspan=2 {{!}} [[File:France Flag.png|20px|link=]] {European French
{{!}} {{{fr_eu}}}|
{{!}} {{{fr_eu}}}|
{{!}}-
{{!}}-
Line 72: Line 72:
{{#if: {{{is|}}}|
{{#if: {{{is|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Iceland Flag.png|20px]] Icelandic
{{!}} colspan=2 {{!}} [[File:Iceland Flag.png|20px|link=]] Icelandic
{{!}} {{{is}}}|
{{!}} {{{is}}}|
{{!}}-
{{!}}-
Line 110: Line 110:
{{!}}-
{{!}}-
{{!}} rowspan=2 {{!}} Portuguese
{{!}} rowspan=2 {{!}} Portuguese
{{!}} [[File:Brazil Flag.png|20px]] Brazil
{{!}} [[File:Brazil Flag.png|20px|link=]] Brazil
{{!}} {{{pt_br}}}
{{!}} {{{pt_br}}}
{{!}}-
{{!}}-
{{!}} [[File:Portugal Flag.png|20px]] Portugal
{{!}} [[File:Portugal Flag.png|20px|link=]] Portugal
{{!}} {{{pt_eu}}}|
{{!}} {{{pt_eu}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Brazil Flag.png|20px]] Brazilian Portuguese
{{!}} colspan=2 {{!}} [[File:Brazil Flag.png|20px|link=]] Brazilian Portuguese
{{!}} {{{pt_br}}}}}|
{{!}} {{{pt_br}}}}}|
{{#if: {{{pt_eu|}}}|
{{#if: {{{pt_eu|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Portugal Flag.png|20px]] European Portuguese
{{!}} colspan=2 {{!}} [[File:Portugal Flag.png|20px|link=]] European Portuguese
{{!}} {{{pt_eu}}}|
{{!}} {{{pt_eu}}}|
{{!}}-
{{!}}-
Line 140: Line 140:
{{!}}-
{{!}}-
{{!}} rowspan=2 {{!}} Spanish
{{!}} rowspan=2 {{!}} Spanish
{{!}} [[File:CELAC Flag.png|20px]] Latin America
{{!}} [[File:CELAC Flag.png|20px|link=]] Latin America
{{!}} {{{es_la}}}
{{!}} {{{es_la}}}
{{!}}-
{{!}}-
{{!}} [[File:Spain Flag.png|20px]] Spain
{{!}} [[File:Spain Flag.png|20px|link=]] Spain
{{!}} {{{es_eu}}}|
{{!}} {{{es_eu}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:CELAC Flag.png|20px]] Latin American Spanish
{{!}} colspan=2 {{!}} [[File:CELAC Flag.png|20px|link=]] Latin American Spanish
{{!}} {{{es_la}}}}}|
{{!}} {{{es_la}}}}}|
{{#if: {{{es_eu|}}}|
{{#if: {{{es_eu|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Spain Flag.png|20px]] European Spanish
{{!}} colspan=2 {{!}} [[File:Spain Flag.png|20px|link=]] European Spanish
{{!}} {{{es_eu}}}|
{{!}} {{{es_eu}}}|
{{!}}-
{{!}}-
Line 167: Line 167:
|}</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.
This template lists the different names of a product, work, object, location, or character across different regions and languages. Use this template by placing the following near the end of a page:<pre><nowiki>==In other languages==
{{Langtable
|xx=name
|xx=name
|xx=name}}</nowiki></pre> Where <code>xx</code> is an ISO code, and <code>name</code> is the subject's name in that language. If the language table is for a certain section in an article, such as on a page listing subjects too minor to have their own articles, make sure the ''In other languages'' section is adjusted to be one level lower than the section it's in.


The following table is a list of usable codes to designate regions and languages:
The following table is a list of usable codes to designate regions and languages:

Revision as of 15:43, 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 the following near the end of a page:

==In other languages==
{{Langtable
|xx=name
|xx=name
|xx=name}}

Where xx is an ISO code, and name is the subject's name in that language. If the language table is for a certain section in an article, such as on a page listing subjects too minor to have their own articles, make sure the In other languages section is adjusted to be one level lower than the section it's in.

The following table is a list of usable codes to designate regions and languages:

Language Name
20px Czech cs
20px Danish da
20px Dutch nl
20px English en
20px Finnish fi
20px French fr
French 20px Canada fr_ca
20px Europe fr_eu
20px German de
20px Hebrew he
20px Icelandic is
20px Italian it
20px Japanese ja
20px Norwegian no
20px Polish pl
20px Portuguese pt
Portuguese 20px Brazil pt_br
20px Portugal pt_eu
20px Russian ru
20px Spanish es
Spanish 20px Latin America es_la
20px Spain es_eu
20px Swedish sv
footnote

Not sure how many of the currently-added languages are even relevant, or if this is the proper way to divide up languages like Spanish and Portuguese (it was just copied over), or if there are any that are relevant that are missing, will adjust as info is found.

To do: should maybe make en versions for other countries since some stuff gets changed between uk, us, and nz at least, if not canada and australia too? maybe just make a note in the article since LEGO can't even keep names consistent in the same region