Template:Listen: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "[[Wikipedia:" to "[[wikipedia:") |
mNo edit summary |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div class=" | <includeonly><div class="listenlist" style="margin:0.5em 0 1em"> | ||
{{#if:{{{title|}}}|'''[[:File:{{{filename}}}|{{{title}}}]]'''}} | {{#if:{{{title|}}}|'''[[:File:{{{filename}}}|{{{title}}}]]'''<br>}} | ||
[[File:{{{filename}}}|300px]] | |||
{{#if:{{{description|}}}|<div style="font-size: | {{#if:{{{description|}}}|<div style="font-size:85%">{{{description}}}</div>}} | ||
</div></includeonly><noinclude> | |||
</ | |||
==Info== | ==Info== | ||
Line 18: | Line 17: | ||
! title | ! title | ||
| No || || Title to show for the file. | | No || || Title to show for the file. | ||
|- | |- | ||
! description | ! description | ||
| No || || Description for the file. | | No || || Description for the file. | ||
|} | |} | ||
Line 34: | Line 27: | ||
|filename = | |filename = | ||
|title = | |title = | ||
|description = | |description = | ||
}} | }} | ||
</pre> | </pre> | ||
Line 47: | Line 38: | ||
|filename=Hoard.ogg | |filename=Hoard.ogg | ||
|title=Treasure Hoard music | |title=Treasure Hoard music | ||
|description=Music that plays on the Treasure Hoard. | |description=Music that plays on the Treasure Hoard. | ||
}}</pre> | |||
| {{listen | | {{listen | ||
|filename=Hoard.ogg | |filename=Hoard.ogg | ||
|title=Treasure Hoard | |title=Treasure Hoard music | ||
|description=Music that plays on the Treasure Hoard. | |description=Music that plays on the Treasure Hoard. | ||
}} | |||
|} | |} | ||
[[Category:Media templates]]</noinclude> | [[Category:Media templates]]</noinclude> |
Latest revision as of 08:15, January 11, 2024
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. | |
description | No | Description for the file. |
Skeleton
{{listen |filename = |title = |description = }}
Examples
Code | Result |
---|---|
{{listen |filename=Hoard.ogg |title=Treasure Hoard music |description=Music that plays on the Treasure Hoard. }} |
Music that plays on the Treasure Hoard.
|