Add an audio player to a wiki page: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "If you have uploaded a sound file into the wiki and would like to add an audio player: * Get the direct URL to the audio file, click on the file in the wiki until you see only an audio player in the browser. Go to URL bar in your brower and COPY THIS URL. * In your wiki page put: <nowiki>{{audio|url=PASTE_YOUR_URL_HERE}}</nowiki> If you want you can also add a style to make the audio player full width: <nowiki>{{audio|url=PASTE_YOUR_URL_HERE|style="width:100%"}}</now...")
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
If you have uploaded a sound file into the wiki and would like to add an audio player:
If you have uploaded a sound file into the wiki and would like to add an audio player:


* Get the direct URL to the audio file, click on the file in the wiki until you see only an audio player in the browser. Go to URL bar in your brower and COPY THIS URL.
* Get the direct URL to the audio file, click on the file in the wiki until you see only an audio player in the browser. Go to URL bar in your browser and COPY THIS URL.
* In your wiki page put:
* In your wiki page put:


<nowiki>{{audio|url=PASTE_YOUR_URL_HERE}}</nowiki>
<nowiki>{{audio|mp3=PASTE_YOUR_URL_HERE}}</nowiki>


If you want you can also add a style to make the audio player full width:
If you want you can also add a style to make the audio player full width:


<nowiki>{{audio|url=PASTE_YOUR_URL_HERE|style="width:100%"}}</nowiki>
<nowiki>{{audio|mp3=PASTE_YOUR_URL_HERE|style=width:100%}}</nowiki>




[[Category:Protocol]]
[[Category:Protocol]]

Latest revision as of 15:19, 18 September 2023

If you have uploaded a sound file into the wiki and would like to add an audio player:

  • Get the direct URL to the audio file, click on the file in the wiki until you see only an audio player in the browser. Go to URL bar in your browser and COPY THIS URL.
  • In your wiki page put:

{{audio|mp3=PASTE_YOUR_URL_HERE}}

If you want you can also add a style to make the audio player full width:

{{audio|mp3=PASTE_YOUR_URL_HERE|style=width:100%}}