(i hate html) |
(title defaults to filename if empty) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div style=" | <includeonly><div style=""><div id="musicplayer" class="musicplayer" style="border:solid #000000 1px; margin:auto; margin-{{{align|center}}}:unset; font-size:80%; background:#404040; color:#CCCCCC; width:300px; overflow:clip; padding:1px; text-align:center;"> | ||
<div>'''{{{title| | <div>'''{{#if: {{{title|}}} | {{{title}}} | {{{filename}}} }}'''</div> | ||
<div style="background:#222222">{{#if:{{{filename|}}} | <div style="background:#222222;">{{#if:{{{filename|}}} | ||
|[[File:{{{filename}}}|Upload file]] | |[[File:{{{filename}}}|Upload file]] | ||
|No filename specified}} | |No filename specified}} | ||
</div></div></div></includeonly> | </div></div></div></includeonly> | ||
<noinclude> | <noinclude> | ||
{{documentation}} | |||
{{ | [[Category:Formatting templates]] | ||
</noinclude> | |||
Latest revision as of 20:53, 19 May 2024
Documentation (for the above template, sometimes hidden or invisible)
Normal text
Test right
Text with thumb image prior
Test center
An image prior to an aligned one shows up in the box for some reason
Test left, very long title, thumbnail image directly prior (with same alignment), and no filename specified
No filename specified
Normal text
No title
Nya-.wav
Parameters
Parameter | Description | Type | Status | |
---|---|---|---|---|
title | title | The title or caption to display with the audio player.
| String | suggested |
filename | filename | The filename of the audio file to embed.
| File | required |
align | align | Alignment within the page.
| String | optional |
Visit Template:Audio/doc to edit this text! (How does this work?)