Template:Listen
Revision as of 23:27, 4 October 2022 by Jacmob (talk | contribs) (Created page with "{| class="musicplayer" style="clear:{{{align|right}}}; float:{{{align|right}}};" |- style="margin-bottom:0.5em" | style="width:32px" | centre|link={{#if:{{{filename|}}}|File:{{{filename}}}}} | style="text-align:left" | '''{{{title|Title}}}''' |- | colspan="2" | {{#if:{{{image|}}}|<div style="clear:both; text-align:center">{{{image|}}}</div>}} <div>{{{desc|}}}</div> |- | colspan="2" | {{#if:{{{filename|}}}| {{#ifeq: {{lc:{{#explode:{{{fi...")
| Title | |
Template documentation
This documentation is transcluded from Template:Listen/doc. [edit] [history] [purge]
The Listen template is used to embed an audio file. For a list of audio files, see Category:Audio files.
Parameters
{{Listen
| title = title
| desc = description
| image = filename of an image to use (optional)
| filename = filename of the audio (spaces should be included as "_")
| align = alignment (left/right; default is right)
}}
Examples
MIDI file
- Note: May require installation of certain plug-ins to work.
{{Listen
| title = Quest completion
| desc = Plays after a quest is completed.
| filename = Quest_completed.ogg
}}
produces:
| Quest completion | |
|
Plays after a quest is completed.
| |
| noicon | |
OGG file
{{Listen
| title = Dream
| desc = Plays west of Lumbridge Castle.
| filename = Dream.ogg
}}
produces:
| Dream | |
|
Plays west of Lumbridge Castle.
| |
| noicon | |
OGG file (left-aligned)
{{Listen
| title = [[Impulses]]
| desc = Plays when near a crop circle.
| filename = Impetuous 2.ogg
| align = left
}}
produces:
| Impulses | |
|
Plays when near a crop circle.
| |
| noicon | |
With image
{{Listen
|title = Earth's Fury
|filename = Jade bolts (e).ogg
|image = [[File:Jade bolts special.gif|200px]]
|desc = A player activates the ''Earth's Fury'' effect
}}
produces:
| Earth's Fury | |
|
A player activates the Earth's Fury effect
| |
| noicon | |