Template:Listen: Difference between revisions

m
no edit summary
m (Text replacement - "]] </noinclude>" to "]]</noinclude>")
mNo edit summary
 
(7 intermediate revisions by 2 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}}}|'''[[:File:{{{filename}}}|{{{title}}}]]'''}}
{{#if:{{{title|}}}|'''[[:File:{{{filename}}}|{{{title}}}]]'''<br>}}
{{#ifeq:{{{ogg}}}|no||[[File:{{{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>


==Info==
==Info==
Line 18: Line 17:
! title
! title
| No ||  || Title to show for the file.
| No ||  || Title to show for the file.
|-
! ogg
| No ||  || If this is an OGG file, give this the value "yes". Otherwise, "no".
|-
|-
! description
! description
| No ||  || Description for the file.
| No ||  || Description for the file.
|-
! helpnote
| No ||  || Whether or not to display the help note ("yes" or "no").
|}
|}


Line 34: Line 27:
|filename    =  
|filename    =  
|title      =  
|title      =  
|ogg        =
|description =  
|description =  
|helpnote    =
}}
}}
</pre>
</pre>
Line 47: Line 38:
|filename=Hoard.ogg
|filename=Hoard.ogg
|title=Treasure Hoard music
|title=Treasure Hoard music
|ogg=yes
|description=Music that plays on the Treasure Hoard.
|description=Music that plays on the Treasure Hoard.
|helpnote=yes}}</pre>
}}</pre>
| {{listen
| {{listen
|filename=Hoard.ogg
|filename=Hoard.ogg
|title=Treasure Hoard
|title=Treasure Hoard music
|ogg=yes
|description=Music that plays on the Treasure Hoard.
|description=Music that plays on the Treasure Hoard.
|helpnote=yes}}
}}
|}
|}
{{todo|This template probably needs an update...}}


[[Category:Media templates]]</noinclude>
[[Category:Media templates]]</noinclude>