Template:Multilang profile: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
No edit summary
Line 2: Line 2:
|{{#switch:{{{type}}}
|{{#switch:{{{type}}}
|website='''Website bio:'''
|website='''Website bio:'''
|manual='''Instruction booklet bio:'''
|e-manual='''Electronic manual bio:'''
|spotlight='''Spotlight Shop description:'''
|spotlight='''Spotlight Shop description:'''
|mii='''Mii Racing Suit Shop description:'''
|mii='''Mii Racing Suit Shop description:'''
Line 7: Line 9:
}}
}}
|-
|-
|valign=top|<div class="columns" style="column-count:2"><!--
|valign=top|{{#if:{{{nodiv|}}}||<div class="columns" style="column-count:2">}}<!--
-->{{#if:{{{Eng|}}}|*'''English:'''<br>''{{{Eng}}}''}}<!--
-->{{#if:{{{Eng|}}}|*'''English:'''<br>''{{{Eng}}}''}}<!--
-->{{#if:{{{Jap|}}}|*'''Japanese:'''<br>{{{Jap}}}}}<!--
-->{{#if:{{{Jap|}}}|*'''Japanese:'''<br>{{{Jap}}}}}{{#if:{{{JapM|}}}|<br>''{{{JapM}}}''}}<!--
-->{{#if:{{{ChiS|}}}|*'''Simplified Chinese:'''<br>{{{ChiS}}}}}<!--
-->{{#if:{{{ChiS|}}}|*'''Simplified Chinese:'''<br>{{{ChiS}}}}}<!--
-->{{#if:{{{ChiT|}}}|*'''Traditional Chinese:'''<br>{{{ChiT}}}}}<!--
-->{{#if:{{{ChiT|}}}|*'''Traditional Chinese:'''<br>{{{ChiT}}}}}<!--
Line 51: Line 53:
</pre>
</pre>


'''Note:''' To account for different localizations across regions with the same majority language, the template has parameters for language varieties, such as '''<tt>SpaA</tt>''' (Latin American Spanish) and '''<tt>SpaE</tt>''' (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. '''<tt>Spa</tt>''' (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.
;Notes:
*By default, the list of descriptions is split into two columns. To arrange the descriptions on a single column, add a <code>nodiv</code> parameter and set its value to "1".
*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 ===
=== Type parameter ===
Line 57: Line 61:


{|border=1 cellpadding=3 cellspacing=0 style="border-collapse:collapse; border-color:#f77; background:#fee; margin-top:10px"
{|border=1 cellpadding=3 cellspacing=0 style="border-collapse:collapse; border-color:#f77; background:#fee; margin-top:10px"
!colspan=2 style="background:#faa"|General
|-
!Type!!Definition
!Type!!Definition
|-
|-
|<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
|-
|<code>manual</code>||The physical '''instruction booklet''' of a game
|-
|<code>e-manual</code>||The '''electronic manual''' of a game
|-
!colspan=2 style="background:#faa"|''Mario Kart Tour''
|-
!Type!!Definition
|-
|-
|<code>spotlight</code>||The '''Spotlight Shop''' section of the Shop in ''Mario Kart Tour''
|<code>spotlight</code>||The '''Spotlight Shop''' section of the Shop in ''Mario Kart Tour''

Revision as of 15:22, September 14, 2023

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.

Usage

{{Multilang profile
|Eng=
|Jap=
|ChiS=
|ChiT=
|Dut=
|Fre=
|FreA=
|FreE=
|Ger=
|Ita=
|Kor=
|Por=
|PorA=
|PorE=
|Spa=
|SpaA=
|SpaE=
}}
Notes
  • By default, the list of descriptions is split into two columns. To arrange the descriptions on a single column, add a nodiv parameter and set its value to "1".
  • 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) and SpaE (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 paramater can be set to one of several values to specify the origin of these descriptions at the top of the list:

General
Type Definition
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
Mario Kart Tour
Type Definition
spotlight The Spotlight Shop section of the Shop in Mario Kart Tour
mii The Mii Racing Suit Shop section of the Shop in Mario Kart Tour
offer An in-game special offer from Mario Kart Tour