Template:Eigo/doc

Usage

 * Syntax

This template marks the  segment as being in Japanese Kanji, which helps web browsers display it correctly. It also applies it the t_nihongo_kanji CSS style class.

The optional y?= parameter gives the option of turning on the Japanese language character sets installation help, shown as a link of a superscript question mark:. This superscript question mark help link is not shown by default in this template's output because most computers nowadays can automatically properly display Japanese characters (when this template was first written that was not so common) and because this template primarily outputs the kanji, so is used in places in articles on Japanese subjects where Japanese characters would already have been relatively commonly used via other templates, such as the template used in the opening line for Japanese articles to introduce the Japanese original text of the name of the article. The template (& ) has the superscript question mark help link on by default, therefore the reader would always have already had the opportunity to use the superscript question mark help link from those first occurrences of it, if their display was not rendering Japanese character sets.

Examples
A name with :

A sentence with  and   giving a superscript question mark:, a link to Japanese character set help:

User style
User style can be set by adding code similar to


 * *[lang=ja] { color: green; font-family: Arial; }

or


 * .t_nihongo_kanji { color: green; font-family: Arial; }

to common.css.