Template:Listen/doc

From Old School Near-Reality Wiki
< Template:Listen
Revision as of 22:27, 4 October 2022 by Jacmob (talk | contribs) (Created page with "{{documentation}} The '''Listen''' template is used to embed an audio file. For a list of audio files, see Category:Audio files. ==Parameters== <pre>{{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) }}</pre> ==Examples== ===MIDI file=== * <span style="color: red;">'''Note:''' May r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Information icon-grey.png
This is a documentation subpage for Template:Listen.
It contains usage information, categories, and other content that is not part of the original template page.

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:

Audio options icon.png
Quest completion
Plays after a quest is completed.
noicon

OGG file

{{Listen
| title     = Dream
| desc      = Plays west of Lumbridge Castle.
| filename  = Dream.ogg
}}

produces:

Audio options icon.png
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:

Audio options icon.png
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:

Audio options icon.png
Earth's Fury
A player activates the Earth's Fury effect
noicon

See also