Template:Kana

From blackwiki
Jump to navigation Jump to search

[[{{{1}}}]] [[{{{1}}}]]

Template documentation[view] [edit] [history] [purge]

This template takes two parameters. The first is the name or transcription of a Japanese Kana character in roman letters. The second parameter specifies the output and is optional. Its supported values are listed below, the default is Hrkt. The additional third parameter should be used by name, either spacer for the text string between Hiragana and Katakana characters or phon for an override of the automatic phonetic transcription.

Hira
hands the first parameter to {{Hiragana}}
Kata
hands the first parameter to {{Katakana}}
Hentai
hands the first parameter to {{Hentaigana}} — not implemented yet!
Hrkt or
nothing
hands the first parameter to both, {{Hiragana}} and {{Katakana}} and puts the contents of spacer in between, defaulting to the ideographic space (U+3000)
Latn or
Roman
currently only provides a link to the article on the kana specified
-
explicitly outputs nothing

The output of Kana characters always is in a bigger font size and falls back to displaying the first parameter.

In many instances you might want to use this template with subst:.

Examples
{{Kana|mu|Hira}}
{{Kana|n|Kata}}
{{Kana|tu}}  
{{Kana|ri|Hrkt}}  
{{Kana|di|Latn}} di
{{Kana|ji|Latn}} ji
{{Kana|ka}}  
{{Kana|su|Hira|,}}
{{Kana|ra|spacer=, }}
{{Kana|ha|IPA}} ha
{{Kana|shi|IPA}} ɕi
{{Kana|si|IPA|phon=ʃi}} ʃi
{{Kana|n}}  
{{Kana|choon}}  
{{Kana|dot}} dot 
{{Kana|sokuon}}  
{{Kana|voiced iteration}}