Editing
Template:Listen/doc
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Advanced
Special characters
Help
Heading
Level 2
Level 3
Level 4
Level 5
Format
Insert
Latin
Latin extended
IPA
Symbols
Greek
Greek extended
Cyrillic
Arabic
Arabic extended
Hebrew
Bangla
Tamil
Telugu
Sinhala
Devanagari
Gujarati
Thai
Lao
Khmer
Canadian Aboriginal
Runes
Á
á
À
à
Â
â
Ä
ä
Ã
ã
Ǎ
ǎ
Ā
ā
Ă
ă
Ą
ą
Å
å
Ć
ć
Ĉ
ĉ
Ç
ç
Č
č
Ċ
ċ
Đ
đ
Ď
ď
É
é
È
è
Ê
ê
Ë
ë
Ě
ě
Ē
ē
Ĕ
ĕ
Ė
ė
Ę
ę
Ĝ
ĝ
Ģ
ģ
Ğ
ğ
Ġ
ġ
Ĥ
ĥ
Ħ
ħ
Í
í
Ì
ì
Î
î
Ï
ï
Ĩ
ĩ
Ǐ
ǐ
Ī
ī
Ĭ
ĭ
İ
ı
Į
į
Ĵ
ĵ
Ķ
ķ
Ĺ
ĺ
Ļ
ļ
Ľ
ľ
Ł
ł
Ń
ń
Ñ
ñ
Ņ
ņ
Ň
ň
Ó
ó
Ò
ò
Ô
ô
Ö
ö
Õ
õ
Ǒ
ǒ
Ō
ō
Ŏ
ŏ
Ǫ
ǫ
Ő
ő
Ŕ
ŕ
Ŗ
ŗ
Ř
ř
Ś
ś
Ŝ
ŝ
Ş
ş
Š
š
Ș
ș
Ț
ț
Ť
ť
Ú
ú
Ù
ù
Û
û
Ü
ü
Ũ
ũ
Ů
ů
Ǔ
ǔ
Ū
ū
ǖ
ǘ
ǚ
ǜ
Ŭ
ŭ
Ų
ų
Ű
ű
Ŵ
ŵ
Ý
ý
Ŷ
ŷ
Ÿ
ÿ
Ȳ
ȳ
Ź
ź
Ž
ž
Ż
ż
Æ
æ
Ǣ
ǣ
Ø
ø
Œ
œ
ß
Ð
ð
Þ
þ
Ə
ə
Formatting
Links
Headings
Lists
Files
References
Discussion
Description
What you type
What you get
Italic
''Italic text''
Italic text
Bold
'''Bold text'''
Bold text
Bold & italic
'''''Bold & italic text'''''
Bold & italic text
{{Documentation subpage}} {{Lua|Module:Listen}} {{tl|{{BASEPAGENAME}}}} 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. ===Simple usage=== <pre style="overflow: auto"> {{Listen | filename = | title = | description = | pos = }} </pre> * '''filename''' ''(Required)'': the pagename of the media file, {{em|without}} the <code>File:</code> (formerly <code>Image:</code>) prefix * '''title''' ''(Required)'': the title of the audio file, to be displayed. Do not use wikilinks in the title – they will not work. * '''description''': a description of the audio file * '''pos''' = left or right ====Multiple files==== Additional files can be embedded in an article with one template by appending a number to each parameter. <pre style="overflow: auto"> {{Listen | filename = | title = | alt = | description = | filename2 = | title2 = | alt2 = | description2 = | filename3 = | title3 = | alt3 = | description3 = }} </pre> * '''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; see ''[[Wikipedia:Alternative text for images]]''. This is needed for file formats such as [[Ogg]]'s <code>.ogv</code> 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 '''music''', '''speech''' and '''sound''' (default) * '''header''': can be used to add a header to the box. * '''help''': if set to {{para|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. {{nowrap|{{para|image|<nowiki>[[File:Example.jps|50px]]</nowiki>}}}}. You can set {{para|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 {{para|play|no}} to prevent the broken inline link from displaying. * '''plain''': if set {{para|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 {{para|style}} (e.g., {{Para|style|float:right}}) parameter and surrounding markup. * '''embed''': use {{para|embed|yes}} to remove border and padding when using as a module embedded in another infobox (see examples below). * '''start''': Timestamp at which the file should start playing ===Examples=== '''Basic''' {{Listen | filename = Accordion chords-01.ogg | title = Accordion chords | description = Chords being played on an accordion }} <pre style="overflow:auto;"> {{Listen | filename = Accordion chords-01.ogg | title = Accordion chords | description = Chords being played on an accordion }} </pre> {{-}} '''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) }} <pre style="overflow:auto;"> {{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) }} </pre> {{-}} '''With header''' {{Listen | header = Recordings of this phrase: | type = speech | filename = Frase de Neil Armstrong.ogg | title = "One small step for a man..." | description = First words spoken on the [[Moon]] }} <pre style="overflow:auto;"> {{Listen | header = Recordings of this phrase: | type = speech | filename = Frase de Neil Armstrong.ogg | title = "One small step for a man..." | description = First words spoken on the [[Moon]]. }} </pre> {{-}} '''Embedding''' {{Infobox person | name = Dr. Accordion | occupation = Accordion player | module = {{Listen | filename = Accordion chords-01.ogg | title = Accordion chords | embed = yes }} }} <pre style="overflow:auto;"> {{Infobox person | name = Dr. Accordion | occupation = Accordion player | module = {{Listen | filename = Accordion chords-01.ogg | title = Accordion chords | embed = yes }} }} </pre> {{-}} '''Plain''' {| |<pre style="overflow:auto;"> {{Listen | filename = Accordion chords-01.ogg | title = Accordion chords | plain = yes | style = float:left }} </pre> |{{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]] }} <source lang="moin" style="overflow:auto;"> {{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]] }} </source> {{-}} ===Microformat=== {{UF-audio}} ===Support for MIDI=== {{Listen|filename=Beethoven Op. 33 no. 1.mid|title=Bagatelle No. 1|description=from Beethoven's [[Bagatelles, Op. 33 (Beethoven)|''Bagatelles'', Op. 33]]}} This template allows embedding a [[MIDI]] by rendering it into [[Ogg Vorbis]] using [[FluidSynth]] by way of the [[Help:Score|Score extension]]. ===See also=== {{Audio templates}} <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | [[Category:Audio templates]] [[Category:Embeddable templates]] [[Category:Exclude in print]] [[Category:Templates that add a tracking category]] }}<!--(end #ifeq)--></includeonly> {{Film- and television-related infobox templates}}
Summary:
Please note that all contributions to Wikihussain are considered to be released under the Creative Commons Attribution 4.0 (see
Wikihussain:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template:-
(
edit
)
Template:=
(
edit
)
Template:Audio templates
(
edit
)
Template:Big
(
edit
)
Template:Br separated entries
(
edit
)
Template:Clear
(
edit
)
Template:Documentation subpage
(
edit
)
Template:Duration
(
edit
)
Template:Em
(
edit
)
Template:Film- and television-related infobox templates
(
edit
)
Template:Hlist
(
edit
)
Template:Infobox
(
edit
)
Template:Infobox person
(
edit
)
Template:Listen
(
edit
)
Template:Longitem
(
edit
)
Template:Lua
(
edit
)
Template:Main other
(
edit
)
Template:Mbox
(
edit
)
Template:Microformat message
(
edit
)
Template:Navbar
(
edit
)
Template:Navbox
(
edit
)
Template:Nowrap
(
edit
)
Template:Para
(
edit
)
Template:Str left
(
edit
)
Template:Template other
(
edit
)
Template:Tl
(
edit
)
Template:Tlc
(
edit
)
Template:Tlf
(
edit
)
Template:UF-audio
(
edit
)
Template:Unbulleted list
(
edit
)
Template:Wikidata image
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:File link
(
edit
)
Module:Hms
(
edit
)
Module:Infobox
(
edit
)
Module:InfoboxImage
(
edit
)
Module:List
(
edit
)
Module:Listen
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Navbar
(
edit
)
Module:Navbox
(
edit
)
Module:No globals
(
edit
)
Module:Separated entries
(
edit
)
Module:Side box
(
edit
)
Module:TableTools
(
edit
)
Module:Yesno
(
edit
)
Category:Pages using duplicate arguments in template calls
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
About WikiHussain
Guidelines
Contact Us
Tools
What links here
Related changes
Upload file
Special pages
Page information
Number of articles
576