Difference between revisions of "Template:Language-Info"

From Custom Mario Kart
Jump to navigation Jump to search
(one more test ...)
 
(61 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<includeonly>{| class="textbox float-left grid"
+
<includeonly>{{#if:{{{CTGP|}}}|{{#ifeq:{{{1}}}|noinfo||For tracks from [[Mario Kart 7]], alternate names are used to avoid potential copyright issues for [[CTGP Revolution]].<br>}}Original translations are based on '''{{PAGENAME}}'''.{{#if:{{{en|}}}|<sup id="footnote_inline_en">[[#footnote_note_en|[en]]]</sup>}} {{#ifeq:{{{1}}}|noinfo|[[CTGP Revolution]]|CTGP Revolution's}} translations are based on '''{{{CTGP}}}'''.}}{{#if:
|+ '''{{#if: {{{name}}} | {{{name}}} | Name in Other Languages }}'''
+
{{#switch:{{{nl|{{#ifeq:{{FULLPAGENAME}}|Template:Language-Info|eq}}}}}|-|=-}}
|-
+
{{#switch:{{{fr|}}}|-|=-}}
! Dutch:
+
{{#switch:{{{de|}}}|-|=-}}
| {{{nl|class="bg-red1"{{!}}&mdash;}}}
+
{{#switch:{{{it|}}}|-|=-}}
|-
+
{{#switch:{{{ja|}}}|-|=-}}
! French:
+
{{#switch:{{{ko|}}}|-|=-}}
| {{{fr|&mdash;}}}
+
{{#switch:{{{pt|}}}|-|=-}}
|-
+
{{#switch:{{{ru|}}}|-|=-}}
! German:
+
{{#switch:{{{es|}}}|-|=-}}
| {{{de|&mdash;}}}
+
{{#switch:{{{el|}}}|-|=-}}
|-
+
{{#switch:{{{pl|}}}|-|=-}}
! Italian:
+
{{#switch:{{{fi|}}}|-|=-}}
| {{{it|&mdash;}}}
+
{{#switch:{{{sv|}}}|-|=-}}
|-
+
{{#switch:{{{cs|}}}|-|=-}}
! Japanese:
+
{{#switch:{{{da|}}}|-|=-}}
| {{{ja|&mdash;}}}
+
|[[Category:Language-Info/Empty field(s)]]}}{{#replace:
|-
+
{{#replace:
! Korean:
+
{{#replace:
| {{{ko|&mdash;}}}
+
{{#replace:
|-
+
{{#replace:
! Spanish:
+
{{{!}}class="textbox grid"
| {{{es|&mdash;}}}
+
{{!}}-style=background-color:#B0B0F0;font-weight:bold;text-align:center
|-
+
{{#if:{{{CTGP|}}}|{{!}}Language
! Greek:
+
{{!}}Original Name
| {{{el|&mdash;}}}
+
{{!}}CTGP-R Name}}
|-
+
{{!}}-
! Portuguese:
+
!Dutch:
| {{{pt|&mdash;}}}
+
{{!}}{{{nl|class=bg-red1{{!}}&mdash;}}}
|-
+
{{#if:{{{CTGP|}}}|{{!}}{{{nl/ctgp|class=bg-red1{{!}}&mdash;}}}}}
! Polish:
+
{{!}}-
| {{{pl|&mdash;}}}
+
!French:
|-
+
{{!}}{{{fr|class=bg-red1{{!}}&mdash;}}}
! Finnish:
+
{{#if:{{{CTGP|}}}|{{!}}{{{fr/ctgp|class=bg-red1{{!}}&mdash;}}}}}
| {{{fi|&mdash;}}}
+
{{!}}-
|-
+
!German:
! Swedish:
+
{{!}}{{{de|class=bg-red1{{!}}&mdash;}}}
| {{{sv|&mdash;}}}
+
{{#if:{{{CTGP|}}}|{{!}}{{{de/ctgp|class=bg-red1{{!}}&mdash;}}}}}
|-
+
{{!}}-
! Czech:
+
!Italian:
| {{{cs|&mdash;}}}
+
{{!}}{{{it|class=bg-red1{{!}}&mdash;}}}
|-
+
{{#if:{{{CTGP|}}}|{{!}}{{{it/ctgp|class=bg-red1{{!}}&mdash;}}}}}
! Albanian:
+
{{!}}-
| {{{sq|&mdash;}}}
+
!Japanese:
|}</includeonly><noinclude>
+
{{!}}{{{ja|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{CTGP|}}}|{{!}}{{{ja/ctgp|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Korean:
 +
{{!}}{{{ko|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{CTGP|}}}|{{!}}{{{ko/ctgp|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Portuguese:
 +
{{!}}{{{pt|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{CTGP|}}}|{{!}}{{{pt/ctgp|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Russian:
 +
{{!}}{{{ru|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{CTGP|}}}|{{!}}{{{ru/ctgp|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Spanish:
 +
{{!}}{{{es|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{CTGP|}}}|{{!}}{{{es/ctgp|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Greek:
 +
{{!}}{{{el|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{CTGP|}}}|{{!}}{{{el/ctgp|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Polish:
 +
{{!}}{{{pl|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{CTGP|}}}|{{!}}{{{pl/ctgp|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Finnish:
 +
{{!}}{{{fi|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{CTGP|}}}|{{!}}{{{fi/ctgp|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Swedish:
 +
{{!}}{{{sv|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{CTGP|}}}|{{!}}{{{sv/ctgp|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Czech:
 +
{{!}}{{{cs|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{CTGP|}}}|{{!}}{{{cs/ctgp|class=bg-red1{{!}}&mdash;}}}}}
 +
{{!}}-
 +
!Danish:
 +
{{!}}{{{da|class=bg-red1{{!}}&mdash;}}}
 +
{{#if:{{{CTGP|}}}|{{!}}{{{da/ctgp|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).
 +
 
 +
== info.wiimm.de ==
 +
A bot will collect all translations from the wiki. You will find a collection at [http://info.wiimm.de/ct-wiiki info.wiimm.de] in two files:
 +
* [http://info.wiimm.de/ct-wiiki/track-names-by-name.txt Translations ordered by track name]
 +
* [http://info.wiimm.de/ct-wiiki/track-names-by-language.txt Translations ordered by language]
 +
The created files are machine readable. Use the following rules:
 +
* Ignore empty lines and lines beginning with a hash ("#").
 +
* All other lines use format: <tt>'''language | en-name | translation'''</tt>
 +
 
 +
The bot itself uses several filters and rules to find track translations and to exclude other translations.
 +
* Only standard Wiiki pages are searched for the language table if one of the following text patterns (ignoring case) exists:
 +
** <tt><nowiki>[[category:track</nowiki></tt>
 +
** <tt><nowiki>[[category:disambiguation</nowiki></tt>
 +
** <tt><nowiki>{{disambig|track}}</nowiki></tt>
 +
** <tt><nowiki>{{disambig|battle}}</nowiki></tt>
 +
** <tt><nowiki>{{disambig|edit}}</nowiki></tt>
 +
** <tt><nowiki>{{disambig|texture}}</nowiki></tt>
 +
* Usually, the page name used is the English name. Braces "(...)" are removed from the name.
 +
* Alternatively, '''|en-name=NAME''' can be used to define the English name. This is the only way to enter names with braces "(...)". As well, only in this case, translations with braces are accepted.
 +
 
 +
== Usage ==
 
<div class="float-right">
 
<div class="float-right">
 
{{Language-Info
 
{{Language-Info
 
|name=Test Table
 
|name=Test Table
 +
|en-name=Alternative Title
 
|nlx=Lorem Ipsum
 
|nlx=Lorem Ipsum
 
|fr=Lorem Ipsum
 
|fr=Lorem Ipsum
Line 53: Line 126:
 
|ja=Lorem Ipsum
 
|ja=Lorem Ipsum
 
|ko=Lorem Ipsum
 
|ko=Lorem Ipsum
|es=Lorem Ipsum
+
|pt=Lorem Ipsum
 +
|ru=Lorem Ipsum
 +
|es=Lorem Ipsum (NTSC)<br>Lorem Ipsum (PAL)
 
|el=Lorem Ipsum
 
|el=Lorem Ipsum
|pt=Lorem Ipsum
 
 
|pl=Lorem Ipsum
 
|pl=Lorem Ipsum
 
|fi=Lorem Ipsum
 
|fi=Lorem Ipsum
 
|sv=Lorem Ipsum
 
|sv=Lorem Ipsum
 
|cs=Lorem Ipsum
 
|cs=Lorem Ipsum
|sq=Lorem Ipsum
+
|da=Lorem Ipsum
 
}}</div>
 
}}</div>
  
usage:
+
Here, the Dutch (nl) row was forgotten.
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Language-Info
 
{{Language-Info
 
|name=Test Table
 
|name=Test Table
|nl=Lorem Ipsum
+
|en-name=Alternative Title
 
|fr=Lorem Ipsum
 
|fr=Lorem Ipsum
 
|de=Lorem Ipsum
 
|de=Lorem Ipsum
Line 73: Line 147:
 
|ja=Lorem Ipsum
 
|ja=Lorem Ipsum
 
|ko=Lorem Ipsum
 
|ko=Lorem Ipsum
|es=Lorem Ipsum
+
|pt=Lorem Ipsum
 +
|ru=Lorem Ipsum
 +
|es=Lorem Ipsum (NTSC)<br>Lorem Ipsum (PAL)
 
|el=Lorem Ipsum
 
|el=Lorem Ipsum
|pt=Lorem Ipsum
 
 
|pl=Lorem Ipsum
 
|pl=Lorem Ipsum
 
|fi=Lorem Ipsum
 
|fi=Lorem Ipsum
 
|sv=Lorem Ipsum
 
|sv=Lorem Ipsum
 
|cs=Lorem Ipsum
 
|cs=Lorem Ipsum
|sq=Lorem Ipsum
+
|da=Lorem Ipsum
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
[[Category:Template/Include|{{PAGENAME}}]]</noinclude>
+
 
 +
== Usage (CTGP) ==
 +
<pre><nowiki>
 +
{{Language-Info|CTGP=Test Name
 +
|name=Test Table
 +
|en-name=Alternative Title
 +
|en=Language Info
 +
|fr=Lorem Ipsum ||fr/ctgp=Lorem Ipsum
 +
|de=Lorem Ipsum ||de/ctgp=Lorem Ipsum
 +
|it=Lorem Ipsum ||it/ctgp=Lorem Ipsum
 +
|ja=Lorem Ipsum ||ja/ctgp=Lorem Ipsum
 +
|ko=Lorem Ipsum ||ko/ctgp=Lorem Ipsum
 +
|pt=Lorem Ipsum ||pt/ctgp=Lorem Ipsum
 +
|ru=Lorem Ipsum ||ru/ctgp=Lorem Ipsum
 +
|es=Lorem Ipsum (NTSC)<br>Lorem Ipsum (PAL) ||es/ctgp=Lorem Ipsum (NTSC)<br>Lorem Ipsum (PAL)
 +
|el=Lorem Ipsum ||el/ctgp=Lorem Ipsum
 +
|pl=Lorem Ipsum ||pl/ctgp=Lorem Ipsum
 +
|fi=Lorem Ipsum ||fi/ctgp=Lorem Ipsum
 +
|sv=Lorem Ipsum ||sv/ctgp=Lorem Ipsum
 +
|cs=Lorem Ipsum ||cs/ctgp=Lorem Ipsum
 +
|da=Lorem Ipsum ||da/ctgp=Lorem Ipsum
 +
}}
 +
</nowiki></pre>
 +
 
 +
{{Language-Info|CTGP=Test Name
 +
|name=Test Table
 +
|en-name=Alternative Title
 +
|en=Language Info
 +
|nlx=Lorem Ipsum ||nlx/ctgp=Lorem Ipsum
 +
|fr=Lorem Ipsum ||fr/ctgp=Lorem Ipsum
 +
|de=Lorem Ipsum ||de/ctgp=Lorem Ipsum
 +
|it=Lorem Ipsum ||it/ctgp=Lorem Ipsum
 +
|ja=Lorem Ipsum ||ja/ctgp=Lorem Ipsum
 +
|ko=Lorem Ipsum ||ko/ctgp=Lorem Ipsum
 +
|pt=Lorem Ipsum ||pt/ctgp=Lorem Ipsum
 +
|ru=Lorem Ipsum ||ru/ctgp=Lorem Ipsum
 +
|es=Lorem Ipsum (NTSC)<br>Lorem Ipsum (PAL) ||es/ctgp=Lorem Ipsum (NTSC)<br>Lorem Ipsum (PAL)
 +
|el=Lorem Ipsum ||el/ctgp=Lorem Ipsum
 +
|pl=Lorem Ipsum ||pl/ctgp=Lorem Ipsum
 +
|fi=Lorem Ipsum ||fi/ctgp=Lorem Ipsum
 +
|sv=Lorem Ipsum ||sv/ctgp=Lorem Ipsum
 +
|cs=Lorem Ipsum ||cs/ctgp=Lorem Ipsum
 +
|da=Lorem Ipsum ||da/ctgp=Lorem Ipsum
 +
}}
 +
 
 +
[[Category:Template/Include]]
 +
[[Category:no-translation]]
 +
</noinclude>

Latest revision as of 10:52, 16 October 2023

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).

info.wiimm.de

A bot will collect all translations from the wiki. You will find a collection at info.wiimm.de in two files:

The created files are machine readable. Use the following rules:

  • Ignore empty lines and lines beginning with a hash ("#").
  • All other lines use format: language | en-name | translation

The bot itself uses several filters and rules to find track translations and to exclude other translations.

  • Only standard Wiiki pages are searched for the language table if one of the following text patterns (ignoring case) exists:
    • [[category:track
    • [[category:disambiguation
    • {{disambig|track}}
    • {{disambig|battle}}
    • {{disambig|edit}}
    • {{disambig|texture}}
  • Usually, the page name used is the English name. Braces "(...)" are removed from the name.
  • Alternatively, |en-name=NAME can be used to define the English name. This is the only way to enter names with braces "(...)". As well, only in this case, translations with braces are accepted.

Usage

Dutch:
French: Lorem Ipsum
German: Lorem Ipsum
Italian: Lorem Ipsum
Japanese: Lorem Ipsum
Korean: Lorem Ipsum
Portuguese: Lorem Ipsum
Russian: Lorem Ipsum
Spanish: Lorem Ipsum (NTSC)
Lorem Ipsum (PAL)
Greek: Lorem Ipsum
Polish: Lorem Ipsum
Finnish: Lorem Ipsum
Swedish: Lorem Ipsum
Czech: Lorem Ipsum
Danish: Lorem Ipsum

Here, the Dutch (nl) row was forgotten.

{{Language-Info
|name=Test Table
|en-name=Alternative Title
|fr=Lorem Ipsum
|de=Lorem Ipsum
|it=Lorem Ipsum
|ja=Lorem Ipsum
|ko=Lorem Ipsum
|pt=Lorem Ipsum
|ru=Lorem Ipsum
|es=Lorem Ipsum (NTSC)<br>Lorem Ipsum (PAL)
|el=Lorem Ipsum
|pl=Lorem Ipsum
|fi=Lorem Ipsum
|sv=Lorem Ipsum
|cs=Lorem Ipsum
|da=Lorem Ipsum
}}

Usage (CTGP)

{{Language-Info|CTGP=Test Name
|name=Test Table
|en-name=Alternative Title
|en=Language Info
|fr=Lorem Ipsum ||fr/ctgp=Lorem Ipsum
|de=Lorem Ipsum ||de/ctgp=Lorem Ipsum
|it=Lorem Ipsum ||it/ctgp=Lorem Ipsum
|ja=Lorem Ipsum ||ja/ctgp=Lorem Ipsum
|ko=Lorem Ipsum ||ko/ctgp=Lorem Ipsum
|pt=Lorem Ipsum ||pt/ctgp=Lorem Ipsum
|ru=Lorem Ipsum ||ru/ctgp=Lorem Ipsum
|es=Lorem Ipsum (NTSC)<br>Lorem Ipsum (PAL) ||es/ctgp=Lorem Ipsum (NTSC)<br>Lorem Ipsum (PAL)
|el=Lorem Ipsum ||el/ctgp=Lorem Ipsum
|pl=Lorem Ipsum ||pl/ctgp=Lorem Ipsum
|fi=Lorem Ipsum ||fi/ctgp=Lorem Ipsum
|sv=Lorem Ipsum ||sv/ctgp=Lorem Ipsum
|cs=Lorem Ipsum ||cs/ctgp=Lorem Ipsum
|da=Lorem Ipsum ||da/ctgp=Lorem Ipsum
}}

For tracks from Mario Kart 7, alternate names are used to avoid potential copyright issues for CTGP Revolution.
Original translations are based on Language-Info.[en] CTGP Revolution's translations are based on Test Name.

Language Original Name CTGP-R Name
Dutch:
French: 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: Lorem Ipsum Lorem Ipsum
Russian: Lorem Ipsum Lorem Ipsum
Spanish: Lorem Ipsum (NTSC)
Lorem Ipsum (PAL)
Lorem Ipsum (NTSC)
Lorem Ipsum (PAL)
Greek: Lorem Ipsum Lorem Ipsum
Polish: Lorem Ipsum Lorem Ipsum
Finnish: Lorem Ipsum Lorem Ipsum
Swedish: Lorem Ipsum Lorem Ipsum
Czech: Lorem Ipsum Lorem Ipsum
Danish: Lorem Ipsum Lorem Ipsum

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