Difference between revisions of "Template:Katakana table/doc"

From blackwiki
Jump to navigation Jump to search
imported>Crissov
(→‎Usage: <templatedata>)
Line 48: Line 48:
 
* {{para|iteration mark|<nowiki><big>[[ヽ]]</big><br>(reduplicates and<br>unvoices syllable)</nowiki>}}
 
* {{para|iteration mark|<nowiki><big>[[ヽ]]</big><br>(reduplicates and<br>unvoices syllable)</nowiki>}}
 
* {{para|voiced iteration mark|<nowiki><big>[[ヾ]]</big><br>(reduplicates and<br>voices syllable)</nowiki>}}
 
* {{para|voiced iteration mark|<nowiki><big>[[ヾ]]</big><br>(reduplicates and<br>voices syllable)</nowiki>}}
 +
 +
 +
<templatedata>{
 +
"description": "This template shows a table of katakana syllabograms. Usually, it would be used without parameters.",
 +
"params": {
 +
  "legend": {
 +
    "description": "Explanation of colors used",
 +
    "default": "{{colorbox|{{{obsolete color}}}|Grey background}} indicates obsolete characters.",
 +
    "type": "string"
 +
  },
 +
  "gojuon header color": {
 +
    "description": "background color for header cells, any valid CSS color",
 +
    "default": "#BECFEB",
 +
    "type": "string"
 +
  },
 +
  "yoon header color": {
 +
    "description": "background color for header cells, any valid CSS color",
 +
    "default": "#D4D4D4",
 +
    "type": "string"
 +
  },
 +
  "normal color": {
 +
    "description": "background color for data cells, any valid CSS color",
 +
    "default": "#EFFAFA",
 +
    "type": "string"
 +
  },
 +
  "unused color": {
 +
    "description": "background color for data cells, any valid CSS color",
 +
    "default": "#EFFAFA",
 +
    "type": "string"
 +
  },
 +
  "etymologic color": {
 +
    "description": "background color for data cells, any valid CSS color",
 +
    "default": "#EFFAFA",
 +
    "type": "string"
 +
  },
 +
  "obsolete color": {
 +
    "description": "background color for data cells, any valid CSS color",
 +
    "default": "#E9E9E9",
 +
    "type": "string"
 +
  },
 +
  "yoon color": {
 +
    "description": "background color for data cells, any valid CSS color",
 +
    "default": "#F3F5DE",
 +
    "type": "string"
 +
  },
 +
 +
  "unused": {
 +
    "label": "",
 +
    "description": "reference group name ffor <ref> tags",
 +
    "default": "unused",
 +
    "type": "string"
 +
  },
 +
  "obsolete": {
 +
    "label": "",
 +
    "description": "reference group name ffor <ref> tags",
 +
    "default": "obsolete",
 +
    "type": "string"
 +
  },
 +
  "etymologic": {
 +
    "label": "",
 +
    "description": "reference group name ffor <ref> tags",
 +
    "default": "etymologic",
 +
    "type": "string"
 +
  },
 +
 +
  "yi": {
 +
    "label": "",
 +
    "description": "followed by <ref name=\"{{{unused}}}\"|group=\"n\"/>",
 +
    "default": "",
 +
    "type": "string"
 +
  },
 +
  "ye": {
 +
    "label": "",
 +
    "description": "followed by <ref name=\"{{{unused}}}\"|group=\"n\"/>",
 +
    "default": "",
 +
    "type": "string"
 +
  },
 +
  "wu": {
 +
    "label": "",
 +
    "description": "followed by <ref name=\"{{{unused}}}\"|group=\"n\"/>",
 +
    "default": "",
 +
    "type": "string"
 +
  },
 +
 +
  "wi": {
 +
    "label": "",
 +
    "description": "followed by <ref name=\"{{{obsolete}}}\" group=\"n\"/>",
 +
    "default": "[[Wi (kana)|<big>ヰ</big>]]<br>wi{{IPA-ja|i|}}",
 +
    "type": "string"
 +
  },
 +
  "we": {
 +
    "label": "",
 +
    "description": "followed by <ref name=\"{{{obsolete}}}\" group=\"n\"/>",
 +
    "default": "[[We (kana)|<big>ヱ</big>]]<br>we{{IPA-ja|e|}}",
 +
    "type": "string"
 +
  },
 +
  "wo": {
 +
    "label": "",
 +
    "description": "followed by <ref name=\"{{{obsolete}}}\" group=\"n\"/>",
 +
    "default": "<big>[[Wo (kana)|ヲ]]</big><br>wo {{IPA-ja|o|}}",
 +
    "type": "string"
 +
  },
 +
 +
  "di": {
 +
    "label": "",
 +
    "description": "followed by <ref name=\"{{{etymologic}}}\" group=\"n\"/>",
 +
    "default": "<big>ヂ</big><br>ji {{IPA-ja|d͡ʑi|}}",
 +
    "type": "string"
 +
  },
 +
  "du": {
 +
    "label": "",
 +
    "description": "followed by <ref name=\"{{{etymologic}}}\" group=\"n\"/>",
 +
    "default": "<big>ヅ</big><br>zu {{IPA-ja|zu͍|}}",
 +
    "type": "string"
 +
  },
 +
  "dya": {
 +
    "label": "",
 +
    "description": "followed by <ref name=\"{{{etymologic}}}\" group=\"n\"/>",
 +
    "default": "<big>ヂャ</big><br>ja {{IPA-ja|d͡ʑa|}}",
 +
    "type": "string"
 +
  },
 +
  "dyu": {
 +
    "label": "",
 +
    "description": "followed by <ref name=\"{{{etymologic}}}\" group=\"n\"/>",
 +
    "default": "<big>ヂュ</big><br>ju {{IPA-ja|d͡ʑu͍|}}",
 +
    "type": "string"
 +
  },
 +
  "dyo": {
 +
    "label": "",
 +
    "description": "followed by <ref name=\"{{{etymologic}}}\" group=\"n\"/>",
 +
    "default": "<big>ヂョ</big><br>jo {{IPA-ja|d͡ʑo|}}",
 +
    "type": "string"
 +
  },
 +
  "n": {
 +
    "label": "",
 +
    "description": "",
 +
    "default": "<big>[[N (kana)|ン]]</big><br>n {{IPA-ja|n|}} {{IPA-ja|m|}} {{IPA-ja|ŋ|}} before stop consonants;<br /> n{{IPA-ja|ɴ|}}{{IPA-ja|ũ͍|}}{{IPA-ja|ĩ|}} elsewhere",
 +
    "type": "string"
 +
  },
 +
 +
  "sokuon": {
 +
    "label": "",
 +
    "description": "",
 +
    "default": "<big>[[Sokuon|ッ]]</big><br />(before [[geminate]] consonant)",
 +
    "type": "string"
 +
  },
 +
  "choonpu": {
 +
    "label": "",
 +
    "description": "",
 +
    "default": "<big>[[Chōonpu|ー]]</big><br />(after long vowel)",
 +
    "type": "string"
 +
  },
 +
  "iteration mark": {
 +
    "label": "",
 +
    "description": "",
 +
    "default": "<big>[[ヽ]]</big><br />(reduplicates and unvoices syllable)",
 +
    "type": "string"
 +
  },
 +
  "voiced iteration mark": {
 +
    "label": "",
 +
    "description": "",
 +
    "default": "<big>[[ヾ]]</big><br />(reduplicates and voices syllable)",
 +
    "type": "string"
 +
  },
 +
 +
  "unused text": {
 +
    "description": "text in explanatory notes",
 +
    "default": "Theoretical combinations ''yi'', ''ye'' and ''wu'' are {{colorbox|{{{unused color}}}|unused}}.",
 +
    "type": "string"
 +
  },
 +
 +
  "obsolete text": {
 +
    "description": "text in explanatory notes",
 +
    "default": "The characters in positions ''wi'' and ''we'' are {{colorbox|{{{obsolete color}}}|obsolete}} in modern Japanese, and have been replaced by イ (''i'') and エ (''e''). The character ''wo'', in practice normally pronounced ''o'', is preserved in only one use: as a particle. This is normally written in hiragana (を), so katakana ヲ sees only limited use. See [[Gojūon]] and the articles on each character for details.",
 +
    "type": "string"
 +
  },
 +
 +
  "etymologic text": {
 +
    "description": "text in explanatory notes",
 +
    "default": "The ヂ (''di'') and ヅ (''du'') kana (often romanised as ''ji'' and ''zu'') are primarily used for {{colorbox|{{{etymologic color}}}|etymologic spelling}}, when the unvoiced equivalents チ (''ti'') and ツ (''tu'') (often romanised as ''chi'' and ''tsu'') undergo a sound change (''[[rendaku]]'') and become voiced when they occur in the middle of a compound word. In other cases, the identically-pronounced ジ (''ji'') and ズ (''zu'') are used instead. ヂ (''di'') and ヅ (''du'') can never begin a word, and they are not common in katakana, since the concept of ''rendaku'' does not apply to transcribed foreign words, one of the major uses of katakana.",
 +
    "type": "string"
 +
  }
 +
}}</templatedata>
  
 
== See also ==
 
== See also ==

Revision as of 12:29, 23 August 2013

Usage

There are several optional parameters, default values – which are shown below – should be fine for the katakana article, but probably not for others.

Colors

If an article does not need to distinguish certain groups visually their colors can be set to the same value, e.g.: {{katakana table|obsolete color=#EFFAFA}} (same as normal color).

  •   |normal color=#EFFAFA
  •   |unused color=#EFFAFA
  •   |etymologic color=#EFFAFA
  •   |obsolete color=#E9E9E9
  •   |yoon color=#F3F5DE
  •   |gojuon header color=#BECFEB
  •   |yoon header color=#D4D4D4

Table entries

The notes on unused, obsolete and etymologic characters can be changed and combined: {{katakana table|unused text=New text for all three.|obsolete=unused|etymologic=unused|legend=}}

  • |legend= Grey background  indicates obsolete characters.

  • |yi=<big>イ</big><br>i
  • |ye=<big>エ</big><br>e
  • |wu=<big>ウ</big><br>u
  • |unused=unused used in <ref name="unused" group="n" />
  • |unused text=Theoretical combinations yi, ye and wu are unused. used for <ref name="unused">

  • |wi=[[Wi (kana)|<big>ヰ</big>]]/<big>イ</big><br>wi/i {{IPA-ja|i|}}
  • |we=[[We (kana)|<big>ヱ</big>]]/<big>エ</big><br>we/e {{IPA-ja|e|}}
  • |wo=<big>[[Wo (kana)|ヲ]]</big><br>wo/o {{IPA-ja|o|}}
  • |obsolete=obsolete used in <ref name="obsolete" group="n" />
  • |obsolete text=The characters in positions wi and we are obsolete. The character wo, in practice normally pronounced o, is preserved in only one use: as a particle. This is normally written in hiragana (を), so katakana ヲ sees only limited use. See Gojūon and the articles on each character for details. used for <ref name="obsolete"> in notes

  • |di=
  • |du=
  • |dya=
  • |dyu=
  • |dyo=
  • |etymologic=etymologic used in <ref name="etymologic" group="n" />
  • |etymologic text=The ヂ (di) and ヅ (du) kana (often romanised as ji and zu) are primarily used for etymologic spelling, when the unvoiced equivalents チ (ti) and ツ (tu) (often romanised as chi and tsu) undergo a sound change (rendaku) and become voiced when they occur in the middle of a compound word. In other cases, the identically-pronounced ジ (ji) and ズ (zu) are used instead. ヂ (di) and ヅ (du) can never begin a word, and they are not common in katakana, since the concept of rendakudoes not apply to transcribed foreign words, one of the major uses of katakana. used for <ref name="etymologic">

Other table entries

  • |n=<big>[[N (kana)|ン]]</big><br>n {{IPA-ja|n|}} {{IPA-ja|m|}} {{IPA-ja|ŋ|}} before stop consonants;<br>n{{IPA-ja|ɴ|}} {{IPA-ja|ũ͍|}}{{IPA-ja|ĩ|}} elsewhere
  • |sokuon=<big>[[Sokuon|ッ]]</big><br>(indicates a [[geminate]]<br>consonant)
  • |choonpu=<big>[[Chōonpu|ー]]</big><br>(indicates<br>a long vowel)
  • |iteration mark=<big>[[ヽ]]</big><br>(reduplicates and<br>unvoices syllable)
  • |voiced iteration mark=<big>[[ヾ]]</big><br>(reduplicates and<br>voices syllable)


This template shows a table of katakana syllabograms. Usually, it would be used without parameters.

Template parameters

ParameterDescriptionTypeStatus
Legendlegend

Explanation of colors used

Default
{{colorbox|{{{obsolete color}}}|Grey background}} indicates obsolete characters.
Stringoptional
Gojuon header colorgojuon header color

background color for header cells, any valid CSS color

Default
#BECFEB
Stringoptional
Yoon header coloryoon header color

background color for header cells, any valid CSS color

Default
#D4D4D4
Stringoptional
Normal colornormal color

background color for data cells, any valid CSS color

Default
#EFFAFA
Stringoptional
Unused colorunused color

background color for data cells, any valid CSS color

Default
#EFFAFA
Stringoptional
Etymologic coloretymologic color

background color for data cells, any valid CSS color

Default
#EFFAFA
Stringoptional
Obsolete colorobsolete color

background color for data cells, any valid CSS color

Default
#E9E9E9
Stringoptional
Yoon coloryoon color

background color for data cells, any valid CSS color

Default
#F3F5DE
Stringoptional
unused

reference group name ffor <ref> tags

Default
unused
Stringoptional
obsolete

reference group name ffor <ref> tags

Default
obsolete
Stringoptional
etymologic

reference group name ffor <ref> tags

Default
etymologic
Stringoptional
yi

followed by <ref name="{{{unused}}}"|group="n"/>

Default
Stringoptional
ye

followed by <ref name="{{{unused}}}"|group="n"/>

Default
Stringoptional
wu

followed by <ref name="{{{unused}}}"|group="n"/>

Default
Stringoptional
wi

followed by <ref name="{{{obsolete}}}" group="n"/>

Default
[[Wi (kana)|<big>ヰ</big>]]<br>wi{{IPA-ja|i|}}
Stringoptional
we

followed by <ref name="{{{obsolete}}}" group="n"/>

Default
[[We (kana)|<big>ヱ</big>]]<br>we{{IPA-ja|e|}}
Stringoptional
wo

followed by <ref name="{{{obsolete}}}" group="n"/>

Default
<big>[[Wo (kana)|ヲ]]</big><br>wo {{IPA-ja|o|}}
Stringoptional
di

followed by <ref name="{{{etymologic}}}" group="n"/>

Default
<big>ヂ</big><br>ji {{IPA-ja|d͡ʑi|}}
Stringoptional
du

followed by <ref name="{{{etymologic}}}" group="n"/>

Default
<big>ヅ</big><br>zu {{IPA-ja|zu͍|}}
Stringoptional
dya

followed by <ref name="{{{etymologic}}}" group="n"/>

Default
<big>ヂャ</big><br>ja {{IPA-ja|d͡ʑa|}}
Stringoptional
dyu

followed by <ref name="{{{etymologic}}}" group="n"/>

Default
<big>ヂュ</big><br>ju {{IPA-ja|d͡ʑu͍|}}
Stringoptional
dyo

followed by <ref name="{{{etymologic}}}" group="n"/>

Default
<big>ヂョ</big><br>jo {{IPA-ja|d͡ʑo|}}
Stringoptional
n

Default
<big>[[N (kana)|ン]]</big><br>n {{IPA-ja|n|}} {{IPA-ja|m|}} {{IPA-ja|ŋ|}} before stop consonants;<br /> n{{IPA-ja|ɴ|}}{{IPA-ja|ũ͍|}}{{IPA-ja|ĩ|}} elsewhere
Stringoptional
sokuon

Default
<big>[[Sokuon|ッ]]</big><br />(before [[geminate]] consonant)
Stringoptional
choonpu

Default
<big>[[Chōonpu|ー]]</big><br />(after long vowel)
Stringoptional
iteration mark

Default
<big>[[ヽ]]</big><br />(reduplicates and unvoices syllable)
Stringoptional
voiced iteration mark

Default
<big>[[ヾ]]</big><br />(reduplicates and voices syllable)
Stringoptional
Unused textunused text

text in explanatory notes

Default
Theoretical combinations ''yi'', ''ye'' and ''wu'' are {{colorbox|{{{unused color}}}|unused}}.
Stringoptional
Obsolete textobsolete text

text in explanatory notes

Default
The characters in positions ''wi'' and ''we'' are {{colorbox|{{{obsolete color}}}|obsolete}} in modern Japanese, and have been replaced by イ (''i'') and エ (''e''). The character ''wo'', in practice normally pronounced ''o'', is preserved in only one use: as a particle. This is normally written in hiragana (を), so katakana ヲ sees only limited use. See [[Gojūon]] and the articles on each character for details.
Stringoptional
Etymologic textetymologic text

text in explanatory notes

Default
The ヂ (''di'') and ヅ (''du'') kana (often romanised as ''ji'' and ''zu'') are primarily used for {{colorbox|{{{etymologic color}}}|etymologic spelling}}, when the unvoiced equivalents チ (''ti'') and ツ (''tu'') (often romanised as ''chi'' and ''tsu'') undergo a sound change (''[[rendaku]]'') and become voiced when they occur in the middle of a compound word. In other cases, the identically-pronounced ジ (''ji'') and ズ (''zu'') are used instead. ヂ (''di'') and ヅ (''du'') can never begin a word, and they are not common in katakana, since the concept of ''rendaku'' does not apply to transcribed foreign words, one of the major uses of katakana.
Stringoptional

See also