テンプレート:音声/doc

出典: フリー多機能辞典『ウィクショナリー日本語版(Wiktionary)』
ナビゲーションに移動 検索に移動
これは、テンプレート:音声解説サブページです。
使用方法、カテゴリ、そのほかテンプレートページそのものに含まれない情報を含んでいます。他のページから呼び出して表示することを意図しているため、相対リンク条件文などの動作が意図しないものになっていることがあります。
テンプレートページ自体は、テンプレート:音声をご覧ください。

Usage[編集]

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.

Parameters[編集]

The template takes the following parameters:

  • |1=mandatory: a code indicating the language of a term. See "Wiktionary:List of languages" for a list of these codes. The parameter |lang= is a deprecated synonym; please do not use. If this is used, all numbered parameters move down by one.
  • |2=mandatory: the name of the audio file.
  • |3=mandatory in some cases: the text to use as a link to the audio file. You must use this parameter when indicating the pronunciation of a term with this template.
  • |format= – if using the template to provide a relevant audio recording, use |format=1.

Examples[編集]

To indicate the pronunciation of a term
  • Wikitext: {{audio|en|en-uk-ubiquitous.ogg|Audio (RP)}}
  • Result:
    (ファイル)
The file name should be formatted as [language code]-[dialect if any]-[term].
To link to a relevant audio recording
Visit klaxon to see how the template is used.

See also[編集]

  • {{audio-IPA}} – a version of the template to be used with IPA transcriptions


TemplateData[編集]

テンプレート:TemplateDataHeader

An audio file to assist readers pronouncing the word. Labeled with language and possibly dialect.

テンプレートパラメーター

このテンプレートは、パラメーターを1行で記述することが推奨されています。

パラメーター説明状態
Language1

The language the recording is in.

en
必須
Audio file2 file clip

The sound file to play

en-US pronunciation of "antishinto".ogg
ファイル必須
Text displayed3 text context

Text displayed on the link; typically something like "Audio (GA)". You must use this parameter when indicating the pronunciation of a term with this template.

Audio (RP)
必須