Template:Nihongo: Difference between revisions

No edit summary
(Doc moved to subpage)
 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{#if:{{{1|}}}
<includeonly><span style="font-family:Kurokane">{{{1}}}</span>{{#if:{{{2|}}}|&#32;({{{2}}}<sup>[[wikipedia:Help:Multilingual support (East Asian)|?]]</sup>{{#if:{{{3|}}}|, <i>{{{3}}}</i>}}{{#if:{{{4|}}}|&#59; <abbr style="font-size:small" title="Literal translation">lit.</abbr> '{{{4}}}'}})}}</includeonly><noinclude>{{doc}}</noinclude>
|{{{1}}}
|{{#if:{{{3|}}}
  |<i>{{{3}}}</i>
}}
}}<span style="font-weight: normal">{{#if:{{{2|}}}{{#if:{{{1|}}}
  |{{{3|}}}
}}{{{4|}}}
|&#32;(
}}{{#if:{{{2|}}}
|{{#ifeq:{{yesno|{{{lead|}}}}}|yes
  |[[Japanese language|Japanese]]:&#32;
}}<span class="t_nihongo_kanji" lang="ja">{{{2}}}</span>
}}{{#if:{{{1|}}}
|{{#if:{{{3|}}}
  |{{#if: {{{2|}}}
  |<span class="t_nihongo_comma" style="display:none">,</span>&#32;
  }}{{#ifeq:{{yesno|{{{lead|}}}}}|yes
  |[[Hepburn romanization|Hepburn]]:&#32;}}<i>{{{3}}}</i>
  }}
}}{{#if: {{{2|}}}
  |<span class="t_nihongo_help noprint"><sup>[[wikipedia:Help:Installing Japanese character sets|<span class="t_nihongo_icon" style="color: #00e; font: bold 80% sans-serif; text-decoration: none; padding: 0 .1em;">?</span>]]</sup></span>
}}{{#if:{{{extra|{{{4|}}}}}}
|{{#if:{{#if:{{{3|}}}
  |{{{1|}}}
  }}{{{2|}}}
  |,
}} {{{extra|{{{4}}}}}}
}}{{#if:{{{2|}}}{{#if: {{{1|}}}
  |{{{3|}}}
}}{{{4|}}}
|)
}}{{#if:{{{extra2|{{{5|}}}}}}
|&#32;{{{extra2|{{{5}}}}}}
}}</span><noinclude>
{{documentation}}
</noinclude>

Latest revision as of 08:49, 24 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}}.) As the body text font used on Rhythm Heaven Wiki doesn't support heavier font weight, this template is a widely-used workaround to make a piece of text bold.
  • 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: {{Nihongo|Rhythm Heaven Fever|みんなのリズム天国|Minna no Rhythm Tengoku|Everyone's Rhythm Heaven}}
    • Output: Rhythm Heaven Fever (みんなのリズム天国?, Minna no Rhythm Tengoku; lit. 'Everyone's Rhythm Heaven')
  • 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')