Template:Japanese vocabulary entry

From Wikibooks, open books for an open world
Jump to: navigation, search

Usage[edit]

This template uses a parser function to create the table start and finish. The general syntax is:

{{Japanese vocabulary entry|begin}}
{{Japanese vocabulary entry
 | english = 
 | japanese= 
 | reading = 
 | notes = 
}}
...
{{Japanese vocabulary entry|end}}

Only the variables english and japanese are required.

There are three further variables, style, en-style and ja-style, through which one can style the table row and -data.

Example[edit]

MediaWiki syntax Displays as
{{Japanese vocabulary entry|begin}}
{{Japanese vocabulary entry
 | english = Japan
 | japanese= 日本
 | reading = にほん, にっぽん
 | notes = There are two readings for ''Japan''. The
former is the more commonly used one, while the
latter is more formal and used for official purposes.
}}
{{Japanese vocabulary entry
 | english = language
 | japanese= 言語
 | romaji  = げんご
}}
{{Japanese vocabulary entry|end}}
English Japanese Reading Notes
Japan 日本 にほん, にっぽん There are two readings for Japan. The former is the more commonly used one, while the latter is more formal and used for official purposes.
language 言語 げんご