Template:Listen: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(update)
m (Text replacement - "<div class="medialist listenlist">" to "<div class="listenlist" style="margin:0.5em 0 1em">")
Line 1: Line 1:
<includeonly><div class="medialist listenlist">
<includeonly><div class="listenlist" style="margin:0.5em 0 1em">
{{#if:{{{title|}}}|'''[[:File:{{{filename}}}|{{{title}}}]]'''<br>}}
{{#if:{{{title|}}}|'''[[:File:{{{filename}}}|{{{title}}}]]'''<br>}}
[[File:{{{filename}}}]]
[[File:{{{filename}}}]]

Revision as of 12:23, March 12, 2023


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.
}}

Treasure Hoard music

Music that plays on the Treasure Hoard.