Template:Multilang profile: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 14: | Line 14: | ||
-->{{#if:{{{EngA|}}}|{{#if:{{{type|}}}|*}}*'''English (American):'''<br>''{{{EngA}}}''}}<!-- | -->{{#if:{{{EngA|}}}|{{#if:{{{type|}}}|*}}*'''English (American):'''<br>''{{{EngA}}}''}}<!-- | ||
-->{{#if:{{{EngE|}}}|{{#if:{{{type|}}}|*}}*'''English (British):'''<br>''{{{EngE}}}''}}<!-- | -->{{#if:{{{EngE|}}}|{{#if:{{{type|}}}|*}}*'''English (British):'''<br>''{{{EngE}}}''}}<!-- | ||
-->{{#if:{{{Jap|}}}|{{#if:{{{type|}}}|*}}*'''Japanese:'''<br> | -->{{#if:{{{Jap|}}}|{{#if:{{{type|}}}|*}}*'''Japanese:'''<br>{{lang|ja|{{{Jap}}}}}}}{{#if:{{{JapR|}}}|<br>(Romanization: ''{{{JapR}}}'')}}{{#if:{{{JapM|}}}|<br>(Translation: ''{{{JapM}}}'')}}<!-- | ||
-->{{#if:{{{Chi|}}}|{{#if:{{{type|}}}|*}}*'''Chinese:'''<br> | -->{{#if:{{{Chi|}}}|{{#if:{{{type|}}}|*}}*'''Chinese:'''<br>{{lang|zh|{{{Chi}}}}}}}{{#if:{{{ChiR|}}}|<br>(Romanization: ''{{{ChiR}}}'')}}{{#if:{{{ChiM|}}}|<br>(Translation: ''{{{ChiM}}}'')}}<!-- | ||
-->{{#if:{{{ChiS|}}}|{{#if:{{{type|}}}|*}}*'''Chinese (simplified):'''<br> | -->{{#if:{{{ChiS|}}}|{{#if:{{{type|}}}|*}}*'''Chinese (simplified):'''<br>{{lang|zh-Hans|{{{ChiS}}}}}}}{{#if:{{{ChiSR|}}}|<br>(Romanization: ''{{{ChiSR}}}'')}}{{#if:{{{ChiSM|}}}|<br>(Translation: ''{{{ChiSM}}}'')}}<!-- | ||
-->{{#if:{{{ChiT|}}}|{{#if:{{{type|}}}|*}}*'''Chinese (traditional):'''<br> | -->{{#if:{{{ChiT|}}}|{{#if:{{{type|}}}|*}}*'''Chinese (traditional):'''<br>{{lang|zh-Hant|{{{ChiT}}}}}}}{{#if:{{{ChiTR|}}}|<br>(Romanization: ''{{{ChiTR}}}'')}}{{#if:{{{ChiTM|}}}|<br>(Translation: ''{{{ChiTM}}}'')}}<!-- | ||
-->{{#if:{{{Cze|}}}|{{#if:{{{type|}}}|*}}*'''Czech:'''<br>'' | -->{{#if:{{{Cze|}}}|{{#if:{{{type|}}}|*}}*'''Czech:'''<br>''{{lang|cs|{{{Cze}}}}}''}}{{#if:{{{CzeM|}}}|<br>(Translation: ''{{{CzeM}}}'')}}<!-- | ||
-->{{#if:{{{Dut|}}}|{{#if:{{{type|}}}|*}}*'''Dutch:'''<br>'' | -->{{#if:{{{Dut|}}}|{{#if:{{{type|}}}|*}}*'''Dutch:'''<br>''{{lang|nl|{{{Dut}}}}}''}}{{#if:{{{DutM|}}}|<br>(Translation: ''{{{DutM}}}'')}}<!-- | ||
-->{{#if:{{{Fre|}}}|{{#if:{{{type|}}}|*}}*'''French:'''<br>'' | -->{{#if:{{{Fre|}}}|{{#if:{{{type|}}}|*}}*'''French:'''<br>''{{lang|fr|{{{Fre}}}}}''}}{{#if:{{{FreM|}}}|<br>(Translation: ''{{{FreM}}}'')}}<!-- | ||
-->{{#if:{{{FreA|}}}|{{#if:{{{type|}}}|*}}*'''French (Canada):'''<br>'' | -->{{#if:{{{FreA|}}}|{{#if:{{{type|}}}|*}}*'''French (Canada):'''<br>''{{lang|fr|{{{FreA}}}}}''}}{{#if:{{{FreAM|}}}|<br>(Translation: ''{{{FreAM}}}'')}}<!-- | ||
-->{{#if:{{{FreE|}}}|{{#if:{{{type|}}}|*}}*'''French (Europe):'''<br>'' | -->{{#if:{{{FreE|}}}|{{#if:{{{type|}}}|*}}*'''French (Europe):'''<br>''{{lang|fr|{{{FreE}}}}}''}}{{#if:{{{FreEM|}}}|<br>(Translation: ''{{{FreEM}}}'')}}<!-- | ||
-->{{#if:{{{Ger|}}}|{{#if:{{{type|}}}|*}}*'''German:'''<br>'' | -->{{#if:{{{Ger|}}}|{{#if:{{{type|}}}|*}}*'''German:'''<br>''{{lang|de|{{{Ger}}}}}''}}{{#if:{{{GerM|}}}|<br>(Translation: ''{{{GerM}}}'')}}<!-- | ||
-->{{#if:{{{Hun|}}}|{{#if:{{{type|}}}|*}}*'''Hungarian:'''<br>'' | -->{{#if:{{{Hun|}}}|{{#if:{{{type|}}}|*}}*'''Hungarian:'''<br>''{{lang|hu|{{{Hun}}}}}''}}{{#if:{{{HunM|}}}|<br>(Translation: ''{{{HunM}}}'')}}<!-- | ||
-->{{#if:{{{Ita|}}}|{{#if:{{{type|}}}|*}}*'''Italian:'''<br>'' | -->{{#if:{{{Ita|}}}|{{#if:{{{type|}}}|*}}*'''Italian:'''<br>''{{lang|it|{{{Ita}}}}}''}}{{#if:{{{ItaM|}}}|<br>(Translation: ''{{{ItaM}}}'')}}<!-- | ||
-->{{#if:{{{Kor|}}}|{{#if:{{{type|}}}|*}}*'''Korean:'''<br> | -->{{#if:{{{Kor|}}}|{{#if:{{{type|}}}|*}}*'''Korean:'''<br>{{lang|ko|{{{Kor}}}}}}}{{#if:{{{KorR|}}}|<br>(Romanization: ''{{{KorR}}}'')}}{{#if:{{{KorM|}}}|<br>(Translation: ''{{{KorM}}}'')}}<!-- | ||
-->{{#if:{{{Pol|}}}|{{#if:{{{type|}}}|*}}*'''Polish:'''<br>'' | -->{{#if:{{{Pol|}}}|{{#if:{{{type|}}}|*}}*'''Polish:'''<br>''{{lang|pl|{{{Pol}}}}}''}}{{#if:{{{PolM|}}}|<br>(Translation: ''{{{PolM}}}'')}}<!-- | ||
-->{{#if:{{{Por|}}}|{{#if:{{{type|}}}|*}}*'''Portuguese:'''<br>'' | -->{{#if:{{{Por|}}}|{{#if:{{{type|}}}|*}}*'''Portuguese:'''<br>''{{lang|pt|{{{Por}}}}}''}}{{#if:{{{PorM|}}}|<br>(Translation: ''{{{PorM}}}'')}}<!-- | ||
-->{{#if:{{{PorA|}}}|{{#if:{{{type|}}}|*}}*'''Portuguese (Brazil):'''<br>'' | -->{{#if:{{{PorA|}}}|{{#if:{{{type|}}}|*}}*'''Portuguese (Brazil):'''<br>''{{lang|pt|{{{PorA}}}}}''}}{{#if:{{{PorAM|}}}|<br>(Translation: ''{{{PorAM}}}'')}}<!-- | ||
-->{{#if:{{{PorE|}}}|{{#if:{{{type|}}}|*}}*'''Portuguese (Portugal):'''<br>'' | -->{{#if:{{{PorE|}}}|{{#if:{{{type|}}}|*}}*'''Portuguese (Portugal):'''<br>''{{lang|pt|{{{PorE}}}}}''}}{{#if:{{{PorEM|}}}|<br>(Translation: ''{{{PorEM}}}'')}}<!-- | ||
-->{{#if:{{{Rus|}}}|{{#if:{{{type|}}}|*}}*'''Russian:'''<br>'' | -->{{#if:{{{Rus|}}}|{{#if:{{{type|}}}|*}}*'''Russian:'''<br>''{{lang|ru|{{{Rus}}}}}''}}{{#if:{{{RusR|}}}|<br>(Romanization: ''{{{RusR}}}'')}}{{#if:{{{RusM|}}}|<br>(Translation: ''{{{RusM}}}'')}}<!-- | ||
-->{{#if:{{{Svk|}}}|{{#if:{{{type|}}}|*}}*'''Slovak:'''<br>'' | -->{{#if:{{{Svk|}}}|{{#if:{{{type|}}}|*}}*'''Slovak:'''<br>''{{lang|sk|{{{Svk}}}}}''}}{{#if:{{{SvkM|}}}|<br>(Translation: ''{{{SvkM}}}'')}}<!-- | ||
-->{{#if:{{{Spa|}}}|{{#if:{{{type|}}}|*}}*'''Spanish:'''<br>'' | -->{{#if:{{{Spa|}}}|{{#if:{{{type|}}}|*}}*'''Spanish:'''<br>''{{lang|es|{{{Spa}}}}}''}}{{#if:{{{SpaM|}}}|<br>(Translation: ''{{{SpaM}}}'')}}<!-- | ||
-->{{#if:{{{SpaA|}}}|{{#if:{{{type|}}}|*}}*'''Spanish (Latin America):'''<br>'' | -->{{#if:{{{SpaA|}}}|{{#if:{{{type|}}}|*}}*'''Spanish (Latin America):'''<br>''{{lang|es|{{{SpaA}}}}}''}}{{#if:{{{SpaAM|}}}|<br>(Translation: ''{{{SpaAM}}}'')}}<!-- | ||
-->{{#if:{{{SpaE|}}}|{{#if:{{{type|}}}|*}}*'''Spanish (Europe):'''<br>'' | -->{{#if:{{{SpaE|}}}|{{#if:{{{type|}}}|*}}*'''Spanish (Europe):'''<br>''{{lang|es|{{{SpaE}}}}}''}}{{#if:{{{SpaEM|}}}|<br>(Translation: ''{{{SpaEM}}}'')}}<!-- | ||
--></div>{{#if:{{{collapse|}}}|</div>}}</includeonly><noinclude>__TOC__ | --></div>{{#if:{{{collapse|}}}|</div>}}</includeonly><noinclude>__TOC__ | ||
== General usage == | == General usage == |
Revision as of 13:02, July 22, 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! - 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!
- 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.