Difference between revisions of "Template:AudioFile"

From MegaDrive Wiki
Jump to: navigation, search
m
m (16 revisions imported)
 
(5 intermediate revisions by the same user not shown)
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: 240px;"| [[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>

Latest revision as of 11:29, 16 March 2015


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
}}