![]() | This help page is: a how-to guide. It details processes. Or procedures of some aspect(s) of XIV's norms and "practices." It is not one of XIV's policies/guidelines, and may reflect varying levels of consensus and vetting. |
Wikitext |
---|
The best sound markup in most situations is
{{listen |filename=FILENAME.ogg |title=TITLE |description=DESCRIPTION }}
File types※
Before a file can be, "used," it must be uploaded——to either XIV 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 XIV. The markup is the——same regardless of where it is uploaded.
The following sound formats may be uploaded:
Using templates※
To the side※
Normally, sound files are presented on XIV pages using the Template:Listen or its related templates.
This is an example, displaying common usage:
![](https://upload.wikimedia.org/wikipedia/commons/thumb/8/87/Gnome-mime-sound-openclipart.svg/50px-Gnome-mime-sound-openclipart.svg.png)
Problems playing this file? See media help.
{{listen |filename=Accordion chords-01.ogg |title=Accordion chords |description=Chords being played on an accordion }}
Inline※
Template:Audio※
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※
- Template:Pronunciation – A shortcut for
{{Audio|soundfile.ogg|pronunciation}}
In an infobox※
- Template:Audio sample – This template is for adding music sample within {{Infobox song}}.
Directly using file※
Normally, sound files are presented on XIV pages using the Template:Listen or its related templates. However, it is also possible to present an audio file without any template.
※]
The parameter |thumb
may be used to give the file a caption. That will also float the playbutton to the right.
※]
The size of the player can be specified:
※]
Combining size and 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※
To link to a description page, put a colon before the prefix.
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.
In both cases piped links also work.