You can include audio on your community via a few different methods, including Spotify and the direct upload of audios to your wiki. You should be aware, however, that no single audio solution works in every situation, or for all users.
Spotify
To embed a Spotify player, right-click any song or artist in the Spotify player's bottom-left corner. Select Share > Copy Spotify URI.
Albums and playlists may also be embedded. Their share buttons are likewise found at Share > Copy Spotify URI — but the share button is under a menu closer to the album or playlist's name. See the pictures on the right for more guidance.
Once you've copied the URI you want, put it between the quotation marks in the following example code:
<spotify uri="spotify:artist:5JkgywsS3vj9XiIPkLRbyk" />
This will generate a player like the following:
You can change the height and width of your player by adding those parameters after the URI. The following code ...
<spotify uri="spotify:artist:5JkgywsS3vj9XiIPkLRbyk" height="80" width="300"/>
... results in a player that looks like this:
Inside an infobox that takes the spotify URI as an argument requires the use of {{#tag:}}
like so:
{{#tag:spotify||uri="{{{spotify}}}"|height="80"|width="280"}}
Understand that Spotify may require users to sign in to hear whole tracks and that the service itself is not available in all countries. You can see which countries Spotify supports on Wikipedia.
Audio files
You can upload audio files to Fandom if they're in certain formats. Embedding audio is similar to adding a photo:
- Go to Special:Upload on your community.
- Upload your supported audio file, and make a note of the file name.
- Open an article for editing.
- Enter the following wikitext to embed your audio file (replacing "example" with whatever your filename is):
[[File:Example.ogg]]
- Save your article. It should display an audio player as seen here (example from Wikipedia):
File type support
No audio format is playable on all browsers which Fandom supports.
OGG
For audio files, the open-source format Ogg Vorbis (OGG), which does not require proprietary software to record or play, works on a number of our supported browsers. You can embed and play OGG files directly from any page by adding a link to the file like this: [[File:Name.ogg]]
. Make sure to do this in Source.
However, Apple products do not support the OGG format, and third-party solutions haven't worked for many years. Consequently, neither Safari nor almost any browser used by iOS can play the OGG format. If you choose to use OGG files instead of, say, SoundCloud, substantial parts of your audience may not be able to access your audio.
Happily, Mac OS users have the ability to just use another browser that has OGG support, like Firefox. That's not the case for iOS users, though, where most every browser is based on Safari. So using OGG means losing that hefty group of users on iOS.
MP3
Because MP3 is not a free/open-source format, the MediaWiki software cannot provide an integrated player for MP3 files, and we do not support the format by default.
Other formats
There are many other formats for audio files that Fandom does not support by default. If your community has a strong need for audio in other formats, please feel free to contact Fandom to discuss your situation further.
See also
Further Help & Feedback
- Browse and search other help pages at Help:Contents
- Check Fandom Community Central for sources of further help and support
- Check Contacting Fandom for how to report any errors or unclear steps in this article