الگو:Audio-nohelp

از ویکی‌پدیا، دانشنامهٔ آزاد
پرش به: ناوبری، جستجو

[[:رسانه:{{{1}}}|{{{2}}}]]


Purpose[ویرایش]

This template links to an audio file for quick listening. It is meant to be used inline with text, for pronunciations and the like. It is meant to be used in situations where the template is used many times in a row and individual help links are not necessary. (see Morse code for an example).

Since the template does not include a help link, an explanation like {{Inline audio}} needs to be provided elsewhere in the article.

Usage[ویرایش]

{{Audio-nohelp|<name of sound file>|<text to use as link to soundfile>}}

Example:

{{Audio-nohelp|X morse code.ogg|X}}

gives this:

X

جستارهای وابسته[ویرایش]

  • {{Audio}}, a variant of this template with a help link.
  • {{Listen}}, which sets an audio clip off from the main text.


نشان توضیحات توضیحات الگو [ویرایش] [تاریخچه] [پاکسازی میانگیر]

Purpose[ویرایش]

This template links to an audio file for quick listening. It is meant to be used inline with text, for pronunciations and the like; many times in succession and when individual help links are not necessary. (see کد مورس for an example).

Since the template does not include a help link, an explanation like {{Inline audio}} needs to be provided elsewhere in the article.

Usage[ویرایش]

{{Audio-nohelp|<name of sound file>|<text to use as link to soundfile>}}

Example:

{{Audio-nohelp|X morse code.ogg|X}}

gives this:

X

Microformat[ویرایش]

The HTML mark up produced by this template includes an hAudio microformat, which makes the recording's details parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a playlist or database. For more information about the use of microformats on Wikipedia, please see the microformat project.

Date-of-publication ("published") information will only be included in the microformat if {{Start date}} (or {{Start date and age}} where appropriate) is used in a parent template or infobox (but do not use these if the date is before 1583 CE).

For the length or duration of a recording, say 3 minutes 45 seconds, use {{Duration}} thus: {{Duration|m=3|s=45}}, which renders as ۳:۴۵. An optional h parameter can be used for hours.

hAudio uses HTML classes including:

  • haudio
  • fn
  • album
  • description
  • category
  • contributor
  • duration
  • h
  • item
  • min
  • photo
  • position
  • price
  • published
  • s

Please do not rename or remove these classes; nor collapse nested elements which use them.

See also[ویرایش]

  • {{Audio}}, a variant of this template with a help link.
  • {{Spoken}}, which adds only the small icon with no links.
  • {{Listen}}, which sets an audio clip off from the main text.