• घर
  • बेतरतीब
  • लॉग-इन करें
  • सेटिंग्स
Donate Now If this site has been useful to you, please give today.
  • विकिपुस्तक के बारे में
  • अस्वीकरण
विकिपुस्तक

साँचा:Listen

  • भाषा
  • ध्यान रखें
  • सम्पादित करें
साँचा विवरण[देखें] [संपादन] [इतिहास] [पर्ज़ करें]

{{Listen}}} allows audio files to be embedded in articles. It should be used for audio files that are set off from the text, like music clips or sound recordings.

सामग्री

  • १ Simple usage
    • १.१ Multiple files
  • २ Style parameters
  • ३ Examples
  • ४ See also

Simple usage

सम्पादन
{{ listen
| filename     = 
| title        = 
| description  = 
}}
  • filename (Required): the pagename of the media file, without the File: (formerly Image:) prefix
  • title (Required): the title of the audio file, to be displayed
  • description: a description of the audio file

Multiple files

सम्पादन

Additional files can be embedded in an article with one template by appending a number to each parameter. Up to ten files can be included.

{{ listen
| filename     = 
| title        = 
| alt          = 
| description  = 
| filename2    = 
| title2       = 
| alt2         = 
| description2 = 
| filename3    = 
| title3       = 
| alt3         = 
| description3 = 
}}
  • filename (Required): the pagename of the media file, without the File: (formerly Image:) prefix
  • title (Required): the title of the audio file, to be displayed
  • alt: alt text for the image displayed for the file, for visually impaired readers. This is needed for file formats such as Ogg's .ogv format that include video as well as sound. The alt text should describe just the initial static image, not the entire video or its sound.
  • description: a description of the audio file

Style parameters

सम्पादन

The template also takes a number of style parameters to control its appearance:

  • type: can be used to alter the image displayed at the left depending on the type of audio content being embedded. Acceptable values are sound, speech and music (default)
  • header: can be used to add a header to the box.
  • help: if set |help=no, suppresses the help text that normally appears at the bottom of the box. Only do this if there are other audio files on the page which do have the help link; it must be provided on at least the first file on the article.
  • pos: by default the box floats to the right side of the screen. Setting this to left will cause the box to instead float on the left-hand side.
  • image: define a different image. E.g. |image=[[File:Example.jps|20px]]. You can set |image=none to disable the image entirely.
  • style: can be used to pass specific style instructions to the box. Setting this to float:none will anchor the box when this is convenient. Setting this to float:none; clear:none will enable the anchored box to co-exist gracefully beside another floating box.
  • play#: some media files cannot be displayed inline; if this is the case set |play=no to prevent the broken inline link from displaying.
  • plain: if set |plain=yes, removes most of the ornamentation (table border, image, and help links) to give a minimalist version. This also removes the left/right float and positioning, to allow the box to be manually positioned as desired using the |style= (e.g. |style=float:right) parameter and surrounding markup.

Examples

सम्पादन
Basic example
Accordion chords
Chords being played on an accordion

इस फाइल को सुनने में कोई समस्या है? देखें मीडिया सहायता।
{{ listen
| filename     = Accordion chords-01.ogg
| title        = Accordion chords
| description  = Chords being played on an accordion
}}


Example with video
Inaugural Address
Inaugural address of Barack Obama
Barack Obama delivers his inaugural address on January 20, 2009.
(Duration: 21 minutes, 21 seconds)
{{Listen
 |header=Inaugural Address
 |filename=Barack Obama inaugural address.ogv
 |alt=A black man in a black coat gestures and talks at a lecturn surrounded by teleprompters. Behind him, in the background, are about a dozen warmly-dressed onlookers.
 |title=Inaugural address of Barack Obama
 |description=Barack Obama delivers his inaugural address on January 20, 2009.<br>(Duration: 21 minutes, 21 seconds)
 |help=no
 |type=sound
}}


Example with header
Recordings of this phrase:
"One small step for a man..."
First words spoken on the moon.

इस फाइल को सुनने में कोई समस्या है? देखें मीडिया सहायता।
{{ listen
| filename     = Phrase de Neil Armstrong.oga
| title        = "One small step for a man..."
| description  = First words spoken on the moon.
| type         = speech
| pos          = left
| header       = Recordings of this phrase:
}}


Plain example
Accordion chords
{{ listen
| filename = Accordion chords-01.ogg
| title    = Accordion chords
| plain    = yes
| style    = float:left
}}


Multiple files
Accordion chords
Chords being played on an accordion

Moonlight Sonata
Beethoven's "Sonata in C-sharp minor"

Au Clair de la Lune
The traditional French children's song

इन फाइलों को सुनने में कोई समस्या है? देखें मीडिया सहायता।
{{ listen
| filename     = Accordion chords-01.ogg
| title        = Accordion chords
| description  = Chords being played on an accordion
| type         = music
| filename2    = Moonlight.ogg
| title2       = ''Moonlight Sonata''
| description2 = Beethoven's "Sonata in C-sharp minor"
| filename3    = Au_clair_de_la_lune_mode_do.mid
| title3       = Au Clair de la Lune
| description3 = The traditional French children's song
| play3        = no
}}



See also

सम्पादन
  • {{Audio}}, a variant of this template meant more for inline sounds like pronunciations.
  • {{Multi-listen start}}, {{Multi-listen item}}, and {{Multi-listen end}}, templates used to list multiple audio files in the same box
उपरिलिखित विवरण पृष्ठ साँचा:Listen/विव से ट्रांसक्लूड किया गया है। (संपादन | इतिहास)
संपादकगण इस साँचे के प्रयोगपृष्ठ (बनाएँ | मिरर करें) और testcases (बनाएँ) पन्नों पर परीक्षण संपादन कर सकते हैं।
श्रेणियाँ कृपया /विव उपपृष्ठ पर जोड़ें। इस साँचा के उपपृष्ठ।
"https://hi.wikibooks.org/w/index.php?title=साँचा:Listen&oldid=72488" से प्राप्त
अंतिम बार ३१ मई २०२१ को २१:०९ बजे संपादित किया गया

भाषाएँ

    • Башҡортса
    • বাংলা
    • Català
    • English
    • Français
    • Italiano
    • ਪੰਜਾਬੀ
    • Polski
    • Татарча / tatarça
    विकिपुस्तक
    • Wikimedia Foundation
    • Powered by MediaWiki
    • इस पृष्ठ का पिछला बदलाव ३१ मई २०२१ को २१:०९ बजे हुआ था।
    • उपलब्ध सामग्री CC BY-SA 4.0 के अधीन है जब तक अलग से उल्लेख ना किया गया हो।
    • गोपनीयता नीति
    • विकिपुस्तक के बारे में
    • अस्वीकरण
    • आचार संहिता
    • विकासक
    • सांख्यिकी
    • कुकी का वर्णन
    • उपयोग की शर्तें
    • डेस्कटॉप