ઢાંચો વિકિપીડિયા From Wikipedia, the free encyclopedia
This template uses Lua: |
{{Listen}} allows audio and video files to be embedded in articles. It should be used for audio files that are set off from the text, such as music clips or sound recordings.
For non-free, fair-use media samples, a description of the media is required to provide contextual significance, and thus satisfy item No. 8 of the Policy section of Wikipedia:Non-free content criteria. Do not position non-free audio or video files in the infobox.
{{Listen | filename = | title = | description = | pos = }}
File:
(formerly Image:
) prefixAdditional files can be embedded in an article with one template by appending a number to each parameter.
{{Listen | filename = | title = | alt = | description = | filename2 = | title2 = | alt2 = | description2 = | filename3 = | title3 = | alt3 = | description3 = }}
.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.The template also takes a number of style parameters to control its appearance:
|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.|image=[[File:Example.jpg|50px]]
. You can set |image=none
to disable the image entirely.|play=no
to prevent the broken inline link from displaying.|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.|embed=yes
to remove border and padding when using as a module embedded in another infobox (see examples below).|length(n)=hide
hides the duration (h:m:s).Basic
{{Listen | filename = Accordion chords-01.ogg | title = Accordion chords | description = Chords being played on an accordion }}
With video
{{Listen | image = [[File:Crystal Project video camera.png|50px]] | help = no | 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's [[First inauguration of Barack Obama|first inaugural address]], January 20, 2009<br />(Duration: 21 minutes, 21 seconds) }}
With header
{{Listen | header = Recordings of this phrase: | type = speech | filename = Phrase de Neil Armstrong.oga | title = "One small step for a man..." | description = First words spoken on the [[Moon]]. }}
Embedding
Dr. Accordion | |
---|---|
વ્યવસાય | Accordion player |
{{Infobox person | name = Dr. Accordion | occupation = Accordion player | module = {{Listen | filename = Accordion chords-01.ogg | title = Accordion chords | embed = yes }} }}
Plain
{{Listen | filename = Accordion chords-01.ogg | title = Accordion chords | plain = yes | style = float:left }} |
Multiple files
{{Listen
| type = music
| filename = Accordion chords-01.ogg
| title = Accordion chords
| description = Chords being played on an accordion
| filename2 = Moonlight.ogg
| title2 = ''Moonlight Sonata''
| description2 = [[Ludwig van Beethoven|Beethoven]]'s [[Piano Sonata No. 14 (Beethoven)|Sonata in C-sharp minor]]
| filename3 = Brahms-waltz15.ogg
| title3 = Waltz No. 15
| description3 = From [[Sixteen Waltzes, Op. 39 (Brahms)|Sixteen Waltzes, Op. 39]] by [[Johannes Brahms|Brahms]]
}}
ઢાંચો:UF-audio
TemplateData for Listen
Parameter | Description | Type | Status | |
---|---|---|---|---|
Header | header | Text or other content to go above all the files in the template (but within the template boundary). Allows markup. | Content | optional |
Music or speech icon | type | Enter "music" or "speech" here to change the template icon to a speaker with music notes or a microphone.
| Line | optional |
Custom icon | image | Custom image to replace the speaker icon in the template. Alternatively, enter "none" here to hide the icon entirely.
| File | optional |
Filename | filename | The filename of the file. Filename2, filename3, etc. can be used for subsequent files. | File | required |
Title | title | The title to display for the file. Title2, title3, etc. can be used for subsequent files. | String | required |
Description | description | A description of the file. Description2, description3, etc. can be used for subsequent files. | String | suggested |
Start time | start | Timestamp at which the first file should start playing (start2, start3, etc. can be used for subsequent files)
| Line | optional |
Hide duration? | length | Enter "hide" here to hide the duration of the first file (length2, length3, etc. can be used for subsequent files).
| Line | optional |
Hide player? | play | Enter "no" here to hide the file player for the first file (play2, play3, etc. can be used for subsequent files). To be used for some media files that cannot be displayed inline, to prevent a broken inline link from showing.
| Line | optional |
Hide help text? | help | Enter "no" here to hide the "Problems playing this file? See media help." text at the bottom of the template. Must not be done on the first instance of the template; optional on subsequent instances of the template.
| Line | optional |
Position | pos | Enter "left" or "center" here to change the default position of the template from on the right.
| Line | optional |
Plain style? | plain | Enter "yes" here to remove most of the ornamentation (border, background, icon and help text) and the float/positioning of the template to give a minimalist version, allowing the user to use the custom CSS ("style") parameter to style and position the template.
| Line | optional |
Optimise for embedding? | embed | Enter any text here to remove the left, right and bottom border, the background, the icon, the help text and the padding of the template for use in an infobox.
| Line | optional |
Custom CSS | style | Custom CSS for the template
| Content | optional |
ઢાંચો:Audio templates
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.