Bước tới nội dung

Bản mẫu:âm thanh

Từ điển mở Wiktionary
Âm thanh:(tập tin)
Tài liệu bản mẫu

Bản mẫu này liên kết đến một tập tin âm thanh để nghe phát âm, trong phần "Cách phát âm" của mục từ để cho biết cách phát âm một từ có liên quan đến mục từ.

Cách sử dụng

[sửa]

{{âm thanh|Mã ngôn ngữ|Tên tập tin âm thanh|Văn bản trước phần âm thanh}}

Tham số

[sửa]

Bản mẫu có các tham số sau:

|1= (cần thiết)
Mã ngôn ngữ. Tham số tương ứng |lang= không còn được dùng nữa; xin đừng sử dụng nó.
|2= (cần thiết)
Tên của tập tin âm thanh.
|3=
Văn bản chú thích dùng để thay cho dòng chữ "Âm thanh". Trong phần lớn các trường hợp, đừng ghi đè lên văn bản này mà hãy sử dụng một trong các tham số sau.
|q=
Specifies a qualifier to be placed before the audio box, after the "Audio" caption. This is formatted with the {{q}}/{{qualifier}} template.
|a=
Specifies one or more comma-separated accent qualifiers to be placed before the audio box, after the "Audio" caption, and are useful for specifying the accent found in the audio file. These are formatted with the {{a}}/{{accent}} template. To be recognized as a separator, there must be no space following the comma; otherwise, the comma is treated as an embedded comma within the accent qualifier.
|qq=
Specifies a qualifier to be placed at the end, after the audio box. Normally, use |q= instead of this, unless the qualifier is particularly long. This is formatted with the {{q}}/{{qualifier}} template.
|aa=
Specifies one or more comma-separated accent qualifiers to be placed at the end, after the audio box. Normally, use |a= instead of this, unless the qualifier is particularly long. These are formatted with the {{a}}/{{accent}} template. To be recognized as a separator, there must be no space following the comma; otherwise, the comma is treated as an embedded comma within the accent qualifier.
|ref=
Specifies one or more reference notes to be placed directly after the audio box. The reference is placed in the ===References=== section at the bottom of the language's entry. See below for the format of this parameter.
|text=
Specifies the text of the audio snippet, if it isn't the same as the term being illustrated. This can be used, for example, when the audio snippet contains extra words in it (e.g. articles).
|IPA=
Specifies the IPA pronunciation of the audio snippet. This can be used, for example, when the audio snippet contains extra words in it, to make it easier to pick out the relevant term. The IPA should be enclosed in brackets or slashes, like the parameters of {{IPA}}.
|t=
Specifies the meaning (gloss) of the text in |text=, if that text is in a foreign language and its meaning isn't obvious.
|lit=
Specifies the literal meaning of the text in |text=, if needed.
|tr=
Specifies the manual transliteration of the text in |text=, for text in non-Latin scripts where either the automatic transliteration isn't correct or there is no automatic transliteration (e.g. in Persian and Hebrew).
|ts=
Specifies the transcription of the text in |text=, for text in non-Latin scripts where the transliteration is radically different from the actual pronunciation. To be used sparingly and only for certain languages; see the description of this parameter in {{l}} for more information.
|pos=
Specifies the part of speech of the text in |text=. Included mostly for completeness; rarely needed.
|nocat=1
Turns off categorization.
|sort=
Manual sortkey. Use sparingly; the makeSortKey method in Module:languages can usually generate the correct sortkey.
|bad=
To formulate a warning to the reader about quality problems of the audio.

Ví dụ

[sửa]
Tên tập tin phải được định dạng là [mã ngôn ngữ]-[tên phương ngữ nếu có]-[tên mục từ].
  • Wikitext: {{âm thanh|en|en-us-computer.ogg|Âm thanh (US)}}
  • Kết quả:
    Âm thanh (US):(tập tin)
  • Wikitext: {{âm thanh|en|En-uk-to talk.ogg|a=UK|text=to talk}}
  • Kết quả:
    Âm thanh (Anh); to talk:(tập tin)
  • Wikitext: {{âm thanh|fr|Fr-hors d oeuvre-fr-Paris.ogg|a=France|text=un hors-d'œuvre}}
  • Kết quả:
    Âm thanh (France); un hors-d’œuvre:(tập tin)
  • Wikitext: {{âm thanh|en|En-abthane.flac|IPA=/əbˈθeɪn/}}
  • Kết quả:
    Âm thanh; /əbˈθeɪn/:(tập tin)
  • Wikitext: {{âm thanh|fr|LL-Q150 (fra)-WikiLucas00-avoir un nom à coucher dehors.wav|IPA=/a.vwaʁ œ̃ nɔ̃ a ku.ʃe də.ɔʁ/|a=Lyon|lit=to have a noun to hide behind|t=to have a jawbreaker/mouthful|text=avoir un nom à coucher dehors}}
  • Kết quả:
    Âm thanh (Lyon); avoir un nom à coucher dehors (nghĩa đen to have a noun to hide behind) /a.vwaʁ œ̃ nɔ̃ a ku.ʃe də.ɔʁ/:(tập tin)

TemplateData

[sửa]
Đây là tài liệu TemplateData cho bản mẫu này, được sử dụng bởi TemplateWizard, VisualEditor và các công cụ khác.

TemplateData cho âm thanh

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

Tham số bản mẫu[Sửa dữ liệu bản mẫu]

Nên dùng bản mẫu này với các tham số đặt trên cùng một hàng.

Tham sốMiêu tảKiểuTrạng thái
Ngôn ngữ1

Ngôn ngữ dùng trong bản ghi âm.

Ví dụ
en
Chuỗi dàibắt buộc
Tập tin âm thanh2

Tập tin âm thanh để phát.

Ví dụ
en-US pronunciation of "antishinto".ogg
Tập tinbắt buộc
Văn bản chú thích3

Văn bản hiển thị trước hộp âm thanh. Mặc định là 'Âm thanh'; hiếm khi cần phải chỉ định.

Ví dụ
the sound of a pig's "oink"
Chuỗi dàitùy chọn
Left accent qualifier(s)a

Specifies one or more comma-separated accent qualifiers to be placed before the audio box. These are formatted with the {{a}}/{{accent}} template.

Chuỗi dàitùy chọn
Left qualifierq

Specifies a qualifier to be placed before the audio box. This is formatted with the {{q}}/{{qualifier}} template.

Chuỗi dàitùy chọn
Right accent qualifier(s)aa

Specifies one or more comma-separated accent qualifiers to be placed after the audio box. These are formatted with the {{a}}/{{accent}} template.

Chuỗi dàitùy chọn
Right qualifierqq

Specifies a qualifier to be placed after the audio box. This is formatted with the {{q}}/{{qualifier}} template.

Chuỗi dàitùy chọn
Referenceref

Specifies a reference note to be placed directly after the audio box. The reference is placed in the ===References=== section at the bottom of the language's entry.

Chuỗi dàitùy chọn
Text of audio snippettext

Specifies the text of the audio snippet, used especially when it contains additional words.

Chuỗi dàitùy chọn
IPA of audio snippetIPA

Specifies the IPA pronunciation of the audio snippet, used especially when it contains additional words.

Chuỗi dàitùy chọn

Tham khảo

[sửa]

The |refN= parameter is used to specify one or more references for a given pronunciation and works similarly to the <ref> tag. For example, specifying |ref={{R:it:DiPI|bendo}} is similar to placing <ref>{{R:it:DiPI|bendo}}</ref> after the call to {{IPA}}, except that it can be used to insert references directly after a given pronunciation when there are several.

To specify multiple references, separate them with  !!! (optionally with spaces around it). For example, the following:

{{âm thanh|it|It-bendo.ogg|ref={{R:it:DiPI|bendo}} !!! {{R:it:Olivetti}}}}

is similar to the following:

{{âm thanh|it|It-bendo.ogg}}<ref>{{R:it:DiPI|bendo}}</ref><ref>{{R:it:Olivetti}}</ref>

To specify the equivalent of the <ref name="NAME" group="GROUP">...</ref>, use <<name:NAME>> and/or <<group:GROUP>> directly following the reference text. For example, the following:

{{âm thanh|it|It-bendo.ogg|ref={{R:it:DiPI|bendo}}<<name:bendo>> !!! {{R:it:Olivetti}}}}

is similar to the following:

{{âm thanh|it|It-bendo.ogg}}<ref name="bendo">{{R:it:DiPI|bendo}}</ref><ref>{{R:it:Olivetti}}</ref>

Similarly, the following:

{{âm thanh|it|It-bendo.ogg|ref={{R:it:DiPI|bendo}}<<name:bendo>><<group:pron>>}}

is similar to the following:

{{âm thanh|it|It-bendo.ogg}}<ref name="bendo" group="pron">{{R:it:DiPI|bendo}}</ref>

To reference a prior name, as in <ref name="bendo"/>, leave the reference text blank:

{{âm thanh|it|It-bendo.ogg|ref=<<name:bendo>>}}

Similarly, to reference a prior name in a particular group, as in <ref name="bendo" group="pron"/>, use:

{{âm thanh|it|It-bendo.ogg|ref=<<name:bendo>><<group:pron>>}}

Xem thêm

[sửa]
  • {{âm thanh-IPA}} – phiên bản được sử dụng với phiên âm IPA