テンプレート:音声
表示
音声 | (ファイル) |
用法
[編集]This template links to an audio file for quick listening, either in the "Pronunciation" section of an entry to indicate how a term is pronounced, or elsewhere to provide an audio recording that is relevant to the entry.
引数
[編集]このテンプレートでは以下の引数を使用している:
|1=
– 必須: 言語コードを用いて言語を示す。|2=
– 必須: 音声ファイル名|3=
– 省略可能: 音声ファイルの前に表示するテキスト。|a=
– 省略可能: 音声ファイルの前に表示するテキスト。引数3と違い、「テンプレート:accent/data」のデータを使用する。|a2=
– 省略可能: aに続いて表示するテキスト。|a3=
– 省略可能: a2に続いて表示するテキスト。|format=
– if using the template to provide a relevant audio recording, use|format=1
.
例
[編集]- 以下のようにして語の発音を示す。
- ファイル名は [language code]-[dialect if any]-[term] のようにする必要がある。
- To link to a relevant audio recording
- Wikitext:
{{音声|en|WWII submarine dive klaxon.ogg|A dive alert, or klaxon, aboard a [[World War II]] {{w|United States Navy}} [[submarine#Noun|submarine]]}}
- 結果:
(ファイル) A dive alert, or klaxon, aboard a World War II United States Navy submarine
- Visit klaxon to see how the template is used.
参照
[編集]{{audio-IPA}}
– a version of the template to be used with IPA transcriptions
テンプレートデータ
[編集]An audio file to assist readers pronouncing the word. Labeled with language and possibly dialect.
パラメーター | 説明 | 型 | 状態 | |
---|---|---|---|---|
言語 | 1 | 言語コードを入力
| 行 | 必須 |
音声ファイル | 2 file clip | 再生する音声ファイルを貼る
| ファイル | 必須 |
表示するテキスト | 3 text context | 「音声(容認発音)」のようなテキストを表示する。
| 行 | 省略可能 |
表示するテキスト | a text context | 「音声(容認発音)」のようなテキストを表示する。テンプレート:accent/dataと連携している
| 行 | 省略可能 |