Navigation menu

Template:Foreignname: Difference between revisions

From Metroid Wiki
(Trying to add the color.)
(restore closing bracket until usage is removed)
 
(15 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| cellspacing=0 border=1 cellpadding=4 style="border-collapse:collapse #3b587e;"
<noinclude>
!Language
{|</noinclude>
!Name
!Meaning
|-
|-
{{#if:{{{Jap|}}}|{{!}}Japanese{{!}}{{!}}{{{Jap|}}}{{#if:{{{JapR|}}}|<br/>''{{{JapR}}}''}}{{!}}{{!}}{{{JapM|}}}}}
| {{{1|}}}
|-
| {{{2|}}}
{{#if:{{{Spa|}}}|{{!}}Spanish{{!}}{{!}}{{{Spa|}}}{{!}}{{!}}{{{SpaM|}}}}}
| {{{3|{{Hover|?|Currently Unknown}}}}}{{#if: {{{4|}}}|&nbsp;
|-
{{!)}}}}<noinclude>
{{#if:{{{SpaA|}}}|{{!}}Spanish&nbsp;(NOA){{!}}{{!}}{{{SpaA|}}}{{!}}{{!}}{{{SpaAM|}}}}}
|}
|-
{{clear}}
{{#if:{{{SpaE|}}}|{{!}}Spanish&nbsp;(NOE){{!}}{{!}}{{{SpaE|}}}{{!}}{{!}}{{{SpaEM|}}}}}
<noinclude>
|-
 
{{#if:{{{Fra|}}}|{{!}}French{{!}}{{!}}{{{Fra|}}}{{!}}{{!}}{{{FraM|}}}}}
==Usage==
|-
{{t|Foreignname|Language|Name|Meaning}}
{{#if:{{{FraA|}}}|{{!}}French&nbsp;(NOA){{!}}{{!}}{{{FraA|}}}{{!}}{{!}}{{{FraAM|}}}}}
 
|-
This template is to be used in conjunction with {{t|Foreignname-header}} and can only be used following said template. This template displays the Language, Name, and Meaning of a word in another language. This template is to be repeatedly used following {{t|Foreignname-header}} for each language. After the final row, close the table with <code>|}</code>.
{{#if:{{{FraE|}}}|{{!}}French&nbsp;(NOE){{!}}{{!}}{{{FraE|}}}{{!}}{{!}}{{{FraEM|}}}}}
 
|-
Words in languages that require a pronunciation guide, such as Japanese, can be placed within a {{t|Hover}} template that displays the English transliteration.
{{#if:{{{Dut|}}}|{{!}}Dut{{!}}{{!}}{{{Dut|}}}{{!}}{{!}}{{{DutM|}}}}}
 
|-
==Example==
{{#if:{{{Ger|}}}|{{!}}German{{!}}{{!}}{{{Ger|}}}{{!}}{{!}}{{{GerM|}}}}}
Here is an example of what the code and code yield is for the Japanese word for [[Chozo]]:
|-
 
{{#if:{{{Ita|}}}|{{!}}Italian{{!}}{{!}}{{{Ita|}}}{{!}}{{!}}{{{ItaM|}}}}}
<pre>
|-
{{Foreignname-header}}
{{#if:{{{Kor|}}}|{{!}}Korean{{!}}{{!}}{{{Kor|}}}{{#if:{{{KorR|}}}|<br/>''{{{KorR}}}''}}{{!}}{{!}}{{{KorM|}}}}}
{{Foreignname|Japanese|{{hover|鳥人族|Chōjinzoku}}|Bird-human race}}
|-
|}</pre>
{{#if:{{{Chi|}}}|{{!}}Chinese{{!}}{{!}}{{{Chi|}}}{{#if:{{{ChiR|}}}|<br/>''{{{ChiR}}}''}}{{!}}{{!}}{{{ChiM|}}}}}
 
|-
Yields:
{{#if:{{{Por|}}}|{{!}}Portuguese{{!}}{{!}}{{{Por|}}}{{!}}{{!}}{{{PorM|}}}}}
 
|}<noinclude>
{{Foreignname-header}}
This template allows putting information about the foreign names of article subjects and their respective meanings in that languages into an article. This template should follow the Trivia section of a page:
{{Foreignname|Japanese|{{hover|鳥人族|Chōjinzoku}}|Bird-human race|close}}
<pre>{{Foreignname|
|}
|Jap=鳥人族
|JapR=Chōjinzoku
|JapM=Bird-human race
}}</pre>
The language's abbreviation and M (for '''M'''eaning) are parameters for this template. For Japanese, Korean, and Chinese, an additional abbreviation + R ('''R'''omanized) can be used. The following languages are currently supported:
*'''Jap''' (JapM / JapR) - Japanese
*'''Spa''' (SpaM) - Spanish
*'''SpaA''' (SpaAM) - NOA Spanish
*'''SpaE''' (SpaEM) - NOE Spanish
*'''Fra''' (FraM) - French
*'''FraA''' (FraAM) - NOA French
*'''FraE''' (FraEM) - NOE French
*'''Ger''' (GerM) - German
*'''Ita''' (ItaM) - Italian
*'''Kor''' (KorM / KorR) - Korean
*'''Chi''' (ChiM / ChiR) - Chinese
*'''Dut''' (DutM) - Dutch
*'''Por''' (PorM) - Portuguese


[[Category: Notice Templates|{{PAGENAME}}]]</noinclude>
[[Category:Data Templates]]
</noinclude>

Latest revision as of 21:38, 11 April 2023

?


Usage[edit source]

{{Foreignname| Language | Name | Meaning }}

This template is to be used in conjunction with {{Foreignname-header}} and can only be used following said template. This template displays the Language, Name, and Meaning of a word in another language. This template is to be repeatedly used following {{Foreignname-header}} for each language. After the final row, close the table with |}.

Words in languages that require a pronunciation guide, such as Japanese, can be placed within a {{Hover}} template that displays the English transliteration.

Example[edit source]

Here is an example of what the code and code yield is for the Japanese word for Chozo:

{{Foreignname-header}}
{{Foreignname|Japanese|{{hover|鳥人族|Chōjinzoku}}|Bird-human race}}
|}

Yields:

Language Name Meaning
Japanese 鳥人族 Bird-human race 

|}