Difference between revisions of "Template:Language-Info"

From Custom Mario Kart
Jump to navigation Jump to search
m (hopefully it all works now)
 
(35 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{CTGP|}}} | {{#switch: {{{1|}}} | noinfo= | #default=For [[Mario Kart]] tracks featured in games released after [[Mario Kart Wii]], alternate names are used to avoid potential copyright issues for [[CTGP Revolution]].<br> }}''Original Name'' translations are based on '''{{PAGENAME}}'''{{#if: {{{en|}}} | <sup id="footnote_inline_1">''[[#footnote_note_1|1]]''</sup> }}. ''CTGP-R Name'' translations are based on '''{{{CTGP}}}'''. }}
+
<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:
{| class="textbox grid"
+
{{#switch:{{{nl|{{#ifeq:{{FULLPAGENAME}}|Template:Language-Info|eq}}}}}|-|=-}}
|+ {{#if: {{{name|}}} | {{{name}}} | Translations }}
+
{{#switch:{{{fr|}}}|-|=-}}
|-style="background-color:#B0B0F0;" align=center
+
{{#switch:{{{de|}}}|-|=-}}
{{#if: {{{CTGP|}}} | {{!}} '''Language'''
+
{{#switch:{{{it|}}}|-|=-}}
{{!}} '''Original Name'''
+
{{#switch:{{{ja|}}}|-|=-}}
{{!}} '''[[CTGP-R]] Name'''}}
+
{{#switch:{{{ko|}}}|-|=-}}
|-
+
{{#switch:{{{pt|}}}|-|=-}}
! Dutch:
+
{{#switch:{{{ru|}}}|-|=-}}
| {{{nl|class="bg-red1"{{!}}&mdash;}}}
+
{{#switch:{{{es|}}}|-|=-}}
{{#if: {{{CTGP|}}} | {{!}} {{{nl/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{#switch:{{{el|}}}|-|=-}}
|-
+
{{#switch:{{{pl|}}}|-|=-}}
! French:
+
{{#switch:{{{fi|}}}|-|=-}}
| {{{fr|class="bg-red1"{{!}}&mdash;}}}
+
{{#switch:{{{sv|}}}|-|=-}}
{{#if: {{{CTGP|}}} | {{!}} {{{fr/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{#switch:{{{cs|}}}|-|=-}}
|-
+
{{#switch:{{{da|}}}|-|=-}}
! German:
+
|[[Category:Language-Info/Empty field(s)]]}}{{#replace:
| {{{de|class="bg-red1"{{!}}&mdash;}}}
+
{{#replace:
{{#if: {{{CTGP|}}} | {{!}} {{{de/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{#replace:
|-
+
{{#replace:
! Italian:
+
{{#replace:
| {{{it|class="bg-red1"{{!}}&mdash;}}}
+
{{{!}}class="textbox grid"
{{#if: {{{CTGP|}}} | {{!}} {{{it/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{!}}-style=background-color:#B0B0F0;font-weight:bold;text-align:center
|-
+
{{#if:{{{CTGP|}}}|{{!}}Language
! Japanese:
+
{{!}}Original Name
| {{{ja|class="bg-red1"{{!}}&mdash;}}}
+
{{!}}CTGP-R Name}}
{{#if: {{{CTGP|}}} | {{!}} {{{ja/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{!}}-
|-
+
!Dutch:
! Korean:
+
{{!}}{{{nl|class=bg-red1{{!}}&mdash;}}}
| {{{ko|class="bg-red1"{{!}}&mdash;}}}
+
{{#if:{{{CTGP|}}}|{{!}}{{{nl/ctgp|class=bg-red1{{!}}&mdash;}}}}}
{{#if: {{{CTGP|}}} | {{!}} {{{ko/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{!}}-
|-
+
!French:
! Portuguese:
+
{{!}}{{{fr|class=bg-red1{{!}}&mdash;}}}
| {{{pt|class="bg-red1"{{!}}&mdash;}}}
+
{{#if:{{{CTGP|}}}|{{!}}{{{fr/ctgp|class=bg-red1{{!}}&mdash;}}}}}
{{#if: {{{CTGP|}}} | {{!}} {{{pt/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{!}}-
|-
+
!German:
! Russian:
+
{{!}}{{{de|class=bg-red1{{!}}&mdash;}}}
| {{{ru|class="bg-red1"{{!}}&mdash;}}}
+
{{#if:{{{CTGP|}}}|{{!}}{{{de/ctgp|class=bg-red1{{!}}&mdash;}}}}}
{{#if: {{{CTGP|}}} | {{!}} {{{ru/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{!}}-
|-
+
!Italian:
! Spanish:
+
{{!}}{{{it|class=bg-red1{{!}}&mdash;}}}
| {{{es|class="bg-red1"{{!}}&mdash;}}}
+
{{#if:{{{CTGP|}}}|{{!}}{{{it/ctgp|class=bg-red1{{!}}&mdash;}}}}}
{{#if: {{{CTGP|}}} | {{!}} {{{es/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{!}}-
|-
+
!Japanese:
! Greek:
+
{{!}}{{{ja|class=bg-red1{{!}}&mdash;}}}
| {{{el|class="bg-red1"{{!}}&mdash;}}}
+
{{#if:{{{CTGP|}}}|{{!}}{{{ja/ctgp|class=bg-red1{{!}}&mdash;}}}}}
{{#if: {{{CTGP|}}} | {{!}} {{{el/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{!}}-
|-
+
!Korean:
! Polish:
+
{{!}}{{{ko|class=bg-red1{{!}}&mdash;}}}
| {{{pl|class="bg-red1"{{!}}&mdash;}}}
+
{{#if:{{{CTGP|}}}|{{!}}{{{ko/ctgp|class=bg-red1{{!}}&mdash;}}}}}
{{#if: {{{CTGP|}}} | {{!}} {{{pl/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{!}}-
|-
+
!Portuguese:
! Finnish:
+
{{!}}{{{pt|class=bg-red1{{!}}&mdash;}}}
| {{{fi|class="bg-red1"{{!}}&mdash;}}}
+
{{#if:{{{CTGP|}}}|{{!}}{{{pt/ctgp|class=bg-red1{{!}}&mdash;}}}}}
{{#if: {{{CTGP|}}} | {{!}} {{{fi/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{!}}-
|-
+
!Russian:
! Swedish:
+
{{!}}{{{ru|class=bg-red1{{!}}&mdash;}}}
| {{{sv|class="bg-red1"{{!}}&mdash;}}}
+
{{#if:{{{CTGP|}}}|{{!}}{{{ru/ctgp|class=bg-red1{{!}}&mdash;}}}}}
{{#if: {{{CTGP|}}} | {{!}} {{{sv/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{!}}-
|-
+
!Spanish:
! Czech:
+
{{!}}{{{es|class=bg-red1{{!}}&mdash;}}}
| {{{cs|class="bg-red1"{{!}}&mdash;}}}
+
{{#if:{{{CTGP|}}}|{{!}}{{{es/ctgp|class=bg-red1{{!}}&mdash;}}}}}
{{#if: {{{CTGP|}}} | {{!}} {{{cs/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{!}}-
|-
+
!Greek:
! Albanian:
+
{{!}}{{{el|class=bg-red1{{!}}&mdash;}}}
| {{{sq|class="bg-red1"{{!}}&mdash;}}}
+
{{#if:{{{CTGP|}}}|{{!}}{{{el/ctgp|class=bg-red1{{!}}&mdash;}}}}}
{{#if: {{{CTGP|}}} | {{!}} {{{sq/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{!}}-
|-
+
!Polish:
! Danish:
+
{{!}}{{{pl|class=bg-red1{{!}}&mdash;}}}
| {{{da|class="bg-red1"{{!}}&mdash;}}}
+
{{#if:{{{CTGP|}}}|{{!}}{{{pl/ctgp|class=bg-red1{{!}}&mdash;}}}}}
{{#if: {{{CTGP|}}} | {{!}} {{{da/ctgp|class="bg-red1"{{!}}&mdash;}}} }}
+
{{!}}-
|}
+
!Finnish:
{{#if: {{{en|}}} | {{#if: {{{CTGP|}}} | <sup id="footnote_note_1">''[[#footnote_inline_1|1]]''</sup> | * }} - Known as '''{{{en}}}''' in Europe and Australia.<br> }}</includeonly><noinclude>At [http://info.wiimm.de/ct-wiiki/ info.wiimm.de] you find a collection of all track name translations either ordered by [http://info.wiimm.de/ct-wiiki/track-names-by-name.txt track name] or by [http://info.wiimm.de/ct-wiiki/track-names-by-language.txt language]. For details see the [[Template talk:Language-Info#Collection of all track name translations|discussion]].
+
{{!}}{{{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>
  
If a language is different per region (example: Spanish (NTSC) and Spanish (PAL)), then use the existing variants of the language instead.
+
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==
+
== 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 93: Line 134:
 
|sv=Lorem Ipsum
 
|sv=Lorem Ipsum
 
|cs=Lorem Ipsum
 
|cs=Lorem Ipsum
|sq=Lorem Ipsum
 
 
|da=Lorem Ipsum
 
|da=Lorem Ipsum
 
}}</div>
 
}}</div>
Line 101: Line 141:
 
{{Language-Info
 
{{Language-Info
 
|name=Test Table
 
|name=Test Table
 +
|en-name=Alternative Title
 
|fr=Lorem Ipsum
 
|fr=Lorem Ipsum
 
|de=Lorem Ipsum
 
|de=Lorem Ipsum
Line 114: Line 155:
 
|sv=Lorem Ipsum
 
|sv=Lorem Ipsum
 
|cs=Lorem Ipsum
 
|cs=Lorem Ipsum
|sq=Lorem Ipsum
 
 
|da=Lorem Ipsum
 
|da=Lorem Ipsum
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
  
==Usage (CTGP)==
+
== Usage (CTGP) ==
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Language-Info|CTGP=Test Name
 
{{Language-Info|CTGP=Test Name
 
|name=Test Table
 
|name=Test Table
 +
|en-name=Alternative Title
 
|en=Language Info
 
|en=Language Info
 
|fr=Lorem Ipsum ||fr/ctgp=Lorem Ipsum
 
|fr=Lorem Ipsum ||fr/ctgp=Lorem Ipsum
Line 137: Line 178:
 
|sv=Lorem Ipsum ||sv/ctgp=Lorem Ipsum
 
|sv=Lorem Ipsum ||sv/ctgp=Lorem Ipsum
 
|cs=Lorem Ipsum ||cs/ctgp=Lorem Ipsum
 
|cs=Lorem Ipsum ||cs/ctgp=Lorem Ipsum
|sq=Lorem Ipsum ||sq/ctgp=Lorem Ipsum
 
 
|da=Lorem Ipsum ||da/ctgp=Lorem Ipsum
 
|da=Lorem Ipsum ||da/ctgp=Lorem Ipsum
 
}}
 
}}
Line 144: Line 184:
 
{{Language-Info|CTGP=Test Name
 
{{Language-Info|CTGP=Test Name
 
|name=Test Table
 
|name=Test Table
 +
|en-name=Alternative Title
 
|en=Language Info
 
|en=Language Info
 
|nlx=Lorem Ipsum ||nlx/ctgp=Lorem Ipsum
 
|nlx=Lorem Ipsum ||nlx/ctgp=Lorem Ipsum
Line 159: Line 200:
 
|sv=Lorem Ipsum ||sv/ctgp=Lorem Ipsum
 
|sv=Lorem Ipsum ||sv/ctgp=Lorem Ipsum
 
|cs=Lorem Ipsum ||cs/ctgp=Lorem Ipsum
 
|cs=Lorem Ipsum ||cs/ctgp=Lorem Ipsum
|sq=Lorem Ipsum ||sq/ctgp=Lorem Ipsum
 
 
|da=Lorem Ipsum ||da/ctgp=Lorem Ipsum
 
|da=Lorem Ipsum ||da/ctgp=Lorem Ipsum
 
}}
 
}}
  
[[Category:Template/Include]]</noinclude>
+
[[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