Difference between revisions of "Template:AudioFile"

From MegaDrive Wiki
Jump to: navigation, search
m
(Rolled back to edit from Sep 7)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{|cellpadding="0" cellspacing="0" style="max-width: 250px; min-width: 250px; padding: 3px; display: inline; float: {{{float}}}; background-color: #F9F9F9; border: 1px #AAA solid; overflow: hidden; {{{padding}}}"
+
{|cellpadding="0" cellspacing="0" style="max-width: 200px; padding: 3px; display: inline; float: {{{float}}}; background-color: #F9F9F9; border: 1px #AAA solid; overflow: hidden; {{{padding}}}"
| style="max-height: 24px; max-width: 275px; text-align: center;"| [[File:{{{file}}}|noicon]]
+
| style="max-height: 24px;"| [[File:{{{file}}}|noicon]]
 
|-
 
|-
 
|{{{text}}}
 
|{{{text}}}
Line 16: Line 16:
 
}}
 
}}
 
</pre>
 
</pre>
 
This is a possible example of it's usage;
 
{{AudioFile
 
| file = 1kSquareWave.ogg
 
| float = right
 
| text = A 1 kHz square wave.
 
| padding = margin-right:10px;
 
}}
 
 
</noinclude>
 
</noinclude>

Revision as of 13:04, 21 August 2012


This template will place an audio player on the page it's placed in. All parameters are required:

{{AudioFile
| file = File Name
| float = right/left
| text = Text to display under player
}}