Template:Languages/doc: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
m (Text replacement - "{{Languages" to "{{languages")
Line 83: Line 83:
|}
|}


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.
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 89:
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>{{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:<br><br>
{{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:Names in other languages]].
The template is not to be mistaken for [[Template:Names in other languages]].


<includeonly>[[Category:Formatting templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
<includeonly>[[Category:Formatting templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 16:13, May 3, 2024

Usually used to fill out the |languages= in various infoboxes, most commonly Template:Game infobox.

Value Result Hover note
|en=y English
|en_us=y English (United States)
|en_gb=y English (United Kingdom)
|jp=y 日本語 Japanese
|de=y Deutsche German
|es=y Español Spanish
|es_es=y Español (España) Spanish (Spain)
|es_latam=y Español (Latinoamérica) Spanish (Latin America)
|fr=y Français French
|fr_fr=y Français (France) French (France)
|fr_ca=y Français (Canada) French (Canada)
|it=y Italiano Italian
|nl=y Nederlands Dutch
|pt=y Português Portuguese
|pt_br=y Português (Brasil) Portuguese (Brazil)
|pt_pt=y Português (Portugal) Portuguese (Portugal)
|ru=y Русский Russian
|kr=y 한국어 Korean
|zh_simp=y 简体中文 Simplified Chinese
|zh_trad=y 繁體中文 Traditional Chinese

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:

Deutsch
English
English (United Kingdom)
English (United States)
Español
Español (España)
Español (Latinoamérica)
Français
Français (Canada)
Français (France)
Italiano
Nederlands
Português
Português (Brasil)
Português (Portugal)
Русский
한국어
日本語
简体中文
繁體中文

The template is not to be mistaken for Template:Names in other languages.