Template:Listen: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "[[Wikipedia:" to "[[wikipedia:") |
m (Text replacement - "wikipedia:Media help" to "wikipedia:Help:Media") |
||
Line 3: | Line 3: | ||
{{#ifeq:{{{ogg|}}}|no||[[File:{{{filename}}}|noicon]]}} | {{#ifeq:{{{ogg|}}}|no||[[File:{{{filename}}}|noicon]]}} | ||
{{#if:{{{description|}}}|<div style="font-size:8pt;text-align:left;padding:4pt;line-height:1.25em">{{{description}}}</div>}} | {{#if:{{{description|}}}|<div style="font-size:8pt;text-align:left;padding:4pt;line-height:1.25em">{{{description}}}</div>}} | ||
{{#ifeq:{{{helpnote|}}}|no||<p style="text-align:right;font-size:10pt;line-height:1.25em">''Problems listening to the file? See [[wikipedia:Media | {{#ifeq:{{{helpnote|}}}|no||<p style="text-align:right;font-size:10pt;line-height:1.25em">''Problems listening to the file? See [[wikipedia:Help:Media|media help]].''</p>}} | ||
</div><noinclude> | </div><noinclude> | ||
Revision as of 14:12, October 22, 2021
[[File:{{{filename}}}|noicon]]
Problems listening to the file? See media help.
Info
Use this template to present an audio file for the reader to hear.
Parameters
Parameter | Mandatory | Default | Detailed description |
---|---|---|---|
filename | Yes | File name, without namespace, with extension. | |
title | No | Title to show for the file. | |
ogg | No | If this is an OGG file, give this the value "yes". Otherwise, "no". | |
description | No | Description for the file. | |
helpnote | No | Whether or not to display the help note ("yes" or "no"). |
Skeleton
{{listen |filename = |title = |ogg = |description = |helpnote = }}
Examples
Code | Result |
---|---|
{{listen |filename=Hoard.ogg |title=Treasure Hoard music |ogg=yes |description=Music that plays on the Treasure Hoard. |helpnote=yes}} |
Music that plays on the Treasure Hoard.
Problems listening to the file? See media help. |
To do: This template probably needs an update... |