This template marks the Kanji
segment as being in Japanese kanji, which helps user agents (web browsers and so on) to display it correctly. It also applies the t_nihongo_kanji
CSS class. The footnote generated is called using the <references />
.
{{Nihongo foot|English|Kanji|Rōmaji|extra|extra2|post=,|group=group|ref_name=name}}<references group="group" />
Outputs:
English,[group 1]
extra=
extra2=
. It is only useful in ";" definitions (extra2 will be displayed without bold, whereas text following the template will get the bold).<references group="group" />
instead of the normal <references />
.User style can be set by adding code similar to
@media screen, tv {*[lang="ja"] {color: green;}}
or
@media screen, tv {.t_nihongo_kanji {color: green;}}
to your common.css.
This template emits one error message of its own:
One of the positional parameters <kanji/kana>
({{{2}}}
), the 'Japanese' referred to in the error message or <rōmaji>
({{{3}}}
) is required for proper operation of this template. Articles with these errors are collected in Category:Nihongo template errors (0).
This error often occurs because the template is malformed:
{{Nihongo foot|東京タワー}}
instead of {{Nihongo foot||東京タワー}}
; 東京タワー is in {{{1}}}
(<English>
) instead of {{{2}}}
(<kanji/kana>
). To resolve this error, add the missing pipe (|
).Because this template uses {{lang}}
and {{transl}}
which emit their own error messages, see the help text for those at:
{{lang}}
{{transl}}
Like {{Nihongo}}, allows kanji/kana and rōmaji text, but puts them in footnotes