Help:Japanese/Editing
Appearance
Customization
[edit]This help page needs to be updated. Please help update this help page to reflect recent events or newly available information. Relevant discussion may be found on the talk page. (April 2017) |
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
[edit]Desired effect | CSS |
---|---|
Use "Gothic" font for kanji |
.t_nihongo_kanji { font-family: Gothic; } |
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
[edit]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]] …
This will display as: