|
|
| Line 1: |
Line 1: |
| <includeonly><span style="font-family:Kurokane">{{{1}}}</span>{{#if:{{{2|}}}| ({{{2}}}<sup>[[wikipedia:Help:Multilingual support (East Asian)|?]]</sup>{{#if:{{{3|}}}|, <i>{{{3}}}</i>}}{{#if:{{{4|}}}|; <abbr style="font-size:small" title="Literal translation">lit.</abbr> '{{{4}}}'}})}}</includeonly><noinclude>{{doc|content= | | <includeonly><span style="font-family:Kurokane">{{{1}}}</span>{{#if:{{{2|}}}| ({{{2}}}<sup>[[wikipedia:Help:Multilingual support (East Asian)|?]]</sup>{{#if:{{{3|}}}|, <i>{{{3}}}</i>}}{{#if:{{{4|}}}|; <abbr style="font-size:small" title="Literal translation">lit.</abbr> '{{{4}}}'}})}}</includeonly><noinclude>{{doc}}</noinclude> |
| {{tc|Nihongo|<nowiki><1>|<2>|<3>|<4></nowiki>}} yields: {{Nihongo|<1>|<2>|<3>|<4>}}
| |
| * <1> is rendered in {{Nihongo|Kurokane}} font.
| |
| * <2> (optional) is enclosed in a pair of parentheses that follow <1>. A superscripted question mark is appended to <2>; it links to [[wikipedia:Help:Multilingual support (East Asian)]] and helps readers with character set issues.
| |
| * <3> (optional) follows <2>, rendered italic.
| |
| * <4> (optional) follows <3>, indicating a literal translation.
| |
| This template is suitable for following occasions:
| |
| * Just pass a piece of text as <1>, if you just want it to be rendered in {{Nihongo|Kurokane}}. (This Kurokane word is made from {{tc|Nihongo|Kurokane}})
| |
| * Pass an English name as <1>, a Japanese name as <2>, its rōmaji as <3> and its meaning as <4>. This is the usage recommended by [[wikipedia:Template:Nihongo|Template:Nihongo]] on Wikipedia.
| |
| ** Example: {{tc|Nihongo|<nowiki>Karate Man|カラテ家|Karateka</nowiki>}}
| |
| ** Output: {{Nihongo|Karate Man|カラテ家|Karateka}}.
| |
| * Pass a Latin transcription as <1>, a CJK name as <2> and its meaning as <4>, leaving <3> blank.
| |
| ** Example: {{tc|Nihongo|<nowiki>Jiézòu Tiānguó: Qíjì Zhī Xīng|节奏天国 奇迹之星||Rhythm Heaven: Miracle Stars</nowiki>}}
| |
| ** Output: {{Nihongo|Jiézòu Tiānguó: Qíjì Zhī Xīng|节奏天国 奇迹之星||Rhythm Heaven: Miracle Stars}}
| |
| }}[[Category:Formatting templates]]</noinclude>
| |