This template is used on approximately 3,200 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Preview message: Transclusion count updated automatically (see documentation). |
This template uses Lua: |
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 />
.{{Nihongo foot|English|英語|eigo}} <references /> |
English[1]
|
{{Nihongo foot|English|英語|eigo|group=nb}} <references group="nb" /> |
English[nb 1]
|
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 (10).
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
Parameter | Description | Type | Status | |
---|---|---|---|---|
English text | 1 | no description
| String | suggested |
Kana/kanji text | 2 | no description
| String | required |
Romanized (rōmaji) text | 3 | no description
| String | suggested |
Label writing systems | lead | If 'yes', shows "Japanese: ", etc., as leads
| String | optional |
First extra text | extra 4 | no description | String | optional |
Second extra text | extra2 5 | no description | String | optional |
Footnote reference group | group | no description | String | suggested |