Template:Listen: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div class="medialist listenlist" style="width:{{{width|200}}}px">
<includeonly><div class="listenlist" style="margin:0.5em 0 1em">
{{#if:{{{title}}}|'''[[:Image:{{{filename}}}|{{{title}}}]]'''}}
{{#if:{{{title|}}}|'''[[:File:{{{filename}}}|{{{title}}}]]'''<br>}}
{{#ifeq:{{{ogg}}}|no||[[Image:{{{filename}}}|noicon]]}}
[[File:{{{filename}}}|300px]]
<div style="font-size:8pt;text-align:left;padding:4pt;line-height:1.25em">{{{description|}}}</div>
{{#if:{{{description|}}}|<div style="font-size:85%">{{{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 help|media help]].''</p>}}
</div></includeonly><noinclude>
</div><noinclude>[[Category:Media templates|{{PAGENAME}}]]


==Use==
==Info==
<pre><nowiki>{{listen      *optional field
Use this template to present an audio file for the reader to hear.
*|title=title shown
 
|filename=filename without namespace
==Parameters==
*|ogg='yes' or 'no'
{| class = "wikitable"
*|description=description
! Parameter || Mandatory || Default || Detailed description
*|helpnote='yes' or 'no'
|-
}}</nowiki></pre>
! filename
</noinclude>
| '''Yes''' ||  || File name, without namespace, with extension.
|-
! title
| No ||  || Title to show for the file.
|-
! description
| No ||  || Description for the file.
|}
 
==Skeleton==
<pre>
{{listen
|filename    =
|title       =
|description =
}}
</pre>
 
==Examples==
{| class = "wikitable"
! Code || Result
|-
| <pre>{{listen
|filename=Hoard.ogg
|title=Treasure Hoard music
|description=Music that plays on the Treasure Hoard.
}}</pre>
| {{listen
|filename=Hoard.ogg
|title=Treasure Hoard music
|description=Music that plays on the Treasure Hoard.
}}
|}
 
[[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.
}}

Treasure Hoard music

Music that plays on the Treasure Hoard.