Template:Nihongo: Difference between revisions
Jump to navigation
Jump to search
HyperNervie (talk | contribs) (Add inline doc) |
HyperNervie (talk | contribs) (Add a fourth parameter to indicate a literal meaning) |
||
| Line 1: | Line 1: | ||
<includeonly><span style="font-family:Kurokane">{{{1}}}</span>{{#if:{{{2|}}}| ({{{2}}}<sup>[[wikipedia:Help: | <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= | ||
{{ | {{tc|Nihongo|<nowiki><1>|<2>|<3>|<4></nowiki>}} yields: {{Nihongo|<1>|<2>|<3>|<4>}} | ||
* <1> is rendered in {{Nihongo|Kurokane}} font. | * <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: | * <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. | * <3> (optional) follows <2>, rendered italic. | ||
* <4> (optional) follows <3>, indicating a literal translation. | |||
This template is suitable for following occasions: | This template is suitable for following occasions: | ||
* Just pass | * 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> and its | * 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. | ||
* Pass a Latin transcription as <1>, a CJK name as <2> and its meaning as <3>. Example: {{ | ** 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> | }}[[Category:Formatting templates]]</noinclude> | ||
Revision as of 19:17, 23 September 2025
{{Nihongo|<1>|<2>|<3>|<4>}} yields: <1> (<2>?, <3>; lit. '<4>')
- <1> is rendered in 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 Kurokane. (This Kurokane word is made from
{{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 Template:Nihongo on Wikipedia.
- Example:
{{Nihongo|Karate Man|カラテ家|Karateka}} - Output: Karate Man (カラテ家?, Karateka).
- Example:
- Pass a Latin transcription as <1>, a CJK name as <2> and its meaning as <4>, leaving <3> blank.
- Example:
{{Nihongo|Jiézòu Tiānguó: Qíjì Zhī Xīng|节奏天国 奇迹之星||Rhythm Heaven: Miracle Stars}} - Output: Jiézòu Tiānguó: Qíjì Zhī Xīng (节奏天国 奇迹之星?; lit. 'Rhythm Heaven: Miracle Stars')
- Example: