Help:Adding Media/Audio

From UBC Wiki

In order to embed audio file in wiki, you will need a direct URL to the audio file. If you have not uploaded your audio file, go to Step 1 to upload the audio file and get the direct URL of the audio file. If you have uploaded your audio file elsewhere, skip to Step 2.

Step 1: Upload and get the direct URL of the audio file

Before embedding an audio file, you will first need to upload audio file to wiki.

  1. Under Tools, click Upload file
  2. Click Select media files to upload to upload the audio file
  3. Click Continue and fill in the copyright information of the audio file.
  4. Click Publish files to publish the audio.
  5. Click on the file name that is located on the left side to access to the file page.
    Screen shot audio 1.png
  6. On the file page, click on the file name to access to the direct URL of the audio file
    Screen shot audio 2.png
  7. Copy the URL of the audio file from the URL address bar.
    Screenshot audio 3.png

Step 2: Embed the audio file

Using Visual Editor

  1. Edit your wiki page that you would like to add embed the audio file
  2. Go to Insert>Template
    Insert template.png
  3. Under "Add a Template", type Audio. Then press Add Template
  4. Under url, Paste the direct URL of the Audio file. Then go to Insert.
  5. Your audio file is now embedded to your wiki page!

Using wikitext

On wikitext mode, copy and paste below code

{{#widget:Audio
|url=Direct URL of the audio file here
}}

For example

{{#widget:Audio
|url=https://wiki.ubc.ca/images/8/87/Aprilshowers.mp3
}}

will display

See Also