Template:Languages/doc: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Usually used to fill out the <code>|languages=</code> in various infoboxes, most commonly [[Template:Game infobox]].
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 !! Hover note
|-
|-
|<code><nowiki>|en=y</nowiki></code>
|<code><nowiki>|en=y</nowiki></code>
|colspan=2|English
|English
|-
|-
|<code><nowiki>|en_us=y</nowiki></code>
|<code><nowiki>|en_us=y</nowiki></code>
|colspan=2|English (United States)
|English (United States)
|-
|-
|<code><nowiki>|en_gb=y</nowiki></code>
|<code><nowiki>|en_gb=y</nowiki></code>
|colspan=2|English (United Kingdom)
|English (United Kingdom)
|-
|-
|<code><nowiki>|jp=y</nowiki></code>
|<code><nowiki>|jp=y</nowiki></code>
|日本語
|Japanese
|Japanese
|-
|-
|<code><nowiki>|de=y</nowiki></code>
|<code><nowiki>|zh_simp=y</nowiki></code>
|Deutsch
|Simplified Chinese
|German
|-
|-
|<code><nowiki>|es=y</nowiki></code>
|<code><nowiki>|zh_trad=y</nowiki></code>
|Español
|Traditional Chinese
|Spanish
|-
|-
|<code><nowiki>|es_es=y</nowiki></code>
|<code><nowiki>|nl=y</nowiki></code>
|Español (España)
|Dutch
|Spanish (Spain)
|-
|<code><nowiki>|es_latam=y</nowiki></code>
|Español (Latinoamérica)
|Spanish (Latin America)
|-
|-
|<code><nowiki>|fr=y</nowiki></code>
|<code><nowiki>|fr=y</nowiki></code>
|Français
|French
|French
|-
|-
|<code><nowiki>|fr_fr=y</nowiki></code>
|<code><nowiki>|fr_fr=y</nowiki></code>
|Français (France)
|French (France)
|French (France)
|-
|-
|<code><nowiki>|fr_ca=y</nowiki></code>
|<code><nowiki>|fr_ca=y</nowiki></code>
|Français (Canada)
|French (Canada)
|French (Canada)
|-
|<code><nowiki>|de=y</nowiki></code>
|German
|-
|-
|<code><nowiki>|it=y</nowiki></code>
|<code><nowiki>|it=y</nowiki></code>
|Italiano
|Italian
|Italian
|-
|-
|<code><nowiki>|nl=y</nowiki></code>
|<code><nowiki>|kr=y</nowiki></code>
|Nederlands
|Korean
|Dutch
|-
|-
|<code><nowiki>|pt=y</nowiki></code>
|<code><nowiki>|pt=y</nowiki></code>
|Português
|Portuguese
|Portuguese
|-
|-
|<code><nowiki>|pt_br=y</nowiki></code>
|<code><nowiki>|pt_br=y</nowiki></code>
|Português (Brasil)
|Portuguese (Brazil)
|Portuguese (Brazil)
|-
|-
|<code><nowiki>|pt_pt=y</nowiki></code>
|<code><nowiki>|pt_pt=y</nowiki></code>
|Português (Portugal)
|Portuguese (Portugal)
|Portuguese (Portugal)
|-
|-
|<code><nowiki>|ru=y</nowiki></code>
|<code><nowiki>|ru=y</nowiki></code>
|Русский
|Russian
|Russian
|-
|-
|<code><nowiki>|kr=y</nowiki></code>
|<code><nowiki>|es=y</nowiki></code>
|한국어
|Spanish
|Korean
|-
|-
|<code><nowiki>|zh_simp=y</nowiki></code>
|<code><nowiki>|es_es=y</nowiki></code>
|简体中文
|Spanish (Spain)
|Simplified Chinese
|-
|-
|<code><nowiki>|zh_trad=y</nowiki></code>
|<code><nowiki>|es_latam=y</nowiki></code>
|繁體中文
|Spanish (Latin America)
|Traditional Chinese
|}
|}


Line 91: Line 73:
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>
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:<br><br>
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}}
{{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 [[Template:Foreign names]] or [[Template:Names in other languages]].
The template is not to be mistaken for {{tem|foreign names}} or {{tem|names in other languages}}.


<includeonly>[[Category:Structural templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
<includeonly>[[Category:Infobox subtemplates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 15:40, June 14, 2024

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 Simplified Chinese
|zh_trad=y Traditional Chinese
|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 Kingdom)
English (United States)
French
French (France)
French (Canada)
German
Spanish
Spanish (Spain)
Spanish (Latin America)
Italian
Dutch
Portuguese
Portuguese (Portugal)
Portuguese (Brazil)
Russian
Japanese
Simplified Chinese
Traditional Chinese
Korean

The template is not to be mistaken for {{foreign names}} or {{names in other languages}}.