Template:Multilang profile: Difference between revisions
No edit summary |
mNo edit summary |
||
(25 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{type}}} | <includeonly>{{#switch:{{{type}}} | ||
|website=*'''Website | |game=*'''In-game description''' | ||
|manual=*'''Instruction booklet | |website=*'''Website description:''' | ||
|e-manual=*'''Electronic manual | |manual=*'''Instruction booklet description:''' | ||
|vc_3ds=*'''Nintendo 3DS Virtual Console manual | |e-manual=*'''Electronic manual description:''' | ||
|vc_wiiu=*'''Wii U Virtual Console manual | |vc_3ds=*'''Nintendo 3DS Virtual Console manual description:''' | ||
|vc_wiiu=*'''Wii U Virtual Console manual description:''' | |||
|spotlight=*'''Spotlight Shop description:''' | |spotlight=*'''Spotlight Shop description:''' | ||
|mii=*'''Mii Racing Suit Shop description:''' | |mii=*'''Mii Racing Suit Shop description:''' | ||
|offer=*'''Special offer description:''' | |offer=*'''Special offer description:''' | ||
|*'''{{{type}}}:''' | |{{#if:{{{type|}}}|*'''{{{type}}}:'''}} | ||
}} | }}{{#if:{{{collapse|}}}|<br><div class="contentbox mw-collapsible mw-collapsed">}}<!-- | ||
-->{{#if:{{{Eng|}}}|**'''English:'''<br>''{{{Eng}}}''}}<!-- | -->{{#if:{{{Eng|}}}|{{#if:{{{type|}}}|*}}*'''English:'''<br>''{{{Eng}}}''}}<!-- | ||
-->{{#if:{{{EngA|}}}| | -->{{#if:{{{EngA|}}}|{{#if:{{{type|}}}|*}}*'''English (American):'''<br>''{{{EngA}}}''}}<!-- | ||
-->{{#if:{{{EngE|}}}|**'''British | -->{{#if:{{{EngE|}}}|{{#if:{{{type|}}}|*}}*'''English (British):'''<br>''{{{EngE}}}''}}<!-- | ||
-->{{#if:{{{Jap|}}} | -->{{#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: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: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: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: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:{{{ | -->{{#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:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Dutch:'''<br>''{{lang|nl|{{{Dut}}}}}''}}{{#if:{{{DutM|}}}|<br>(Translation: ''{{{DutM}}}'')}}<!-- | |||
-->{{#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: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: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:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''German:'''<br>''{{lang|de|{{{Ger}}}}}''}}{{#if:{{{GerM|}}}|<br>(Translation: ''{{{GerM}}}'')}}<!-- | |||
-->{{#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:{{{ | -->{{#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: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:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Polish:'''<br>''{{lang|pl|{{{Pol}}}}}''}}{{#if:{{{PolM|}}}|<br>(Translation: ''{{{PolM}}}'')}}<!-- | |||
-->{{#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:{{{ | -->{{#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: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: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:x{{#if:{{{type|}}}|x}}{{#if:{{{Eng|}}}{{{EngA|}}}{{{EngE|}}}|x}}|x=*|xx=**|***}}'''Slovak:'''<br>''{{lang|sk|{{{Svk}}}}}''}}{{#if:{{{SvkM|}}}|<br>(Translation: ''{{{SvkM}}}'')}}<!-- | |||
-->{{#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: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: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__ | |||
== 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: | |||
<pre> | <pre> | ||
{{Multilang profile | {{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! | |||
|FreA= | |||
|PorA= | |||
|SpaA= | |||
}} | }} | ||
</pre> | </pre> | ||
produces the following content (without the separation lines): | |||
---- | |||
{{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! | |||
}} | |||
---- | |||
;Notes: | |||
*By default, the list of descriptions is split into two columns. To arrange the descriptions on a single column, add a <code>columns</code> 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 <code>collapse</code> parameter and set its value to "1". | |||
== Supported languages == | |||
The following languages are accompanied by their respective parameters for this template. | |||
<div class="columns" style="columns:2"> | |||
*<code>Eng</code> English | |||
*<code>EngA</code> American English | |||
*<code>EngE</code> British English | |||
*<code>Jap</code> Japanese | |||
*<code>Chi</code> Chinese | |||
*<code>ChiS</code> Simplified Chinese | |||
*<code>ChiT</code> Traditional Chinese | |||
*<code>Cze</code> Czech | |||
*<code>Dut</code> Dutch | |||
*<code>Fre</code> French | |||
*<code>FreA</code> French (Canada) | |||
*<code>FreE</code> French (Europe) | |||
*<code>Ger</code> German | |||
*<code>Hun</code> Hungarian | |||
*<code>Ita</code> Italian | |||
*<code>Kor</code> Korean | |||
*<code>Pol</code> Polish | |||
*<code>Por</code> Portuguese | |||
*<code>PorA</code> Portuguese (Brazil) | |||
*<code>PorE</code> Portuguese (Portugal) | |||
*<code>Rus</code> Russian | |||
*<code>Svk</code> Slovak | |||
*<code>Spa</code> Spanish | |||
*<code>SpaA</code> Spanish (Latin America) | |||
*<code>SpaE</code> Spanish (Europe) | |||
</div> | |||
;Notes: | ;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 <code>Jap</code> (Japanese) is <code>JapM</code>. | *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 <code>Jap</code> (Japanese) is <code>JapM</code>. | ||
* | *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 <code>Jap</code> is <code>JapR</code>. | ||
*To account for different localizations across regions with the same majority language, the template has parameters for language varieties, such as <code>SpaA</code> (Latin American Spanish) and <code>SpaE</code> (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. <code>Spa</code> (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. | *To account for different localizations across regions with the same majority language, the template has parameters for language varieties, such as <code>SpaA</code> (Latin American Spanish) and <code>SpaE</code> (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. <code>Spa</code> (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 <code>type</code> parameter can be set to one of several values to specify the origin of these descriptions at the top of the list: | The <code>type</code> parameter can be set to one of several values to specify the origin of these descriptions at the top of the list: | ||
Line 68: | Line 112: | ||
|- | |- | ||
!Type!!Definition | !Type!!Definition | ||
|- | |||
|<code>game</code>||The '''game itself''' | |||
|- | |- | ||
|<code>website</code>||The '''official website''' of a game or some other work | |<code>website</code>||The '''official website''' of a game or some other work | ||
Line 83: | Line 129: | ||
!Type!!Definition | !Type!!Definition | ||
|- | |- | ||
|<code>spotlight</code>||The '''Spotlight Shop''' section of the Shop | |<code>spotlight</code>||The '''Spotlight Shop''' section of the Shop | ||
|- | |- | ||
|<code>mii</code>||The '''Mii Racing Suit Shop''' section of the Shop | |<code>mii</code>||The '''Mii Racing Suit Shop''' section of the Shop | ||
|- | |- | ||
|<code>offer</code>||An in-game '''special offer' | |<code>offer</code>||An in-game '''special offer''' | ||
|} | |} | ||
If you fill the <code>type</code> parameter | If you fill the <code>type</code> 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. | ||
[[Category:Content templates]]</noinclude> | [[Category:Content templates]]</noinclude> |
Latest 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.