Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Examples  







2 User style  





3 Error messaging  





4 See also  














Template:Nihongo3






العربية
Azərbaycanca

 / Bân-lâm-gú
Беларуская (тарашкевіца)
Bikol Central
Català
Ελληνικά
فارسی
Ilokano
Bahasa Indonesia
Jawa
Ladin
Македонски

Bahasa Melayu

Português
Русский
Scots

Slovenščina
کوردی
Српски / srpski
Tagalog
ி

Tiếng Vit

 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


Usage

This template is basically the same as {{Nihongo}}, except that it reverses the order of the English and Rōmaji items' display, and relies on a little bit of manual formatting for italics and quotation marks; its handling of Kanji (and/or Kana) is the same as that of {{Nihongo}}.

This template is useful when one is addressing a Japanese term directly instead of providing a Japanese translation for an English one, i.e. 'Japanese term in Rōmaji (Kanji version, "English translation")', instead of 'English term (Kanji version, Japanese translation in Rōmaji)'.


Syntax:

{{Nihongo3|<english>|<kanji/kana>|<rōmaji>|<extra>|<extra2>}}

Parameters:

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

Parameters 1, 2 and 3 are required, but the first may be blank (e.g. if the Kanji/Kana and Rōmaji are known but the English is not, use {{Nihongo3||<{{var|kanji/kana}}>|<{{var|rōmaji}}>}}. Using the template without the Rōmaji and Kanji version is essentially pointless, and will result in a useless or worse-than-useless display. Parameters 4 and 5 can also be directly invoked with |extra= and |extra2=. Parameter |extra2= is useful only in ";" definitions (|extra2='s content will be displayed without bold, whereas text following the template will get the bold); see below for a concrete example.

Please note:

See examples below for usage hints.

Examples

Code {{Nihongo3|Western: '''Motojiro Kajii'''|梶井 基次郎|'''Kajii Motojirō'''|1901–1932}}
Gives Kajii Motojirō (梶井 基次郎, Western: Motojiro Kajii, 1901–1932)

With extra2:

Code

; {{Nihongo3|'priest of nothingness'|虚無僧|komusō|extra2=[religion]}}
: Mendicant priest of the Fuke sect of Zen Buddhism.

Gives
komusō (虚無僧, 'priest of nothingness') [religion]
Mendicant priest of the Fuke sect of Zen Buddhism.

The extra2 parameter can be used for links, reference footnote citations, etc.

Without extra2 (and probably not the desired effect):

Code

; {{Nihongo3|'priest of nothingness'|虚無僧|komusō}} [religion]
: Mendicant priest of the Fuke sect of Zen Buddhism.

Gives
komusō (虚無僧, 'priest of nothingness') [religion]
Mendicant priest of the Fuke sect of Zen Buddhism.

Example of usage when it is not clear from the context that Japanese is the language in question:

Code

{{Nihongo3|Japanese for 'four balls'|四つ球|'''yotsudama'''}}

Gives

yotsudama (四つ球, Japanese for 'four balls')

Do not use Japanese: 'English version' for a case like this, as this colon formatting is used by Wikipedia language templates to indicate that the material that follows the colon is in the language mentioned before the colon, and this different use of this formatting will confuse readers. Use "for" or some other clear wording instead. Also, do not use {{Lang-ja|"English version"}} (which renders as Japanese: "English version"); this even more explicitly signals that the material following the language name is in that language, and the text will appear (as it does in that example) in a different font.

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; }

tocommon.css.

Error messaging

This template emits one error message of its own:

error: {{nihongo3}}: Japanese or romaji text required

One of the positional parameters <kanji/kana> ({{{2}}}), the 'Japanese' referred to in the error message or <rōmaji> ({{{3}}}) is required for proper operation of this template. Articles with these errors are collected in Category:Nihongo template errors (0).

This error often occurs because the template is malformed:

{{Nihongo3|東京タワー}} instead of {{Nihongo3||東京タワー}}; 東京タワー is in {{{1}}} (<english>) instead of {{{2}}} (<kanji/kana>). To resolve this error, add the missing pipe (|) or consider using {{lang}}or{{transl}}

Because this template uses {{lang}} and {{transl}} which emit their own error messages, see the help text for those at:

Category:Lang and lang-xx template errors – for error messages emitted by {{lang}}
Category:Transliteration template errors – for error messages emitted by {{transl}}

See also

Like {{Nihongo}} but lists '''rōmaji''' first

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
English translation1

English translation of the Japanese term, but can be blank

Example
priest of nothingness
Stringrequired
Kanji/kana2

no description

Example
虚無僧
Stringrequired
Rōmaji3

no description

Example
komusō
Stringrequired
extra text in parenthesesextra 4

no description

Stringoptional
extra text after parenthesesextra2 5

no description

Stringoptional

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Nihongo3&oldid=978907715"

Categories: 
Lua-based templates
Japonic multilingual support templates
WikiProject Japan templates
Hidden categories: 
Wikipedia semi-protected templates
Templates not safe for use in citation templates
 



This page was last edited on 17 September 2020, at 17:05 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki