Help:Sound file markup: Difference between revisions
CSV import |
CSV import |
||
| Line 1: | Line 1: | ||
[[File:Accordion chords-01.ogg|thumb]] [[File:Accordion chords-01.ogg|thumb]] [[File:Accordion chords-01.ogg|thumb]] [[File:Accordion chords-01.ogg|thumb]] Help:Sound file markup | |||
Sound file markup in MediaWiki allows users to embed audio files within wiki pages. This feature is particularly useful for educational content, language learning, and any other context where audio can enhance the understanding of the material. This article provides a comprehensive guide on how to use sound file markup effectively in MediaWiki. | |||
Sound file markup in MediaWiki | |||
* Overview | |||
MediaWiki supports the inclusion of sound files through the use of specific markup. These files can be played directly on the page, providing an interactive experience for users. The most common file formats supported are Ogg Vorbis and MP3, although support may vary depending on the configuration of the MediaWiki installation. | |||
* Syntax | |||
To include a sound file in a MediaWiki page, you use the `[[File:filename.ogg]]` syntax, where `filename.ogg` is the name of the audio file you wish to embed. The file must be uploaded to the wiki or be available on a shared repository like Wikimedia Commons. | |||
[[File: | |||
== | *# Basic Example | ||
* Ensure that the use | ``` | ||
* | [[File:Example.ogg]] | ||
* | ``` | ||
This markup will display an audio player on the page, allowing users to play the sound file directly. | |||
*# Advanced Options | |||
You can customize the display and behavior of the audio player using additional parameters: | |||
* '''Autoplay''': Automatically starts playing the audio when the page is loaded. Use with caution as it can be disruptive. | |||
``` | |||
[[File:Example.ogg|autoplay]] | |||
``` | |||
* '''Loop''': Repeats the audio file continuously. | |||
``` | |||
[[File:Example.ogg|loop]] | |||
``` | |||
* '''Start and End Times''': Play only a specific segment of the audio file. | |||
``` | |||
[[File:Example.ogg|start=10|end=20]] | |||
``` | |||
* '''Description''': Add a description or caption to the audio file. | |||
``` | |||
[[File:Example.ogg|Description of the audio]] | |||
``` | |||
* Uploading Sound Files | |||
Before you can use a sound file in your MediaWiki page, it must be uploaded to the wiki. This is typically done through the "Upload file" link in the sidebar. Ensure that the file format is supported and that you have the necessary permissions to upload files. | |||
* Best Practices | |||
* '''File Format''': Use Ogg Vorbis for better compatibility with MediaWiki. | |||
* '''File Size''': Keep audio files as small as possible to reduce loading times. | |||
* '''Licensing''': Ensure that you have the right to use and distribute the audio file. | |||
* '''Accessibility''': Provide transcripts or descriptions for users who cannot hear the audio. | |||
* Troubleshooting | |||
* '''File Not Playing''': Check if the file format is supported and that the file is not corrupted. | |||
* '''Player Not Displaying''': Ensure that the file is correctly linked and that the MediaWiki installation supports audio playback. | |||
== Also see == | |||
* [[Help:Images]] | * [[Help:Images]] | ||
* [[Help: | * [[Help:Files]] | ||
* [[Help:Media]] | |||
* [[Help:Uploading files]] | |||
{{Help}} | |||
[[Category:MediaWiki | [[Category:MediaWiki help]] | ||
Revision as of 15:35, 9 December 2024
File:Accordion chords-01.ogg File:Accordion chords-01.ogg File:Accordion chords-01.ogg File:Accordion chords-01.ogg Help:Sound file markup
Sound file markup in MediaWiki allows users to embed audio files within wiki pages. This feature is particularly useful for educational content, language learning, and any other context where audio can enhance the understanding of the material. This article provides a comprehensive guide on how to use sound file markup effectively in MediaWiki.
- Overview
MediaWiki supports the inclusion of sound files through the use of specific markup. These files can be played directly on the page, providing an interactive experience for users. The most common file formats supported are Ogg Vorbis and MP3, although support may vary depending on the configuration of the MediaWiki installation.
- Syntax
To include a sound file in a MediaWiki page, you use the `File:Filename.ogg` syntax, where `filename.ogg` is the name of the audio file you wish to embed. The file must be uploaded to the wiki or be available on a shared repository like Wikimedia Commons.
- Basic Example
``` File:Example.ogg ```
This markup will display an audio player on the page, allowing users to play the sound file directly.
- Advanced Options
You can customize the display and behavior of the audio player using additional parameters:
- Autoplay: Automatically starts playing the audio when the page is loaded. Use with caution as it can be disruptive.
``` File:Example.ogg ```
- Loop: Repeats the audio file continuously.
``` File:Example.ogg ```
- Start and End Times: Play only a specific segment of the audio file.
``` File:Example.ogg ```
- Description: Add a description or caption to the audio file.
``` File:Example.ogg ```
- Uploading Sound Files
Before you can use a sound file in your MediaWiki page, it must be uploaded to the wiki. This is typically done through the "Upload file" link in the sidebar. Ensure that the file format is supported and that you have the necessary permissions to upload files.
- Best Practices
- File Format: Use Ogg Vorbis for better compatibility with MediaWiki.
- File Size: Keep audio files as small as possible to reduce loading times.
- Licensing: Ensure that you have the right to use and distribute the audio file.
- Accessibility: Provide transcripts or descriptions for users who cannot hear the audio.
- Troubleshooting
- File Not Playing: Check if the file format is supported and that the file is not corrupted.
- Player Not Displaying: Ensure that the file is correctly linked and that the MediaWiki installation supports audio playback.
Also see
- For help with this template, please post a comment on the template talk page with a
{{reply to}}one or more of the == History of Sound file markup ==
.