Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
DOORS Site Logo

Welcome to the Official DOORS Wiki!
Please read the Wiki Rules the Manual of Style and familiarise yourself with our Wiki Policies before contributing to get a better understanding of what content is allowed on our wiki and how to display it properly, if you need help don't hesitate to reach out to a DOORS Wiki Staff Member.

Editing Template:Audio/doc

Template page
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
This template enhances the regular audio embed with automatic fallback to an MP3, no preloading for faster load times, and no download option. Uses [[w:c:dev:HTML5AudioPlayer|HTML5AudioPlayer]].
This template enhances the regular audio embed with automatic fallback using multiple <code><<nowiki/>source></code> elements, no preloading for faster load times, and no download option. Uses [[w:c:dev:HTML5AudioPlayer|HTML5AudioPlayer]].


To use, replace any regular audio embed with this template. For example, <code>[<nowiki/>[File:Elevator Jam.ogg]]</code> can be replaced with {{T|Audio|Elevator Jam.ogg}}. When played, it tries to play [[:File:Elevator Jam.ogg]], falling back to [[:File:Elevator Jam.ogg.mp3]] if OGG files cannot be played in the current browser.
To use, replace any regular audio embed with this template. For example, <code>[<nowiki/>[File:Elevator Jam.ogg]]</code> can be replaced with {{T|Audio|Elevator Jam.ogg}}. When played, it tries to play [[:File:Elevator Jam.ogg]], falling back to [[:File:Elevator Jam.ogg.mp3]] if OGG files cannot be played in the current browser.
Line 17: Line 17:
"2": {
"2": {
"label": "Fallback audio file",
"label": "Fallback audio file",
"description": "Name of the audio file to be played when the primary one fails. Must be a MP3. By default, this is the primary file with \".mp3\" appended.",
"description": "Name of the audio file to be played when the primary one fails. By default, this is the primary file with .mp3 appended.",
"default": "<primary audio file>.mp3",
"default": "<primary audio file>.mp3",
"type": "string"
"type": "string"
Line 28: Line 28:
"allow-preload": {
"allow-preload": {
"label": "Allow preloading?",
"label": "Allow preloading?",
"description": "Allows the audio to be embedded when custom JavaScript is not available, such as the mobile skin, at the expense of slower load times. Use if the page has a few audio files or if the audio files are small.",
"description": "Allows the audio to be embedded when custom JavaScript is not available, like on mobile devices, at the expense of slower load times. Use if the page has a few audio files or if the audio files are small.",
"type": "boolean"
"type": "boolean"
}
}
Please note that all contributions to DOORS Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see DOORS Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above.

View this template