Jump to content

Help:Japanese/Editing

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jimp (talk | contribs) at 00:17, 20 December 2005. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Customisation

Note: To create your own CSS modifications for the default monobook skin, create a page at:

User:YourUserName/monobook.css

containing the CSS code you want to use.

This template, Nihongo, defines the following CSS classes:

  • t_nihongo_kanji
  • t_nihongo_comma
  • t_nihongo_romaji
  • t_nihongo_norom
  • t_nihongo_help
  • t_nihongo_icon

Examples

Desired effect CSS
Use "SimSun" font for kanji
.t_nihongo_kanji
{ font-family: SimSun; }
Hide kanji:
.t_nihongo_kanji
{ display: none; }
Show a comma between kanji and romaji:
.t_nihongo_comma
{ display: inline!important; }
Change the color of romaji:
.t_nihongo_romaji
{ color: blue; }
Always hide romaji:
.t_nihongo_romaji
{ display: none; }
Hide the link to this page:
.t_nihongo_help
{ display: none; }
Always display romaji:
.t_nihongo_norom
{ display: inline!important; }

Usage in articles

Syntax:

{{nihongo|English spelling|Japanese spelling|Romanization}}

All arguments are mandatory, however the final argument can be empty.

If no romanization is given the English spelling is taken to be the romanization, and it's not displayed by default.

If you want to use this template as the article title in an article lead, keep in mind that the bold markers (''') are wrapped around the entire template call, like this:

'''{{nihongo|Manga|漫画|}}''' is the
[[Japanese language|Japanese]] word
for [[comics]] and/or [[cartoons|cartoons]] …

This will display as:

Manga (漫画) is the Japanese word for comics and/or cartoons