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.

LoadingFile:Level 37 Ambience.mp3

Show Instructions
hide instructions

Customizable Audio Template[edit | edit source]

This is a very simple, highly customizable audio template, offering more optimization and convenience over inserting audio in the conventional html5audio class normally (the one with <div class="html5audio">) or the barebones file format (the one with [[File:]]).
Important: Using the html5audio class will normally mark the file as 'unused', like happens when the file truly is not used anywhere. This means that it will automatically be deleted when unused files are regularly cleaned. To avoid this, you should use this template.

Parameters:

  • align - Where the audio player will show up. Formatting is either left, center, or right. Default: right
  • file - This is where you insert the name and type of the audio file to use. Formatting is name.type, like song.ogg. Default: Level 37 Ambience.mp3
  • volume - The volume of the audio played. Formatting is any value from 0 to 1, with 0 being 0% volume (muted) and 1 being 100% volume (maximum volume). Default: 0.1 (10% volume)
  • autoplay - Determines whether or not the audio should automatically start playing after the page loads. Set to no if you don't want the audio to autoplay. Default: yes
  • loop - Determines whether or not the audio should automatically start playing again after ending. Set to no if you don't want the audio to loop. Default: yes
  • secrettext - Sets some text that will briefly display before the audio file loads. Default: Loading

An example of how this template may be configured:

{{Audio|align=left|file=Critical.mp3|volume=0.5}} - Result: Level Critical's audio will play at 50% volume, with the audio player showing up at the left side of the page. As autoplay, loop, and secrettext aren't set, they'll be at their default values, which means the audio will autoplay and loop, in addition to displaying the text Loading shortly before the audio loads.