Difference between revisions of "Template:AudioFile"

From MegaDrive Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
{|cellpadding="0" cellspacing="0" style="max-width: 200px; 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: 220px;"| [[File:{{{file}}}|noicon]]
+
| style="max-height: 24px; max-width: 240px;"| [[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 12:58, 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
}}

This is a possible example of it's usage;

File:1kSquareWave.ogg
A 1 kHz square wave.