(change default to center, add category) |
(title defaults to filename if empty) |
||
Line 1: | Line 1: | ||
<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;"> | <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]] |
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?)