Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 File types  





2 Using templates  



2.1  To the side  





2.2  Inline  



2.2.1  Template:Audio  





2.2.2  Other inline templates  







2.3  In an infobox  







3 Directly using a file  





4 Link to a file without displaying it  





5 See also  














Help:Sound file markup






فارسی
Italiano
Sicilianu


 

Edit links
 









Help page
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


The best sound markup in most situations is

{{listen |filename=FILENAME.ogg |title=TITLE |description=DESCRIPTION }}


File types[edit]

Before a file can be used, it must be uploaded to either Wikipedia or the Wikimedia Commons sister project. Uploading to Commons is recommended as files can be used by other sister projects. Files being used under fair use provisions must be stored on Wikipedia. The markup is the same regardless of where it is uploaded.

The following sound formats may be uploaded:

Using templates[edit]

To the side[edit]

Normally, sound files are presented on Wikipedia pages using the Template:Listen or its related templates.

This is an example, displaying common usage:

{{listen |filename=Accordion chords-01.ogg |title=Accordion chords |description=Chords being played on an accordion }}

Inline[edit]

Template:Audio[edit]

This template links to an audio file for quick listening. It is meant to be used inline with text, for pronunciations and the like.

{{Audio|name of sound file|text to use as link to soundfile}}

Example:

'''Eisenhüttenstadt''' ({{Audio|De-Eisenhüttenstadt.ogg|pronunciation}}) is a town in ...

gives this:

Eisenhüttenstadt (pronunciation) is a town in ...

Other inline templates[edit]

In an infobox[edit]

Directly using a file[edit]

Normally, sound files are presented on Wikipedia pages using the Template:Listen or its related templates. However, it is also possible to present an audio file without any template.

[[File:Accordion chords-01.ogg]]


Caption

The parameter |thumbmay be used to give the file a caption. That will also float the playbutton to the right.

[[File:Accordion chords-01.ogg|thumb|Caption]]


The size of the player can be specified:

[[File:Accordion chords-01.ogg|233px]]


Combining size and caption:

Caption

[[File:Accordion chords-01.ogg|thumb|240px|Caption]]

None of these examples provide links to Help:Media. Thus, whenever this method is used, the Template:Inline audio must be shown on the page.

Link to a file without displaying it[edit]

To link to a description page, put a colon before the prefix.

[[:File:Example.ogg]]
File:Example.ogg

You can also link directly to the file using "Media:" instead of "File:". This method must not be used solely for a file under a license which requires attribution, such as CC-BY licenses.

[[Media:Example.ogg]]
Media:Example.ogg

In both cases piped links also work.

See also[edit]


Retrieved from "https://en.wikipedia.org/w/index.php?title=Help:Sound_file_markup&oldid=1194379219"

Categories: 
Wikipedia how-to
Wikipedia editor help
Hidden category: 
Pages using the Phonos extension
 



This page was last edited on 8 January 2024, at 18:27 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki