Open main menu
[вироиш] Template-info.svg Ҳуҷҷатҳои шаблон
Information.svg Ҳуҷҷатҳо

UsageВироиш

Syntax
{{Nihongo foot|English|Kanji|Rōmaji|extra|extra2|group=group}}

<references group="group" />
English[group 1]
  1. Kanji&#32;Rōmaji, extra &#32;extra2

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 />

Parameters
  • English. Optional. The word as translated into English. Note that this will sometimes be the actual Japanese word due to it being adopted into English.
  • Kanji. Required. The word in Japanese kanji and/or kana, the logographic writing system.
  • Romaji. Optional. The word in Japanese Romaji, the Romanized syllabic writing system used for foreign words. Also known as a "transliteration".
  • extra. Optional. Can also be expressed as a named parameter, extra=
  • extra2. Optional. Can also be expressed as a named parameter, extra2=. It is only useful in ";" definitions (extra2 will be displayed without bold, whereas text following the template will get the bold).
  • group. Optional. Can be used to define a custom references group. The group is then called by using <references group="group" /> instead of the normal <references />
  • lead=yes. Optional. This should be used for the first instance, usually a footnote in the lead. It gives the reader an idea what kind of non-English writing they are viewing.

ExamplesВироиш

Regular useВироиш

{{Nihongo foot|English|英語|eigo}}

<references />
English[1]
  1. 英語&#32;eigo

With group definedВироиш

{{Nihongo foot|English|英語|eigo|group=nb}}

<references group="nb" />
English[nb 1]
  1. 英語&#32;eigo

User styleВироиш

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 common.css.

See alsoВироиш

  • {{Nihongo}}, original: generates everything that is in a footnote inside parenthesis
  • {{Nihongo3}}, essentially the same as {{Nihongo}}, but gives Romaji first and English inside the parentheses
  • {{Nihongo2}}, also displays the kanji properly, but without adding anything in parentheses, without Romaji and without the extra parameters
  • {{Nihongo-s}}, a simplified version of {{Nihongo}} without the extra spans or checks
https://tg.m.wikipedia.org/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Nihongo_foot
tg.m.wikipedia.org
crawl=CC-MAIN-2019-35
31145
application/http; msgtype=response
sha1:EF3KV4776J73TOPADCKR6E6P7SIDZL3P
<urn:uuid:2966b979-0079-40c2-a30f-87d4a5af0c01>
2019-08-24T11:22:45Z
208.80.154.224
text/html
sha1:IPZHGCASPLDQA6TV7FNTYJ7FG7IN6H3N
<urn:uuid:9a7bab84-cd47-44b3-80e8-97fa53b8625b>
https://tg.m.wikipedia.org/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Nihongo_foot
response
<urn:uuid:dc4a0ede-cbe8-48ee-9117-d89ecb7fc47a>
isPartOf: CC-MAIN-2019-35
publisher: Common Crawl
description: Wide crawl of the web for August 2019
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-156.ec2.internal
software: Apache Nutch 1.15 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.1-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: http://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/