Difference between revisions of "Template:Kana table"

From blackwiki
Jump to navigation Jump to search
imported>Crissov
imported>Crissov
Line 1: Line 1:
 
{| class="wikitable nowraplinks" style="{{{style|vertical-align: top; padding: 2px; empty-cells: hide; border-collapse: collapse;}}}"
 
{| class="wikitable nowraplinks" style="{{{style|vertical-align: top; padding: 2px; empty-cells: hide; border-collapse: collapse;}}}"
|+ {{#switch:{{{Kana}}}|Hira=Hiragana|Kana|Kata=Katakana|Hentai=Hentaigana|Hrkt|#default=Kana}} syllabograms {{{#if:{{{Latn|}}}|with {{{Latn}}}|without}} romanization {{#if:{{{IPA|}}}|and with [[Japanese phonology|pronunciation]] in [[International Phonetic Alphabet|IPA]]|}}
+
|+ {{#switch:{{{Kana}}}|Hira=Hiragana|Kana|Kata=Katakana|Hentai=Hentaigana|Hrkt|#default=Kana}} syllabograms {{#if:{{{Latn|}}}|with {{{Latn}}}|without}} romanization {{#if:{{{IPA|}}}|and with [[Japanese phonology|pronunciation]] in [[International Phonetic Alphabet|IPA]]|}}
 
|----------------------------------------------------------------------
 
|----------------------------------------------------------------------
 
!rowspan=2 width=5%|
 
!rowspan=2 width=5%|
{{#if:{{{monograph}}}|
+
{{#if:{{{monograph}}}=true|
 
!colspan=6 style="background:#BECFEB;"{{!}} [[gojūon|{{{gojuon|Monographs}}}]]
 
!colspan=6 style="background:#BECFEB;"{{!}} [[gojūon|{{{gojuon|Monographs}}}]]
 
|}}
 
|}}
{{#if:{{{digraph|}}}|
+
{{#if:{{{digraph|}}}=true|
 
!colspan=5 style="background:#D4D4D4;"{{!}} [[yōon|{{{yoon|Digraphs}}}]]
 
!colspan=5 style="background:#D4D4D4;"{{!}} [[yōon|{{{yoon|Digraphs}}}]]
 
|}}
 
|}}
 
|----------------------------------------------------------------------
 
|----------------------------------------------------------------------
{{#if:{{{monograph}}}|
+
{{#if:{{{monograph}}}=true|
 
!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|}}}|
+
{{#if:{{{digraph|}}}=true|
 
!width=8%{{!}} ''ya'' !!width=8%{{!}} ''yu'' !!width=8%{{!}} ''yo''
 
!width=8%{{!}} ''ya'' !!width=8%{{!}} ''yu'' !!width=8%{{!}} ''yo''
 
|}}
 
|}}
 
|----------------------------------------------------------------------
 
|----------------------------------------------------------------------
{{Kana row|C=|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|dropped={{{dropped|}}}|proposed={{{proposed|}}}|neutral={{{neutral}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
+
{{Kana row|C=|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
{{Kana row|C=k|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|dropped={{{dropped|}}}|proposed={{{proposed|}}}|neutral={{{neutral}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
+
{{Kana row|C=k|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
{{Kana row|C=s|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|dropped={{{dropped|}}}|proposed={{{proposed|}}}|neutral={{{neutral}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
+
{{Kana row|C=s|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
{{Kana row|C=t|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|dropped={{{dropped|}}}|proposed={{{proposed|}}}|neutral={{{neutral}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
+
{{Kana row|C=t|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
{{Kana row|C=n|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|dropped={{{dropped|}}}|proposed={{{proposed|}}}|neutral={{{neutral}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
+
{{Kana row|C=n|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
 
<!--n: {{#if:{{{IPA|}}}|{{IPA-ja|n|}} {{IPA-ja|m|}}{{IPA-ja|ŋ|}} before stop consonants, <br>{{IPA-ja|ɴ|}} {{IPA-ja|ũ͍|}} {{IPA-ja|ĩ|}} elsewhere|}} -->
 
<!--n: {{#if:{{{IPA|}}}|{{IPA-ja|n|}} {{IPA-ja|m|}}{{IPA-ja|ŋ|}} before stop consonants, <br>{{IPA-ja|ɴ|}} {{IPA-ja|ũ͍|}} {{IPA-ja|ĩ|}} elsewhere|}} -->
{{Kana row|C=h|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|dropped={{{dropped|}}}|proposed={{{proposed|}}}|neutral={{{neutral}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
+
{{Kana row|C=h|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
{{Kana row|C=m|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|dropped={{{dropped|}}}|proposed={{{proposed|}}}|neutral={{{neutral}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
+
{{Kana row|C=m|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
{{Kana row|C=y|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|dropped={{{dropped|}}}|proposed={{{proposed|}}}|neutral={{{neutral}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
+
{{Kana row|C=y|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|}}} }}
|{{included|}}{{Kana|ya|{{{Latn|-}}}|}} {{#if:{{{IPA|}}}|{{Kana|ya|IPA}}|}}
+
{{#if:{{{diacritics}}}=true|
|{{included|}}{{Kana|yu|{{{Latn|-}}}|}} {{#if:{{{IPA|}}}|{{Kana|yu|IPA}}|}}
 
|{{included|}}{{Kana|yo|{{{Latn|-}}}|}} {{#if:{{{IPA|}}}|{{Kana|yo|IPA}}|}}
 
-->
 
{{Kana row|C=r|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|dropped={{{dropped|}}}|proposed={{{proposed|}}}|neutral={{{neutral}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
 
{{Kana row|C=w|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|dropped={{{dropped|}}}|proposed={{{proposed|}}}|neutral={{{neutral}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
 
{{#if:{{{diacritics}}}|
 
 
!rowspan=2{{!}}
 
!rowspan=2{{!}}
{{#if:{{{monograph}}}|
+
{{#if:{{{monograph}}}=true|
 
!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|}}}|
+
{{#if:{{{digraph|}}}=true|
 
!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}}}|
+
{{#if:{{{monograph}}}=true|
 
!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|}}}|
+
{{#if:{{{digraph|}}}=true|
 
!width=8%{{!}} ''ya'' !!width=8%{{!}} ''yu'' !!width=8%{{!}} ''yo''
 
!width=8%{{!}} ''ya'' !!width=8%{{!}} ''yu'' !!width=8%{{!}} ''yo''
 
}}
 
}}
 
{{!}}----------------------------------------------------------------------
 
{{!}}----------------------------------------------------------------------
 
<!--{{#if:{{{iteration|}}} <big>{{#switch:{{{Kana}}}|Hira=[[ゞ]]|Kata=[[ヾ]]|Hrkt|#default=[[ゞ]] [[ヾ]]}}</big> (reduplicates and voices syllable) -->
 
<!--{{#if:{{{iteration|}}} <big>{{#switch:{{{Kana}}}|Hira=[[ゞ]]|Kata=[[ヾ]]|Hrkt|#default=[[ゞ]] [[ヾ]]}}</big> (reduplicates and voices syllable) -->
{{Kana row|C=g|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|dropped={{{dropped|}}}|proposed={{{proposed|}}}|neutral={{{neutral}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
+
{{Kana row|C=g|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
{{Kana row|C=z|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|dropped={{{dropped|}}}|proposed={{{proposed|}}}|neutral={{{neutral}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
+
{{Kana row|C=z|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
{{Kana row|C=d|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|dropped={{{dropped|}}}|proposed={{{proposed|}}}|neutral={{{neutral}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
+
{{Kana row|C=d|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
{{Kana row|C=b|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|dropped={{{dropped|}}}|proposed={{{proposed|}}}|neutral={{{neutral}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
+
{{Kana row|C=b|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
{{Kana row|C=p|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|dropped={{{dropped|}}}|proposed={{{proposed|}}}|neutral={{{neutral}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
+
{{Kana row|C=p|Kana={{{Kana}}}|monograph={{{monograph}}}|digraph={{{digraph|}}}|IPA={{{IPA|}}}|two={{{two|}}}|Latn={{{Latn|}}} }}
 
|}}
 
|}}
 
|}<noinclude>
 
|}<noinclude>
Line 65: Line 59:
 
<!--
 
<!--
 
orderCols=aeiou|aiueo
 
orderCols=aeiou|aiueo
orderRows=Vkstnhmyrwgzdbp|kstnhmyrwVgzdbp|Vkgsztdnhbpmyrw|kgsztdnhbpmyrwV|Vbdghkmnprstwz
+
orderRows=_kstnhmyrwgzdbp|kstnhmyrw_gzdbp|_kgsztdnhbpmyrw|kgsztdnhbpmyrw_|_bdghkmnprstwz
 
-->
 
-->
 +
== Test ==
 +
=== two=1|IPA=1|digraph=1|diacritics=1|gojuon=Gojūon|yoon=Yōon|dakuten=Dakuten ===
 +
{{Kana table|two=1|IPA=1|digraph=1|diacritics=1|gojuon=Gojūon|yoon=Yōon|dakuten=Dakuten}}
 +
=== monograph|digraph|diacritics ===
 +
{{Kana table|monograph|digraph|diacritics}}
 +
=== Kana=Kata|two=true ===
 +
{{Kana table|Kana=Kata|two=true}}
 +
=== Kana=Hira|two ===
 +
{{Kana table|Kana=Hira|two}}
 +
=== Kana=Latn|two=0 ===
 +
{{Kana table|Kana=Latn|two=0}}
 +
=== Kana=IPA ===
 +
{{Kana table|Kana=IPA}}
 +
=== two=true|Latn=Hepburn ===
 +
{{Kana table|two=true|Latn=Hepburn}}
  
{{Kana table|two=true|IPA=true|digraph=true}}
 
{{Kana table|monograph=false}}
 
 
</noinclude>
 
</noinclude>

Revision as of 12:26, 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