Difference between revisions of "Template:Kana table"

From blackwiki
Jump to navigation Jump to search
imported>Crissov
m
imported>Crissov
m
Line 3: Line 3:
 
|----------------------------------------------------------------------
 
|----------------------------------------------------------------------
 
!rowspan=2 width=5%|
 
!rowspan=2 width=5%|
{{#if:{{{monograph|1}}}=1|
+
{{#ifexpr:{{{monograph|1}}}=1|
 
!colspan=6 style="background:#BECFEB;"{{!}} [[gojūon|{{{gojuon|Monographs}}}]]
 
!colspan=6 style="background:#BECFEB;"{{!}} [[gojūon|{{{gojuon|Monographs}}}]]
 
|}}
 
|}}
{{#if:{{{digraph|0}}}=1|
+
{{#ifexpr:{{{digraph|0}}}=1|
 
!colspan=5 style="background:#D4D4D4;"{{!}} [[yōon|{{{yoon|Digraphs}}}]]
 
!colspan=5 style="background:#D4D4D4;"{{!}} [[yōon|{{{yoon|Digraphs}}}]]
 
|}}
 
|}}
 
|----------------------------------------------------------------------
 
|----------------------------------------------------------------------
{{#if:{{{monograph|1}}}=1|
+
{{#ifexpr:{{{monograph|1}}}=1|
 
!width=8%{{!}} ''a'' !!width=8%{{!}} ''i'' !!width=8%{{!}} ''u'' !!width=8%{{!}} ''e'' !!width=8%{{!}} ''o''
 
!width=8%{{!}} ''a'' !!width=8%{{!}} ''i'' !!width=8%{{!}} ''u'' !!width=8%{{!}} ''e'' !!width=8%{{!}} ''o''
 
!width=8%{{!}} ∅
 
!width=8%{{!}} ∅
 
|}}
 
|}}
{{#if:{{{digraph|0}}}=1|
+
{{#ifexpr:{{{digraph|0}}}=1|
 
!width=8%{{!}} ''ya'' !!width=8%{{!}} ''yu'' !!width=8%{{!}} ''yo''
 
!width=8%{{!}} ''ya'' !!width=8%{{!}} ''yu'' !!width=8%{{!}} ''yo''
 
|}}
 
|}}
Line 29: Line 29:
 
{{Kana row|C=r|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
 
{{Kana row|C=r|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
 
{{Kana row|C=w|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
 
{{Kana row|C=w|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
{{#if:{{{diacritics|0}}}=1|
+
{{#ifexpr:{{{diacritics|0}}}=1|
 
!rowspan=2{{!}}
 
!rowspan=2{{!}}
{{#if:{{{monograph|1}}}=1|
+
{{#ifexpr:{{{monograph|1}}}=1|
 
!colspan=6 style="background:#BECFEB;"{{!}} [[gojūon|{{{gojuon|Monographs}}}]] with [[dakuten|{{{dakuten|diacritics}}}]]
 
!colspan=6 style="background:#BECFEB;"{{!}} [[gojūon|{{{gojuon|Monographs}}}]] with [[dakuten|{{{dakuten|diacritics}}}]]
 
}}
 
}}
{{#if:{{{digraph|0}}}=1|
+
{{#ifexpr:{{{digraph|0}}}=1|
 
!colspan=5 style="background:#D4D4D4;"{{!}} [[yōon|{{{yoon|Digraphs}}}]] with [[dakuten|{{{dakuten|diacritics}}}]]
 
!colspan=5 style="background:#D4D4D4;"{{!}} [[yōon|{{{yoon|Digraphs}}}]] with [[dakuten|{{{dakuten|diacritics}}}]]
 
}}
 
}}
 
{{!}}----------------------------------------------------------------------
 
{{!}}----------------------------------------------------------------------
{{#if:{{{monograph|1}}}=1|
+
{{#ifexpr:{{{monograph|1}}}=1|
 
!width=8%{{!}} ''a'' !!width=8%{{!}} ''i'' !!width=8%{{!}} ''u'' !!width=8%{{!}} ''e'' !!width=8%{{!}} ''o''
 
!width=8%{{!}} ''a'' !!width=8%{{!}} ''i'' !!width=8%{{!}} ''u'' !!width=8%{{!}} ''e'' !!width=8%{{!}} ''o''
 
!width=8%{{!}} ∅
 
!width=8%{{!}} ∅
 
}}
 
}}
{{#if:{{{digraph|1}}}=1|
+
{{#ifexpr:{{{digraph|1}}}=1|
 
!width=8%{{!}} ''ya'' !!width=8%{{!}} ''yu'' !!width=8%{{!}} ''yo''
 
!width=8%{{!}} ''ya'' !!width=8%{{!}} ''yu'' !!width=8%{{!}} ''yo''
 
}}
 
}}

Revision as of 12:39, 13 December 2011

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

Parameters

Kana := Hira | Kata | Hrkt | ∅ if set with no value nothing is displayed, if not set both are displayed. It is handed through to {{Kana}}.
Latn := Hepburn | Kunrei | Nippon | . It is handed through to {{Kana}}.
IPA, a switch turning on the display of IPA
two, a switch turning on the second row for romanization and phonetic information. Don’t forget it!
iteration, a switch turning on the display of iteration marks in the table
Gojuon, a switch turning off monographs — not implemented yet!
Yoon, a switch turning on digraphs — not implemented yet!
Dakuten, a switch turning on diacritics — not implemented yet!

Most Hepburn character transcriptions will work as expected with {{Kana}}, but it is better to rely on identifiers derived from the “50 sound” table, e.g. tu instead of tsu.

Test

two=1|IPA=1|digraph=1|diacritics=1|gojuon=Gojūon|yoon=Yōon|dakuten=Dakuten

monograph|digraph|diacritics

Kana=Kata|two=true

Kana=Hira|two

Kana=Latn|two=0

Kana=IPA

two=true|Latn=Hepburn