Toggle menu
14
236
69
27.5K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 01:54, 25 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} {{COinS safe|n}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> {{TOC right}} === Usage === {{further|topic=when to use this template|Wikipedia:Manual of Style (Japan-related articles)}} ; Syntax {| CLASS="wikitable" |'''Code''' ||<code><nowiki>{{Nihongo2|Kanji}}</nowiki></code> |- |'''Gives'''|| {{Nihongo2|Kanji}} |} This template marks the <code>Kanji</code> segment as being in Japanese Kanji, which h...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:COinS safe

Usage

Syntax
Code {{Nihongo2|Kanji}}
Gives Template:Lang

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

With the parameter help set to a non-empty value, the template displays a help sign which links to an article describing the writing system.

Code {{Nihongo2|Kanji|help=yes}}
Gives Template:Lang?

Examples

Code In Japanese, {{Nihongo2|虚無僧}} reads ''komusō''.
Gives In Japanese, Template:Lang reads komusō.

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}}, also displays kanji properly, along with Romaji and optional notes, inside parentheses, with the English version before the parentheses.
  • {{Nihongo3}}, essentially the same as {{Nihongo}}, but gives Romaji first and English inside the parentheses
  • {{Nihongo krt}}, essentially the same as this template, but with rōmaji and English inside the parentheses
  • {{Nihongo-s}}, a simplified version of {{Nihongo}} without the extra spans or checks
  • {{Nihongo foot}}, same as {{Nihongo}}, but puts everything but the English into a footnote.


Marks text as Japanese, optionally displaying a help sign

Template parameters

ParameterDescriptionTypeStatus
Kanji/kana text1

no description

Stringrequired
helphelp

If given, shows a help link as superscript

Stringoptional