Difference between revisions of "Template:Language table"

From RRU Knowledge Base
Line 39: Line 39:
{{!}} {{{fr}}}|
{{!}} {{{fr}}}|
{{!}}-
{{!}}-
}}
}}<!--
{{#if: {{{fr_ca|}}}|
{{#if: {{{fr_ca|}}}|
{{#if: {{{fr_eu|}}}|
{{#if: {{{fr_eu|}}}|
Line 57: Line 57:
{{!}} {{{fr_eu}}}|
{{!}} {{{fr_eu}}}|
{{!}}-
{{!}}-
}}}}
}}}}-->
{{#if: {{{de|}}}|
{{#if: {{{de|}}}|
{{!}}-
{{!}}-
Line 111: Line 111:
{{!}} {{{pt}}}|
{{!}} {{{pt}}}|
{{!}}-
{{!}}-
}}
}}<!--
{{#if: {{{pt_br|}}}|
{{#if: {{{pt_br|}}}|
{{#if: {{{pt_eu|}}}|
{{#if: {{{pt_eu|}}}|
Line 129: Line 129:
{{!}} {{{pt_eu}}}|
{{!}} {{{pt_eu}}}|
{{!}}-
{{!}}-
}}}}
}}}}-->
{{#if: {{{ru|}}}|
{{#if: {{{ru|}}}|
{{!}}-
{{!}}-
Line 141: Line 141:
{{!}} {{{es}}}|
{{!}} {{{es}}}|
{{!}}-
{{!}}-
}}
}}<!--
{{#if: {{{es_la|}}}|
{{#if: {{{es_la|}}}|
{{#if: {{{es_eu|}}}|
{{#if: {{{es_eu|}}}|
Line 159: Line 159:
{{!}} {{{es_eu}}}|
{{!}} {{{es_eu}}}|
{{!}}-
{{!}}-
}}}}
}}}}-->
{{#if: {{{sv|}}}|
{{#if: {{{sv|}}}|
{{!}}-
{{!}}-
Line 172: Line 172:
}}
}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
This template lists all '''official translations''' of the names of products, works, objects, locations, or characters across different regions and in different languages.
==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 the following near the end of a page:<pre><nowiki>==In other languages==
To use this template, add the shortcut tag {{tlf|Langtable}} to an article, under its own section. Here is an example of how it should look:
<pre><nowiki>==Names in other languages==
{{Langtable
{{Langtable
|xx=name
|xx=name
|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.
|xx=name}}</nowiki></pre> Where <code>xx</code> is an ISO code, and <code>name</code> is the subject's name in that language.  


The following table is a list of usable codes to designate regions and languages:
For subjects with a single dedicate article, this template should be placed near the end of the page, prior to any existing notes, references, and/or external links sections, but after all other sections. 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, it should come at the very end of the section, with its own section being one level lower than the subject's main section.
 
==List of language codes==
This template uses standard [[Wikipedia:ISO 3166-1|ISO]] codes. The following table contains a list of the currently-usable codes:
{{Langtable
{{Langtable
|cs=cs
|cs=cs
Line 212: Line 218:
|sv=sv
|sv=sv
|footnote=footnote}}
|footnote=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.
Further division of languages with significantly different translations for different regions speaking the same language (eg. the different names between American and British releases of some products, as well as any possible differences between European and American versions of other languages) may be desired.  


{{todo|should maybe make <code>en</code> 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}}
[[Category:Box templates]][[Category:Language templates]]
 
[[Category:Box templates]][[Category:Language templates]]<!--[[Category:Region templates]]--><!--
|-
| colspan=3 | {{#if: {{{footnote|}}} | <small>{{{footnote}}}</small> | }}-->
<!--THIS SECTION WAS AN ATTEMPT AT CREATING ENGLISH REGIONAL VARIANTS, BUT IT DIDN'T WORK AND IT REALLY ISN'T NECESSARY, ESPECIALLY SINCE LEGO CAN'T EVEN KEEP NAMES CONSISTENT IN THE SAME REGION
{{#if: {{{en_va|yes}}}|
{{!}}-
{{#if: {{{en_au|}}}|
{{!}}-
{{!}} rowspan {{!}} English
{{!}} [[File:Australia Flag.png|20px|link=]] Australia
{{!}} {{{en_au}}}|
{{!}}-
}}
{{#if: {{{en_ca|}}}|
{{!}}-
{{!}} rowspan {{!}} English
{{!}} [[File:Canada Flag.png|20px|link=]] Canada
{{!}} {{{en_ca}}}|
{{!}}-
}}
{{#if: {{{en_nz|}}}|
{{!}}-
{{!}} rowspan {{!}} English
{{!}} [[File:New Zealand Flag.png|20px|link=]] New Zealand
{{!}} {{{en_nz}}}|
{{!}}-
}}
{{#if: {{{en_na|}}}|
{{!}}-
{{!}} rowspan {{!}} English
{{!}} [[File:Flags of Canada and the United States.png|20px|link=]] North America
{{!}} {{{en_na}}}|
{{!}}-
}}
{{#if: {{{en_uk|}}}|
{{!}}-
{{!}} rowspan {{!}} English
{{!}} [[File:United Kingdom Flag.png|20px|link=]] United Kingdom
{{!}} {{{en_uk}}}|
{{!}}-
}}
{{#if: {{{en_us|}}}|
{{!}}-
{{!}} rowspan {{!}} English
{{!}} [[File:United States Flag.png|20px|link=]] United States
{{!}} {{{en_us}}}|
{{!}}-
}}}}-->
</noinclude>
</noinclude>

Revision as of 22:33, 21 January 2018

This template lists all official translations of the names of products, works, objects, locations, or characters across different regions and in different languages.

Usage instructions

To use this template, add the shortcut tag {{Langtable}} to an article, under its own section. Here is an example of how it should look:

==Names 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.

For subjects with a single dedicate article, this template should be placed near the end of the page, prior to any existing notes, references, and/or external links sections, but after all other sections. 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, it should come at the very end of the section, with its own section being one level lower than the subject's main section.

List of language codes

This template uses standard ISO codes. The following table contains a list of the currently-usable codes:

Language Name
20px Czech cs
20px Danish da
20px Dutch nl
20px English en
20px Finnish fi
20px French fr
20px German de
20px Hebrew he
20px Icelandic is
20px Italian it
20px Japanese ja
20px Korean ko
20px Norwegian no
20px Polish pl
20px Portuguese pt
20px Russian ru
20px Spanish es
20px Swedish sv
footnote

Further division of languages with significantly different translations for different regions speaking the same language (eg. the different names between American and British releases of some products, as well as any possible differences between European and American versions of other languages) may be desired.