ഫലകം:Nihongo-expanded/വിവരണം

വിക്കിപീഡിയ, ഒരു സ്വതന്ത്ര വിജ്ഞാനകോശം.
Jump to navigation Jump to search


Usage[തിരുത്തുക]

This is an exact copy of Template:Nihongo, but it gives the language/alphabet used, so that people who don't know Japanese will be able to understand what this template says.

Syntax
Code {{Nihongo-expanded|English|Kanji|Romaji|extra|extra2}}
Gives English (Kanji: Kanji Rōmaji: Romaji?, extra) extra2

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

Parameters 1 and 2 are required. Parameters 4 and 5 can also be directly invoked with extra= and extra2=. Parameter extra2 is useful only in ";" definitions (extra2 will be displayed without bold, whereas text following the template will get the bold).

Examples[തിരുത്തുക]

Code {{Nihongo-expanded|'''Motojirō Kajii'''|梶井 基次郎|Kajii Motojirō|1901–1932}}
Gives Motojirō Kajii (Kanji: 梶井 基次郎 Rōmaji: Kajii Motojirō?, 1901–1932)

With extra2:

Code

; {{Nihongo-expanded|komusō|虚無僧|extra2="Priest of nothingness"}}
: Mendicant priest of the Fuke sect of Zen Buddhism.

Gives
komusō (Kanji: 虚無僧 ?) "Priest of nothingness"
Mendicant priest of the Fuke sect of Zen Buddhism.

Without extra2:

Code

; {{Nihongo-expanded|komusō|虚無僧}} "Priest of nothingness"
: Mendicant priest of the Fuke sect of Zen Buddhism.

Gives
komusō (Kanji: 虚無僧 ?) "Priest of nothingness"
Mendicant priest of the Fuke sect of Zen Buddhism.

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.

See also[തിരുത്തുക]

  • {{Nihongo}}, this template, but with the assumption that everyone on English Wikipedia understands how Japanese works.
  • {{Nihongo3}}, essentially the same as this template, but gives Romaji first and English inside the parentheses
  • {{Nihongo2}}, also displays the kanji properly, but without adding anything parentheses, without Romaji and without the extra parameters


"https://ml.wikipedia.org/w/index.php?title=ഫലകം:Nihongo-expanded/വിവരണം&oldid=321697" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്