Template:Languages: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
mNo edit summary
(New auto-hidden, floated-right template. Still not sure about the region colors.)
Line 1: Line 1:
<onlyinclude>{{Box|center|width=30em|title=In Other Languages}}
<onlyinclude>{{Box|right|width=258px|title=In Other Languages|titlealign=left|style=font-size: 80%;|hide=hide}}
{| width="100%" border="1" style="border-collapse: collapse"
{| width="100%" border="1" style="border-collapse: collapse"
|- style="background: #aaccff"
|- class="header"
! Version
! Version
! Name
! Name<!--
! Description<!--
-->{{#fornumargs: num | header | {{N}}
-->{{#if:{{{extra1|}}}|{{N}}
! {{#var:header}}
! {{{extra1|}}}}}<!--
}}{{#if:{{{jpn|}}}|{{N}}
-->{{#if:{{{extra2|}}}|{{N}}
{{!-}} style="color: red;"
! {{{extra2|}}}}}<!--
! class="label" {{!}} {{Region|jp|language}} {{/Row|{{{jpn}}}}}
-->{{{jpn|}}}<!--
}}{{#if:{{{eng|}}}|{{N}}
-->{{{usa|}}}<!--
{{!-}}
-->{{{eng|}}}<!--
! class="label" {{!}} {{Region|us|language}} {{/Row|{{{eng}}}}}
-->{{{fra|}}}<!--
|{{#if:{{{usa|}}}|{{N}}
-->{{{deu|}}}<!--
{{!-}} style="color: blue;"
-->{{{esp|}}}
! class="label" {{!}} {{Region|us|language}} {{/Row|{{{usa}}}}}
}}{{#if:{{{pal|}}}|{{N}}
{{!-}} style="color: green;"
! class="label" {{!}} {{Region|uk|language}} {{/Row|{{{pal}}}}}
}}}}{{#if:{{{fra|}}}|{{N}}
{{!-}}
! class="label" {{!}} {{Region|fr|language}} {{/Row|{{{fra}}}}}
|{{#if:{{{frc|}}}|{{N}}
{{!-}} style="color: blue;"
! class="label" {{!}} {{Region|ca|language}} {{/Row|{{{frc}}}}}
}}{{#if:{{{frf|}}}|{{N}}
{{!-}} style="color: green;"
! class="label" {{!}} {{Region|fr|language}} {{/Row|{{{frf}}}}}
}}}}{{#if:{{{esp|}}}|{{N}}
{{!-}}
! class="label" {{!}} {{Region|sp|language}} {{/Row|{{{esp}}}}}
|{{#if:{{{esl|}}}|{{N}}
{{!-}} style="color: blue;"
! class="label" {{!}} {{Region|la|language}} {{/Row|{{{esl}}}}}
}}{{#if:{{{ess|}}}|{{N}}
{{!-}} style="color: green;"
! class="label" {{!}} {{Region|sp|language}} {{/Row|{{{ess}}}}}
}}}}{{#if:{{{deu|}}}|{{N}}
{{!-}} style="color: green;"
! class="label" {{!}} {{Region|ge|language}} {{/Row|{{{deu}}}}}
}}{{#if:{{{ita|}}}|{{N}}
{{!-}} style="color: green;"
! class="label" {{!}} {{Region|it|language}} {{/Row|{{{ita}}}}}
}}{{#if:{{{kor|}}}|{{N}}
{{!-}} style="color: red;"
! class="label" {{!}} {{Region|kr|language}} {{/Row|{{{kor}}}}}
}}
|}
|}
{{Box/Bottom}}</onlyinclude>
{{Box/Bottom}}</onlyinclude>
Line 22: Line 53:


==Usage==
==Usage==
<pre>
Each anonymous argument is an additional column. Each named argument is an entire row, starting with the name, each cell separated by a backslash ('\').
{{Languages|extra1=|extra2=
 
|jpn={{Languages/JPN|name|description|extra1|extra2}}
<pre>{{Languages|additional|columns
|usa={{Languages/USA|name|description|extra1|extra2}}
| jpn = Name\Additional\Fields
|eng={{Languages/ENG|name|description|extra1|extra2}}
| eng = Name\Additional\Fields
|fra={{Languages/FRA|name|description|extra1|extra2}}
| esp = Name\Additional\Fields
|deu={{Languages/DEU|name|description|extra1|extra2}}
...
|esp={{Languages/ESP|name|description|extra1|extra2}}
}}</pre>
}}
 
</pre>
{| class="wikitable"
|-
! No Regions
! With Regions
|-
| <pre>{{Languages|
| jpn =
| eng =
| esp =
| fra =  
| deu =
| ita =
| kor =
}}</pre>
| <pre>{{Languages|
| jpn =
| usa =
| pal =
| ess =
| esl =
| frf =  
| frc =
| deu =
| ita =
| kor =
}}</pre>
|}
 
Each row is optional.
 
==Language Codes==
*'''jpn''' = Japanese
*'''jpn''' = Japanese
*'''usa''' = US English
*'''eng''' = English
*'''eng''' = PAL English
**'''usa''' = US English (if different from PAL)
**'''pal''' = PAL English (if different from US)
*'''esp''' = Spanish
**'''ess''' = European Spanish (Spain) (if different from Latin American)
**'''esl''' = Latin American Spanish (if different from European)
*'''fra''' = French
*'''fra''' = French
**'''frf''' = European French (France) (if different from Canadian)
**'''frc''' = Canadian French (if different from European)
*'''deu''' = German
*'''deu''' = German
*'''esp''' = Spanish
*'''ita''' = Italian
 
*'''kor''' = Korean
'''extra1''' and '''extra2''' are optional columns for additional information (i.e. something else about the subject that varies by region, like item price). Define the column names in the '''{{Lanugages|extra1=|extra2=''' line.  If the column is not used, leave it out. (i.e. '''{{Languages''')
 
Each row is also optional.




{{Cat|Box Templates}}
{{Cat|Box Templates}}