The wikis have been updated to MediaWiki 1.36 on 4 June 2021. There are still some small problems, but they are being worked on. If you see any other problems, please let us know as soon as possible and we will try to solve them.

Modèle:Audio

De Scoutopedia
Aller à la navigation Aller à la recherche

Description

This is the Audio template. It uses the Html5mediaAudio widget but helps to avoid adding the full URL of a locally uploaded file to the widget's "url" parameter by rather just specifying the name of the file via the "name" parameter. It is however still possible to use the "url" parameter for an externally hosted file.

Usage

externally hosted file

{{Audio
 |url=https://upload.wikimedia.org/wikipedia/commons/5/5c/Wagner_Tristan_opening_(orchestral).ogg
}}

locally hosted file

{{Audio
 |name=Ventfrais.mp3
}}

Example

externally hosted file

locally hosted file

Code

Just copy the following code to a page called "Template:Audio" on your wiki.

<includeonly>{{#widget:Html5mediaAudio |url={{#if: {{{url|}}} |{{{url|}}} |{{filepath: {{{name|}}} }} }} }}</includeonly>