Template:Multilang profile: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 15: | Line 15: | ||
-->{{#if:{{{EngE|}}}|{{#if:{{{type|}}}|*}}*'''English (British):'''<br>''{{{EngE}}}''}}<!-- | -->{{#if:{{{EngE|}}}|{{#if:{{{type|}}}|*}}*'''English (British):'''<br>''{{{EngE}}}''}}<!-- | ||
-->{{#if:{{{Jap|}}}{{{Chi|}}}{{{ChiS|}}}{{{ChiT|}}}{{{Cze|}}}{{{Dut|}}}{{{Fre|}}}{{{FreA|}}}{{{FreE|}}}{{{Ger|}}}{{{Hun|}}}{{{Ita|}}}{{{Kor|}}}{{{Pol|}}}{{{Por|}}}{{{PorA|}}}{{{PorE|}}}{{{Rus|}}}{{{Svk|}}}{{{Spa|}}}{{{SpaA|}}}{{{SpaE|}}}|{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|{{#if:{{{type|}}}|*}}*'''Other languages:''' <div class="contentbox mw-collapsible mw-collapsed">}}}}<div class="columns" style="columns:{{{columns|2}}}"><!-- | -->{{#if:{{{Jap|}}}{{{Chi|}}}{{{ChiS|}}}{{{ChiT|}}}{{{Cze|}}}{{{Dut|}}}{{{Fre|}}}{{{FreA|}}}{{{FreE|}}}{{{Ger|}}}{{{Hun|}}}{{{Ita|}}}{{{Kor|}}}{{{Pol|}}}{{{Por|}}}{{{PorA|}}}{{{PorE|}}}{{{Rus|}}}{{{Svk|}}}{{{Spa|}}}{{{SpaA|}}}{{{SpaE|}}}|{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|{{#if:{{{type|}}}|*}}*'''Other languages:''' <div class="contentbox mw-collapsible mw-collapsed">}}}}<div class="columns" style="columns:{{{columns|2}}}"><!-- | ||
-->{{#if:{{{Jap|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{Jap|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Japanese:'''<br>{{lang|ja|{{{Jap}}}}}}}{{#if:{{{JapR|}}}|<br>(Romanization: ''{{{JapR}}}'')}}{{#if:{{{JapM|}}}|<br>(Translation: ''{{{JapM}}}'')}}<!-- | ||
-->{{#if:{{{Chi|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{Chi|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Chinese:'''<br>{{lang|zh|{{{Chi}}}}}}}{{#if:{{{ChiR|}}}|<br>(Romanization: ''{{{ChiR}}}'')}}{{#if:{{{ChiM|}}}|<br>(Translation: ''{{{ChiM}}}'')}}<!-- | ||
-->{{#if:{{{ChiS|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{ChiS|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Chinese (simplified):'''<br>{{lang|zh-Hans|{{{ChiS}}}}}}}{{#if:{{{ChiSR|}}}|<br>(Romanization: ''{{{ChiSR}}}'')}}{{#if:{{{ChiSM|}}}|<br>(Translation: ''{{{ChiSM}}}'')}}<!-- | ||
-->{{#if:{{{ChiT|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{ChiT|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Chinese (traditional):'''<br>{{lang|zh-Hant|{{{ChiT}}}}}}}{{#if:{{{ChiTR|}}}|<br>(Romanization: ''{{{ChiTR}}}'')}}{{#if:{{{ChiTM|}}}|<br>(Translation: ''{{{ChiTM}}}'')}}<!-- | ||
-->{{#if:{{{Cze|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{Cze|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Czech:'''<br>''{{lang|cs|{{{Cze}}}}}''}}{{#if:{{{CzeM|}}}|<br>(Translation: ''{{{CzeM}}}'')}}<!-- | ||
-->{{#if:{{{Dut|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{Dut|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Dutch:'''<br>''{{lang|nl|{{{Dut}}}}}''}}{{#if:{{{DutM|}}}|<br>(Translation: ''{{{DutM}}}'')}}<!-- | ||
-->{{#if:{{{Fre|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{Fre|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''French:'''<br>''{{lang|fr|{{{Fre}}}}}''}}{{#if:{{{FreM|}}}|<br>(Translation: ''{{{FreM}}}'')}}<!-- | ||
-->{{#if:{{{FreA|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{FreA|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''French (Canada):'''<br>''{{lang|fr|{{{FreA}}}}}''}}{{#if:{{{FreAM|}}}|<br>(Translation: ''{{{FreAM}}}'')}}<!-- | ||
-->{{#if:{{{FreE|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{FreE|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''French (Europe):'''<br>''{{lang|fr|{{{FreE}}}}}''}}{{#if:{{{FreEM|}}}|<br>(Translation: ''{{{FreEM}}}'')}}<!-- | ||
-->{{#if:{{{Ger|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{Ger|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''German:'''<br>''{{lang|de|{{{Ger}}}}}''}}{{#if:{{{GerM|}}}|<br>(Translation: ''{{{GerM}}}'')}}<!-- | ||
-->{{#if:{{{Hun|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{Hun|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Hungarian:'''<br>''{{lang|hu|{{{Hun}}}}}''}}{{#if:{{{HunM|}}}|<br>(Translation: ''{{{HunM}}}'')}}<!-- | ||
-->{{#if:{{{Ita|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{Ita|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Italian:'''<br>''{{lang|it|{{{Ita}}}}}''}}{{#if:{{{ItaM|}}}|<br>(Translation: ''{{{ItaM}}}'')}}<!-- | ||
-->{{#if:{{{Kor|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{Kor|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Korean:'''<br>{{lang|ko|{{{Kor}}}}}}}{{#if:{{{KorR|}}}|<br>(Romanization: ''{{{KorR}}}'')}}{{#if:{{{KorM|}}}|<br>(Translation: ''{{{KorM}}}'')}}<!-- | ||
-->{{#if:{{{Pol|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{Pol|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Polish:'''<br>''{{lang|pl|{{{Pol}}}}}''}}{{#if:{{{PolM|}}}|<br>(Translation: ''{{{PolM}}}'')}}<!-- | ||
-->{{#if:{{{Por|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{Por|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Portuguese:'''<br>''{{lang|pt|{{{Por}}}}}''}}{{#if:{{{PorM|}}}|<br>(Translation: ''{{{PorM}}}'')}}<!-- | ||
-->{{#if:{{{PorA|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{PorA|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Portuguese (Brazil):'''<br>''{{lang|pt|{{{PorA}}}}}''}}{{#if:{{{PorAM|}}}|<br>(Translation: ''{{{PorAM}}}'')}}<!-- | ||
-->{{#if:{{{PorE|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{PorE|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Portuguese (Portugal):'''<br>''{{lang|pt|{{{PorE}}}}}''}}{{#if:{{{PorEM|}}}|<br>(Translation: ''{{{PorEM}}}'')}}<!-- | ||
-->{{#if:{{{Rus|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{Rus|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Russian:'''<br>''{{lang|ru|{{{Rus}}}}}''}}{{#if:{{{RusR|}}}|<br>(Romanization: ''{{{RusR}}}'')}}{{#if:{{{RusM|}}}|<br>(Translation: ''{{{RusM}}}'')}}<!-- | ||
-->{{#if:{{{Svk|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{Svk|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Slovak:'''<br>''{{lang|sk|{{{Svk}}}}}''}}{{#if:{{{SvkM|}}}|<br>(Translation: ''{{{SvkM}}}'')}}<!-- | ||
-->{{#if:{{{Spa|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{Spa|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Spanish:'''<br>''{{lang|es|{{{Spa}}}}}''}}{{#if:{{{SpaM|}}}|<br>(Translation: ''{{{SpaM}}}'')}}<!-- | ||
-->{{#if:{{{SpaA|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{SpaA|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Spanish (Latin America):'''<br>''{{lang|es|{{{SpaA}}}}}''}}{{#if:{{{SpaAM|}}}|<br>(Translation: ''{{{SpaAM}}}'')}}<!-- | ||
-->{{#if:{{{SpaE|}}}|{{#switch:{{#if:{{{type|}}}| | -->{{#if:{{{SpaE|}}}|{{#switch:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Spanish (Europe):'''<br>''{{lang|es|{{{SpaE}}}}}''}}{{#if:{{{SpaEM|}}}|<br>(Translation: ''{{{SpaEM}}}'')}}<!-- | ||
--></div>{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|</div>}}{{#if:{{{collapse|}}}|</div>}}</includeonly><noinclude>__TOC__ | --></div>{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|</div>}}{{#if:{{{collapse|}}}|</div>}}</includeonly><noinclude>__TOC__ | ||
== General usage == | == General usage == |
Revision as of 23:08, December 8, 2024
General usage
This template is used to display multiple official descriptions for a subject in various languages. The descriptions added to the template should originate from different localizations of the same source.
Here is an example of how this template should be used. This code:
{{Multilang profile |type=website |Eng=Mario is always ready to help a friend, take on a new challenge, or jump on a Koopa's head! |FreA=Mario est toujours prêt à aider un ami, relever un nouveau défi, ou sauter sur la tête d'un Koopa! |PorA=Mario está sempre pronto para ajudar alguém, enfrentar novos desafios e dar uma pisada em um Koopa! |SpaA=Mario siempre está listo para ayudar a un amigo, enfrentar un nuevo reto o ¡incluso saltar sobre la cabeza de un Koopa! }}
produces the following content (without the separation lines):
- Website description:
- English:
Mario is always ready to help a friend, take on a new challenge, or jump on a Koopa's head! - Other languages:
- French (Canada):
Mario est toujours prêt à aider un ami, relever un nouveau défi, ou sauter sur la tête d'un Koopa! - Portuguese (Brazil):
Mario está sempre pronto para ajudar alguém, enfrentar novos desafios e dar uma pisada em um Koopa! - Spanish (Latin America):
Mario siempre está listo para ayudar a un amigo, enfrentar un nuevo reto o ¡incluso saltar sobre la cabeza de un Koopa!
- French (Canada):
- English:
- Notes
- By default, the list of descriptions is split into two columns. To arrange the descriptions on a single column, add a
columns
parameter and set its value to "1". - If the list of descriptions gets huge (even if it's split across columns), you can make it collapsible. Just add a
collapse
parameter and set its value to "1".
Supported languages
The following languages are accompanied by their respective parameters for this template.
Eng
EnglishEngA
American EnglishEngE
British EnglishJap
JapaneseChi
ChineseChiS
Simplified ChineseChiT
Traditional ChineseCze
CzechDut
DutchFre
FrenchFreA
French (Canada)FreE
French (Europe)Ger
GermanHun
HungarianIta
ItalianKor
KoreanPol
PolishPor
PortuguesePorA
Portuguese (Brazil)PorE
Portuguese (Portugal)Rus
RussianSvk
SlovakSpa
SpanishSpaA
Spanish (Latin America)SpaE
Spanish (Europe)
- Notes
- You can add a translation for a particular non-English description using a translation parameter. This parameter is written the same as your chosen language parameter plus the letter "M" (for "meaning"). For instance, the translation parameter for
Jap
(Japanese) isJapM
. - Similarly, the template provides a parameter that allows you to add romanizations of descriptions that are not originally written with Latin script. The parameter is written the same as your chosen language parameter plus the letter "R" (for "romanization"). For instance, the romanization parameter for
Jap
isJapR
. - To account for different localizations across regions with the same majority language, the template has parameters for language varieties, such as
SpaA
(Latin American Spanish) andSpaE
(European Spanish). If a description is the exact same in all varieties of a language, simply use the parameter that doesn't differentiate between regions, e.g.Spa
(Spanish). The same should be done if a description is localized in only one apparent language variety but the source doesn't specify the region of the variety, as is the case with Mario Kart Tour, whose Brazilian Portuguese localization is simply designated "Portuguese" in-game.
Type parameter
The type
parameter can be set to one of several values to specify the origin of these descriptions at the top of the list:
General | |
---|---|
Type | Definition |
game |
The game itself |
website |
The official website of a game or some other work |
manual |
The physical instruction booklet of a game |
e-manual |
The electronic manual of a game |
vc_3ds |
The electronic manual of a game released as part of the Virtual Console service on Nintendo 3DS |
vc_wiiu |
The electronic manual of a game released as part of the Virtual Console service on Wii U |
Mario Kart Tour | |
Type | Definition |
spotlight |
The Spotlight Shop section of the Shop |
mii |
The Mii Racing Suit Shop section of the Shop |
offer |
An in-game special offer |
If you fill the type
parameter with something other than the above values, the template will simply display whatever you typed in this parameter. If you don't fill the parameter with anything, nothing will be displayed above the descriptions.