Difference between revisions of "Template:Language-Info"

From MK8
Jump to navigation Jump to search
m (Protected "Template:Language-Info" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(Undo revision 5650 by Krummers (talk) Reverted until fixed)
Tag: Undo
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| class="textbox grid"
+
<includeonly>{{#if:{{{Alt|}}}|{{#ifeq:{{{1}}}|noinfo||For [[Mario Kart]] tracks featured in games released after [[Mario Kart 8]] and [[Mario Kart 8 Deluxe]], alternate names are used to avoid potential copyright issues for [[custom track distribution]]s.<br>}}''Original Name'' translations are based on '''{{PAGENAME}}'''.{{#if:{{{en|}}}|<sup id="footnote_inline_en">[[#footnote_note_en|[en]]]</sup>}} ''{{#ifeq:{{{1}}}|noinfo|Alternative|Alternative}} Name'' translations are based on '''{{{Alt}}}'''.}}{{#if:
|+ '''{{#if: {{{name}}} | {{{name}}} | Name in Other Languages }}'''
+
{{#switch:{{{cn-T|{{#ifeq:{{FULLPAGENAME}}|Template:Language-Info|eq}}}}}|-|=-}}
|-
+
{{#switch:{{{cn-S|}}}|-|=-}}
! Dutch:
+
{{#switch:{{{nl|}}}|-|=-}}
| {{{nl|class="bg-red1"{{!}}&mdash;}}}
+
{{#switch:{{{fr-P|}}}|-|=-}}
|-
+
{{#switch:{{{fr-N|}}}|-|=-}}
! French:
+
{{#switch:{{{de|}}}|-|=-}}
| {{{fr|class="bg-red1"{{!}}&mdash;}}}
+
{{#switch:{{{it|}}}|-|=-}}
|-
+
{{#switch:{{{jp|}}}|-|=-}}
! German:
+
{{#switch:{{{kr|}}}|-|=-}}
| {{{de|class="bg-red1"{{!}}&mdash;}}}
+
{{#switch:{{{pt-P|}}}|-|=-}}
|-
+
{{#switch:{{{pt-N|}}}|-|=-}}
! Italian:
+
{{#switch:{{{ru|}}}|-|=-}}
| {{{it|class="bg-red1"{{!}}&mdash;}}}
+
{{#switch:{{{es-P|}}}|-|=-}}
|-
+
{{#switch:{{{es-N|}}}|-|=-}}
! Japanese:
+
|[[Category:Language-Info/Empty field(s)]]}}{{#replace:
| {{{ja|class="bg-red1"{{!}}&mdash;}}}
+
{{#replace:
|-
+
{{#replace:
! Korean:
+
{{#replace:
| {{{ko|class="bg-red1"{{!}}&mdash;}}}
+
{{#replace:
|-
+
{{{!}}class="textbox grid"
! Spanish:
+
{{!}}-style=background-color:#B0B0F0;font-weight:bold;text-align:center
| {{{es|class="bg-red1"{{!}}&mdash;}}}
+
{{#if:{{{Alt|}}}|{{!}}Language
|-
+
{{!}}Original Name
! Greek:
+
{{!}}Alternative Name}}
| {{{el|class="bg-red1"{{!}}&mdash;}}}
+
{{!}}-
|-
+
!Chinese (Traditional):
! Portuguese:
+
{{!}}{{{cn-T|class=bg-red1{{!}}&mdash;}}}
| {{{pt|class="bg-red1"{{!}}&mdash;}}}
+
{{#if:{{{Alt|}}}|{{!}}{{{cn-T-alt|class=bg-red1{{!}}&mdash;}}}}}
|-
+
{{!}}-
! Polish:
+
!Chinese (Simplified):
| {{{pl|class="bg-red1"{{!}}&mdash;}}}
+
{{!}}{{{cn-S|class=bg-red1{{!}}&mdash;}}}
|-
+
{{#if:{{{Alt|}}}|{{!}}{{{cn-S-alt|class=bg-red1{{!}}&mdash;}}}}}
! Finnish:
+
{{!}}-
| {{{fi|class="bg-red1"{{!}}&mdash;}}}
+
!Dutch:
|-
+
{{!}}{{{nl|class=bg-red1{{!}}&mdash;}}}
! Swedish:
+
{{#if:{{{Alt|}}}|{{!}}{{{nl-alt|class=bg-red1{{!}}&mdash;}}}}}
| {{{sv|class="bg-red1"{{!}}&mdash;}}}
+
{{!}}-
|-
+
!French (PAL):
! Czech:
+
{{!}}{{{fr-P|class=bg-red1{{!}}&mdash;}}}
| {{{cs|class="bg-red1"{{!}}&mdash;}}}
+
{{#if:{{{Alt|}}}|{{!}}{{{fr-P-alt|class=bg-red1{{!}}&mdash;}}}}}
|-
+
{{!}}-
! Albanian:
+
!French (NTSC):
| {{{sq|class="bg-red1"{{!}}&mdash;}}}
+
{{!}}{{{fr-N|class=bg-red1{{!}}&mdash;}}}
|-
+
{{#if:{{{Alt|}}}|{{!}}{{{fr-N-alt|class=bg-red1{{!}}&mdash;}}}}}
! Danish:
+
{{!}}-
| {{{da|class="bg-red1"{{!}}&mdash;}}}
+
!German:
|}</includeonly><noinclude>
+
{{!}}{{{de|class=bg-red1{{!}}&mdash;}}}
==Usage Notes==
+
{{#if:{{{Alt|}}}|{{!}}{{{de-alt|class=bg-red1{{!}}&mdash;}}}}}
* If a language is different per region (example: Spanish (NTSC) and Spanish (PAL)), then use the existing variants of the language instead.
+
{{!}}-
 +
!Italian:
 +
{{!}}{{{it|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{Alt|}}}|{{!}}{{{it-alt|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Japanese:
 +
{{!}}{{{jp|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{Alt|}}}|{{!}}{{{jp-alt|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Korean:
 +
{{!}}{{{kr|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{Alt|}}}|{{!}}{{{kr-alt|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Portuguese (PAL):
 +
{{!}}{{{pt-P|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{Alt|}}}|{{!}}{{{pt-P-alt|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Portuguese (NTSC):
 +
{{!}}{{{pt-N|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{Alt|}}}|{{!}}{{{pt-N-alt|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Russian:
 +
{{!}}{{{ru|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{Alt|}}}|{{!}}{{{ru-alt|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Spanish (PAL):
 +
{{!}}{{{es-P|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{Alt|}}}|{{!}}{{{es-P-alt|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Spanish (NTSC):
 +
{{!}}{{{es-N|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{Alt|}}}|{{!}}{{{es-N-alt|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}}
 +
|td-yes|bg-green1}}
 +
|td-maybe|bg-yellow1}}
 +
|td-no|bg-red1}}
 +
|td-opt|bg-blue1}}
 +
|td-unknown|bg-gray1}}{{#if:{{{en|}}}|
 +
<sup id="footnote_note_en">[[#footnote_inline_en|[en]]]</sup> - Known as '''{{{en}}}''' in Europe and Australia<br>}}</includeonly><noinclude>
 +
If a language is different per region (example: Spanish (NTSC) and Spanish (PAL)), then use the existing variants of the language instead.
 +
 
 +
Use '''|en-name=Alternative Title''' if a track title differs from the page title. Use it if two or more language tables exist in the same page (for the same track).
 +
 
 +
== Usage ==
 
<div class="float-right">
 
<div class="float-right">
 
{{Language-Info
 
{{Language-Info
 
|name=Test Table
 
|name=Test Table
|nlx=Lorem Ipsum
+
|en-name=Alternative Title
|fr=Lorem Ipsum
+
|cn-Tx=Lorem Ipsum
 +
|cn-S=Lorem Ipsum
 +
|nl=Lorem Ipsum
 +
|fr-P=Lorem Ipsum
 +
|fr-N=Lorem Ipsum
 
|de=Lorem Ipsum
 
|de=Lorem Ipsum
 
|it=Lorem Ipsum
 
|it=Lorem Ipsum
|ja=Lorem Ipsum
+
|jp=Lorem Ipsum
|ko=Lorem Ipsum
+
|kr=Lorem Ipsum
|es=Lorem Ipsum (NTSC)<br>Lorem Ipsum (PAL)
+
|pt-P=Lorem Ipsum
|el=Lorem Ipsum
+
|pt-N=Lorem Ipsum
|pt=Lorem Ipsum
+
|ru=Lorem Ipsum
|pl=Lorem Ipsum
+
|es-P=Lorem Ipsum
|fi=Lorem Ipsum
+
|es-N=Lorem Ipsum
|sv=Lorem Ipsum
 
|cs=Lorem Ipsum
 
|sq=Lorem Ipsum
 
|da=Lorem Ipsum
 
 
}}</div>
 
}}</div>
  
Usage (here, the Dutch (nl=) row was forgotten):
+
Here, the Chinese (Traditional) (cn-T) row was forgotten.
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Language-Info
 
{{Language-Info
 
|name=Test Table
 
|name=Test Table
|fr=Lorem Ipsum
+
|en-name=Alternative Title
 +
|cn-S=Lorem Ipsum
 +
|nl=Lorem Ipsum
 +
|fr-P=Lorem Ipsum
 +
|fr-N=Lorem Ipsum
 
|de=Lorem Ipsum
 
|de=Lorem Ipsum
 
|it=Lorem Ipsum
 
|it=Lorem Ipsum
|ja=Lorem Ipsum
+
|jp=Lorem Ipsum
|ko=Lorem Ipsum
+
|kr=Lorem Ipsum
|es=Lorem Ipsum (NTSC)<br>Lorem Ipsum (PAL)
+
|pt-P=Lorem Ipsum
|el=Lorem Ipsum
+
|pt-N=Lorem Ipsum
|pt=Lorem Ipsum
+
|ru=Lorem Ipsum
|pl=Lorem Ipsum
+
|es-P=Lorem Ipsum
|fi=Lorem Ipsum
+
|es-N=Lorem Ipsum
|sv=Lorem Ipsum
 
|cs=Lorem Ipsum
 
|sq=Lorem Ipsum
 
|da=Lorem Ipsum
 
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
[[Category:Template/Include|{{PAGENAME}}]]</noinclude>
+
 
 +
== Usage (Alternative Name) ==
 +
<pre><nowiki>
 +
{{Language-Info|Alt=Test Name
 +
|name=Test Table
 +
|en-name=Alternative Title
 +
|en=Language Info
 +
|cn-T=Lorem Ipsum ||cn-T-alt=Lorem Ipsum
 +
|cn-S=Lorem Ipsum ||cn-S-alt=Lorem Ipsum
 +
|nl=Lorem Ipsum ||nl-alt=Lorem Ipsum
 +
|fr-P=Lorem Ipsum ||fr-P-alt=Lorem Ipsum
 +
|fr-N=Lorem Ipsum ||fr-N-alt=Lorem Ipsum
 +
|de=Lorem Ipsum ||de-alt=Lorem Ipsum
 +
|it=Lorem Ipsum ||it-alt=Lorem Ipsum
 +
|jp=Lorem Ipsum ||jp-alt=Lorem Ipsum
 +
|kr=Lorem Ipsum ||kr-alt=Lorem Ipsum
 +
|pt-P=Lorem Ipsum ||pt-P-alt=Lorem Ipsum
 +
|pt-N=Lorem Ipsum ||pt-N-alt=Lorem Ipsum
 +
|ru=Lorem Ipsum ||ru-alt=Lorem Ipsum
 +
|es-P=Lorem Ipsum ||es-P-alt=Lorem Ipsum
 +
|es-N=Lorem Ipsum ||es-N-alt=Lorem Ipsum
 +
}}
 +
</nowiki></pre>
 +
 
 +
{{Language-Info|Alt=Test Name
 +
|name=Test Table
 +
|en-name=Alternative Title
 +
|en=Language Info
 +
|cn-Tx=Lorem Ipsum ||cn-Tx-alt=Lorem Ipsum
 +
|cn-S=Lorem Ipsum ||cn-S-alt=Lorem Ipsum
 +
|nl=Lorem Ipsum ||nl-alt=Lorem Ipsum
 +
|fr-P=Lorem Ipsum ||fr-P-alt=Lorem Ipsum
 +
|fr-N=Lorem Ipsum ||fr-N-alt=Lorem Ipsum
 +
|de=Lorem Ipsum ||de-alt=Lorem Ipsum
 +
|it=Lorem Ipsum ||it-alt=Lorem Ipsum
 +
|jp=Lorem Ipsum ||jp-alt=Lorem Ipsum
 +
|kr=Lorem Ipsum ||kr-alt=Lorem Ipsum
 +
|pt-P=Lorem Ipsum ||pt-P-alt=Lorem Ipsum
 +
|pt-N=Lorem Ipsum ||pt-N-alt=Lorem Ipsum
 +
|ru=Lorem Ipsum ||ru-alt=Lorem Ipsum
 +
|es-P=Lorem Ipsum ||es-P-alt=Lorem Ipsum
 +
|es-N=Lorem Ipsum ||es-N-alt=Lorem Ipsum
 +
}}
 +
 
 +
[[Category:Template/Include]]</noinclude>

Latest revision as of 08:23, 14 May 2022

If a language is different per region (example: Spanish (NTSC) and Spanish (PAL)), then use the existing variants of the language instead.

Use |en-name=Alternative Title if a track title differs from the page title. Use it if two or more language tables exist in the same page (for the same track).

Usage

Chinese (Traditional):
Chinese (Simplified): Lorem Ipsum
Dutch: Lorem Ipsum
French (PAL): Lorem Ipsum
French (NTSC): Lorem Ipsum
German: Lorem Ipsum
Italian: Lorem Ipsum
Japanese: Lorem Ipsum
Korean: Lorem Ipsum
Portuguese (PAL): Lorem Ipsum
Portuguese (NTSC): Lorem Ipsum
Russian: Lorem Ipsum
Spanish (PAL): Lorem Ipsum
Spanish (NTSC): Lorem Ipsum

Here, the Chinese (Traditional) (cn-T) row was forgotten.

{{Language-Info
|name=Test Table
|en-name=Alternative Title
|cn-S=Lorem Ipsum
|nl=Lorem Ipsum
|fr-P=Lorem Ipsum
|fr-N=Lorem Ipsum
|de=Lorem Ipsum
|it=Lorem Ipsum
|jp=Lorem Ipsum
|kr=Lorem Ipsum
|pt-P=Lorem Ipsum
|pt-N=Lorem Ipsum
|ru=Lorem Ipsum
|es-P=Lorem Ipsum
|es-N=Lorem Ipsum
}}

Usage (Alternative Name)

{{Language-Info|Alt=Test Name
|name=Test Table
|en-name=Alternative Title
|en=Language Info
|cn-T=Lorem Ipsum ||cn-T-alt=Lorem Ipsum
|cn-S=Lorem Ipsum ||cn-S-alt=Lorem Ipsum
|nl=Lorem Ipsum ||nl-alt=Lorem Ipsum
|fr-P=Lorem Ipsum ||fr-P-alt=Lorem Ipsum
|fr-N=Lorem Ipsum ||fr-N-alt=Lorem Ipsum
|de=Lorem Ipsum ||de-alt=Lorem Ipsum
|it=Lorem Ipsum ||it-alt=Lorem Ipsum
|jp=Lorem Ipsum ||jp-alt=Lorem Ipsum
|kr=Lorem Ipsum ||kr-alt=Lorem Ipsum
|pt-P=Lorem Ipsum ||pt-P-alt=Lorem Ipsum
|pt-N=Lorem Ipsum ||pt-N-alt=Lorem Ipsum
|ru=Lorem Ipsum ||ru-alt=Lorem Ipsum
|es-P=Lorem Ipsum ||es-P-alt=Lorem Ipsum
|es-N=Lorem Ipsum ||es-N-alt=Lorem Ipsum
}}

For Mario Kart tracks featured in games released after Mario Kart 8 and Mario Kart 8 Deluxe, alternate names are used to avoid potential copyright issues for custom track distributions.
Original Name translations are based on Language-Info.[en] Alternative Name translations are based on Test Name.

Language Original Name Alternative Name
Chinese (Traditional):
Chinese (Simplified): Lorem Ipsum Lorem Ipsum
Dutch: Lorem Ipsum Lorem Ipsum
French (PAL): Lorem Ipsum Lorem Ipsum
French (NTSC): Lorem Ipsum Lorem Ipsum
German: Lorem Ipsum Lorem Ipsum
Italian: Lorem Ipsum Lorem Ipsum
Japanese: Lorem Ipsum Lorem Ipsum
Korean: Lorem Ipsum Lorem Ipsum
Portuguese (PAL): Lorem Ipsum Lorem Ipsum
Portuguese (NTSC): Lorem Ipsum Lorem Ipsum
Russian: Lorem Ipsum Lorem Ipsum
Spanish (PAL): Lorem Ipsum Lorem Ipsum
Spanish (NTSC): Lorem Ipsum Lorem Ipsum

[en] - Known as Language Info in Europe and Australia