Template:Languages/doc: Difference between revisions
(Added documentation for the template.) |
No edit summary |
||
(10 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
Usually used to fill out the <code>|languages=</code> in various infoboxes, most commonly | Usually used to fill out the <code>|languages=</code> in various infoboxes, most commonly {{tem|game infobox}}. | ||
{|class="wikitable sortable" | {| class="wikitable sortable" | ||
! Value !! Result | |||
! Value !! Result | |||
|- | |- | ||
|<code><nowiki>|en=y</nowiki></code> | |<code><nowiki>|en=y</nowiki></code> | ||
|English | |||
|- | |- | ||
|<code><nowiki>|en_us=y</nowiki></code> | |<code><nowiki>|en_us=y</nowiki></code> | ||
|English (United States) | |||
|- | |- | ||
|<code><nowiki>|en_gb=y</nowiki></code> | |<code><nowiki>|en_gb=y</nowiki></code> | ||
|English (United Kingdom) | |||
|- | |- | ||
|<code><nowiki>|jp=y</nowiki></code> | |<code><nowiki>|jp=y</nowiki></code> | ||
|Japanese | |Japanese | ||
|- | |- | ||
|<code><nowiki>| | |<code><nowiki>|zh_simp=y</nowiki></code> | ||
| | |Chinese (Simplified) | ||
|- | |- | ||
|<code><nowiki>| | |<code><nowiki>|zh_trad=y</nowiki></code> | ||
| | |Chinese (Traditional) | ||
|- | |- | ||
|<code><nowiki>| | |<code><nowiki>|nl=y</nowiki></code> | ||
| | |Dutch | ||
|- | |- | ||
|<code><nowiki>|fr=y</nowiki></code> | |<code><nowiki>|fr=y</nowiki></code> | ||
|French | |French | ||
|- | |- | ||
|<code><nowiki>|fr_fr=y</nowiki></code> | |<code><nowiki>|fr_fr=y</nowiki></code> | ||
|French (France) | |French (France) | ||
|- | |- | ||
|<code><nowiki>|fr_ca=y</nowiki></code> | |<code><nowiki>|fr_ca=y</nowiki></code> | ||
|French (Canada) | |French (Canada) | ||
|- | |||
|<code><nowiki>|de=y</nowiki></code> | |||
|German | |||
|- | |- | ||
|<code><nowiki>|it=y</nowiki></code> | |<code><nowiki>|it=y</nowiki></code> | ||
|Italian | |Italian | ||
|- | |- | ||
|<code><nowiki>| | |<code><nowiki>|kr=y</nowiki></code> | ||
| | |Korean | ||
|- | |- | ||
|<code><nowiki>|pt=y</nowiki></code> | |<code><nowiki>|pt=y</nowiki></code> | ||
|Portuguese | |Portuguese | ||
|- | |- | ||
|<code><nowiki>|pt_br=y</nowiki></code> | |<code><nowiki>|pt_br=y</nowiki></code> | ||
|Portuguese (Brazil) | |Portuguese (Brazil) | ||
|- | |- | ||
|<code><nowiki>|pt_pt=y</nowiki></code> | |<code><nowiki>|pt_pt=y</nowiki></code> | ||
|Portuguese (Portugal) | |Portuguese (Portugal) | ||
|- | |- | ||
|<code><nowiki>|ru=y</nowiki></code> | |<code><nowiki>|ru=y</nowiki></code> | ||
|Russian | |Russian | ||
|- | |- | ||
|<code><nowiki>| | |<code><nowiki>|es=y</nowiki></code> | ||
| | |Spanish | ||
|- | |- | ||
|<code><nowiki>| | |<code><nowiki>|es_es=y</nowiki></code> | ||
| | |Spanish (Spain) | ||
|- | |- | ||
|<code><nowiki>| | |<code><nowiki>|es_latam=y</nowiki></code> | ||
| | |Spanish (Latin America) | ||
|} | |} | ||
A correct use of the template would be e.g. <code><nowiki>{{ | A correct use of the template would be e.g. <code><nowiki>{{languages|en_us=y|en_gb=y|jp=y|nl=y}}</nowiki></code>. No other values than <code>y</code> are accepted for each language. If a language is not available for a game, the language should be removed from the row entirely. | ||
If specific countries are listed for a language, it's usually the primary market of the region (The Americas, Europe, Australia) that commissioned the translation. So while smaller markets in the region use the same language, for instance, but not limited to, Canada for Americas+English, Republic of Ireland for Europe+English, and Haiti for Americas+French, only the primary markets are listed. | If specific countries are listed for a language, it's usually the primary market of the region (The Americas, Europe, Australia) that commissioned the translation. So while smaller markets in the region use the same language, for instance, but not limited to, Canada for Americas+English, Republic of Ireland for Europe+English, and Haiti for Americas+French, only the primary markets are listed. | ||
Line 89: | Line 71: | ||
If it would make no sense to distinguish between The Americas and Europe text lines, or if they have the same value, <code>en</code>/<code>es</code>/<code>fr</code>/<code>pt</code> can be used instead of country designators. | If it would make no sense to distinguish between The Americas and Europe text lines, or if they have the same value, <code>en</code>/<code>es</code>/<code>fr</code>/<code>pt</code> can be used instead of country designators. | ||
Full set of template options, with all of them set to <code>y</code> for "Yes" by default:<br><code><nowiki>{{ | Full set of template options, with all of them set to <code>y</code> for "Yes" by default:<br><code><nowiki>{{languages|en=y|en_gb=y|en_us=y|jp=y|de=y|es=y|es_es=y|es_latam=y|fr=y|fr_fr=y|fr_ca=y|it=y|kr=y|nl=y|pt=y|pt_br=y|pt_pt=y|ru=y|zh_simp=y|zh_trad=y}}</nowiki></code> | ||
Using the entire full set without removing any languages, results in the below list: | |||
{{languages|en=y|en_gb=y|en_us=y|jp=y|de=y|es=y|es_es=y|es_latam=y|fr=y|fr_fr=y|fr_ca=y|it=y|kr=y|nl=y|pt=y|pt_br=y|pt_pt=y|ru=y|zh_simp=y|zh_trad=y}} | |||
The template is not to be mistaken for {{tem|foreign names}} or {{tem|names in other languages}}. | |||
{{ | |||
<includeonly>[[Category:Infobox subtemplates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |
Revision as of 16:45, April 29, 2025
Usually used to fill out the |languages=
in various infoboxes, most commonly {{game infobox}}.
Value | Result |
---|---|
|en=y
|
English |
|en_us=y
|
English (United States) |
|en_gb=y
|
English (United Kingdom) |
|jp=y
|
Japanese |
|zh_simp=y
|
Chinese (Simplified) |
|zh_trad=y
|
Chinese (Traditional) |
|nl=y
|
Dutch |
|fr=y
|
French |
|fr_fr=y
|
French (France) |
|fr_ca=y
|
French (Canada) |
|de=y
|
German |
|it=y
|
Italian |
|kr=y
|
Korean |
|pt=y
|
Portuguese |
|pt_br=y
|
Portuguese (Brazil) |
|pt_pt=y
|
Portuguese (Portugal) |
|ru=y
|
Russian |
|es=y
|
Spanish |
|es_es=y
|
Spanish (Spain) |
|es_latam=y
|
Spanish (Latin America) |
A correct use of the template would be e.g. {{languages|en_us=y|en_gb=y|jp=y|nl=y}}
. No other values than y
are accepted for each language. If a language is not available for a game, the language should be removed from the row entirely.
If specific countries are listed for a language, it's usually the primary market of the region (The Americas, Europe, Australia) that commissioned the translation. So while smaller markets in the region use the same language, for instance, but not limited to, Canada for Americas+English, Republic of Ireland for Europe+English, and Haiti for Americas+French, only the primary markets are listed.
If it would make no sense to distinguish between The Americas and Europe text lines, or if they have the same value, en
/es
/fr
/pt
can be used instead of country designators.
Full set of template options, with all of them set to y
for "Yes" by default:{{languages|en=y|en_gb=y|en_us=y|jp=y|de=y|es=y|es_es=y|es_latam=y|fr=y|fr_fr=y|fr_ca=y|it=y|kr=y|nl=y|pt=y|pt_br=y|pt_pt=y|ru=y|zh_simp=y|zh_trad=y}}
Using the entire full set without removing any languages, results in the below list:
English
English (United States)
English (United Kingdom)
Japanese
Chinese (Simplified)
Chinese (Traditional)
Dutch
French
French (Canada)
French (France)
German
Italian
Korean
Portuguese
Portuguese (Brazil)
Portuguese (Portugal)
Russian
Spanish
Spanish (Latin America)
Spanish (Spain)
The template is not to be mistaken for {{foreign names}} or {{names in other languages}}.